public final class KeyStrokeOptions extends ChangeEventSource implements Copyable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_SETTINGS |
_hash| Constructor and Description |
|---|
KeyStrokeOptions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContext(KeyStrokeContext ksc)
Adds a context to the known contexts.
|
KeyStrokeOptions |
cloneObject(boolean bDeepCopy)
note: does not clone the listeners.
|
java.lang.Object |
copyTo(java.lang.Object target)
Copy support.
|
KeyStrokeMap |
getGlobalKeyMap() |
java.awt.event.ActionListener |
getKeyboardPanelEventDispatcher() |
KeyStrokeMap |
getLocalKeyMap(KeyStrokeContext ksc)
Returns the KeyStrokeMap corresponding to this context.
|
java.util.HashMap |
getLocalKeyMaps() |
java.lang.String |
getPresetName()
Gets the current name of the set.
|
java.util.ArrayList |
getRegisteredContexts() |
boolean |
isModifiedPreset()
Returns true if the current set was modified.
|
void |
removeContext(KeyStrokeContext ksc) |
void |
setGlobalKeyMap(KeyStrokeMap ksm) |
void |
setKeyboardPanelEventDispatcher(java.awt.event.ActionListener actionListener) |
void |
setLocalKeyMaps(java.util.HashMap mapKsmLocal) |
void |
setModifiedPreset(boolean bModified)
Sets the modified flag.
|
void |
setPresetName(java.lang.String sName)
Sets the preset name.
|
void |
setRegisteredContexts(java.util.ArrayList list) |
void |
solvePostponedMaps() |
addChangeListener, fireChangeEvent, fireChangeEvent, removeChangeListener, setUseObjectEqualsaddStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic java.lang.Object copyTo(java.lang.Object target)
HashStructureAdaptercopyTo in interface CopyablecopyTo in class ChangeEventSourcetarget - The target object to which the state of
this object should be copied. If target
is null, then the copyTo method will
return a new instance of this class.this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.public KeyStrokeOptions cloneObject(boolean bDeepCopy)
public java.lang.String getPresetName()
public void setPresetName(java.lang.String sName)
public boolean isModifiedPreset()
public void setModifiedPreset(boolean bModified)
public KeyStrokeMap getLocalKeyMap(KeyStrokeContext ksc)
public void addContext(KeyStrokeContext ksc)
public void solvePostponedMaps()
public void removeContext(KeyStrokeContext ksc)
public void setKeyboardPanelEventDispatcher(java.awt.event.ActionListener actionListener)
throws TransientMarker
TransientMarkerpublic java.awt.event.ActionListener getKeyboardPanelEventDispatcher()
throws TransientMarker
TransientMarkerpublic KeyStrokeMap getGlobalKeyMap()
public void setGlobalKeyMap(KeyStrokeMap ksm)
public void setLocalKeyMaps(java.util.HashMap mapKsmLocal)
public java.util.HashMap getLocalKeyMaps()
public java.util.ArrayList getRegisteredContexts()
public void setRegisteredContexts(java.util.ArrayList list)