| java.lang.Object org.dbbrowser.ui.KeyBinding
KeyBinding | public class KeyBinding (Code) | | An instance of this class represents a key binding. A key binding object contains information
about a key press which will lead to an action. A Key Binding is uniquely identified by its description.
The method 'getAllActions' lists all the possible actions.
author: amangat |
FILE_DROP_CONNECTION | public static String FILE_DROP_CONNECTION(Code) | | |
FILE_OPEN_SQL_SCRIPT_FILE | public static String FILE_OPEN_SQL_SCRIPT_FILE(Code) | | |
KeyBinding | public KeyBinding(String description, Integer keyCode, Integer modifierCode, String action)(Code) | | Constructer
Parameters: description - Parameters: keyCode - Parameters: modifierCode - Parameters: action - |
equals | public boolean equals(Object otherObject)(Code) | | Two key bindings are equal if they have the same description
- true of the otherObject is an instance of KeyBinding and it has the same description as this object |
getAction | public String getAction()(Code) | | Returns the action to be performed when this key is pressed
|
getAllActions | public static List getAllActions()(Code) | | Returns all the possible actions
- a list of strings |
getDescription | public String getDescription()(Code) | | Returns a descriptions which uniquely identifies this key binding
|
getKeyCode | public Integer getKeyCode()(Code) | | Returns the key code for the key
|
getModifierCode | public Integer getModifierCode()(Code) | | Returns the modifier code - such as CTRL or ALT key
|
hashCode | public int hashCode()(Code) | | |
|
|