Package docking.action
Class KeyBindingData
- java.lang.Object
-
- docking.action.KeyBindingData
-
public class KeyBindingData extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KeyBindingData(char c, int modifiers)KeyBindingData(int keyCode, int modifiers)KeyBindingData(javax.swing.KeyStroke keyStroke)KeyBindingData(javax.swing.KeyStroke keyStroke, KeyBindingPrecedence precedence)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.KeyStrokegetKeyBinding()Returns an accelerator keystroke to be associated with this action.KeyBindingPrecedencegetKeyBindingPrecedence()Returns the keyBindingPrecedence for this actionjava.lang.StringtoString()static KeyBindingDatavalidateKeyBindingData(KeyBindingData newKeyBindingData)Updates the given data with system-independent versions of key modifiers.
-
-
-
Constructor Detail
-
KeyBindingData
public KeyBindingData(javax.swing.KeyStroke keyStroke)
-
KeyBindingData
public KeyBindingData(char c, int modifiers)
-
KeyBindingData
public KeyBindingData(int keyCode, int modifiers)
-
KeyBindingData
public KeyBindingData(javax.swing.KeyStroke keyStroke, KeyBindingPrecedence precedence)
-
-
Method Detail
-
getKeyBinding
public javax.swing.KeyStroke getKeyBinding()
Returns an accelerator keystroke to be associated with this action.- Returns:
- the binding
-
getKeyBindingPrecedence
public KeyBindingPrecedence getKeyBindingPrecedence()
Returns the keyBindingPrecedence for this action- Returns:
- the precedence
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateKeyBindingData
public static KeyBindingData validateKeyBindingData(KeyBindingData newKeyBindingData)
Updates the given data with system-independent versions of key modifiers. For example, the control key will be converted to the command key on the Mac.- Parameters:
newKeyBindingData- the data to validate- Returns:
- the potentially changed data
-
-