Java Swing KeyStroke isKeyStroke(String propClass)

Here you can find the source of isKeyStroke(String propClass)

Description

is Key Stroke

License

Apache License

Declaration

public static boolean isKeyStroke(String propClass) 

Method Source Code

//package com.java2s;
/*//www.  ja v a 2 s . c  o  m
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */

public class Main {
    public static boolean isKeyStroke(String propClass) {
        return ("javax.swing.KeyStroke".equals(propClass));
    }
}

Related

  1. installAction(JComponent comp, Action action, KeyStroke keyStroke, String actionKey)
  2. installKey(final JComponent comp, final String keyString, final int key, final Action action)
  3. installKeyBinding(JComponent c, int condition, String actionName, Action action, KeyStroke... keyStrokes)
  4. installKeyBindings()
  5. installKeystrokes(JComponent component, Action... actions)
  6. mapInput(JComponent component, int scope, final int keycode, final int modifiers, final AbstractAction action)
  7. mapKeyStrokeAction(JComponent component, String actionMapKey, Action action, KeyStroke keyStroke)
  8. mapKeyStrokeToAction(final JComponent comp, final String ks, final String name, final AbstractAction action)
  9. mapKeyStrokeToButton(final JComponent comp, final String ks, final String name, final AbstractButton button)