public final class KeyStrokeMap
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
KeyStrokeMap() |
Modifier and Type | Method and Description |
---|---|
void |
assign(KeyStrokeMap source)
Assing the content of source to this.
|
KeyStrokeMap |
cloneObject()
note: does not clone the listeners
|
java.lang.Integer |
getBindingFor(KeyStrokes kss) |
java.util.ArrayList |
getData() |
java.util.List<KeyStrokes> |
getKeyStrokesFor(int bind)
Finds which KeyStrokes are mapped with the bind value.
|
java.util.List<KeyStrokes> |
getKeyStrokesFor(java.lang.Integer bind)
Finds which KeyStrokes are mapped with the bind value.
|
java.util.List<KeyStrokes> |
getKeyStrokesStartingWith(KeyStrokes kss) |
java.util.Set<KeyStrokes> |
keySet() |
boolean |
put(KeyStrokes key,
java.lang.Integer bind)
Add a mapping from an accelerator to a command
|
void |
putAll(KeyStrokeMap ksm)
Add all the mappings in ksm to this map.
|
void |
remove(KeyStrokes key)
Removes the mapping for this KeyStrokes
|
void |
removeAll(KeyStrokeMap ksm)
Remove all the mappings in ksm from this map.
|
void |
setData(java.util.ArrayList data) |
boolean |
solvePostponedLoad()
Call this method if you want to postpone the definition of your local actions.
|
java.util.Collection<java.lang.Integer> |
values() |
public KeyStrokeMap cloneObject()
public void assign(KeyStrokeMap source)
public boolean put(KeyStrokes key, java.lang.Integer bind)
key
- the acceleratorbind
- the IdeAction.getCommandId()public void putAll(KeyStrokeMap ksm)
public void removeAll(KeyStrokeMap ksm)
public void remove(KeyStrokes key)
public java.util.Set<KeyStrokes> keySet()
public java.util.Collection<java.lang.Integer> values()
public java.util.List<KeyStrokes> getKeyStrokesFor(java.lang.Integer bind)
bind
- the IdeAction.getCommandId() valuepublic java.util.List<KeyStrokes> getKeyStrokesFor(int bind)
bind
- the IdeAction.getCommandId() valuepublic java.lang.Integer getBindingFor(KeyStrokes kss)
public java.util.List<KeyStrokes> getKeyStrokesStartingWith(KeyStrokes kss)
public java.util.ArrayList getData()
public void setData(java.util.ArrayList data)
data
- an ArrayList of Pair(String command, KeyStrokes key)public boolean solvePostponedLoad()
Ide.getSettings().getKeyStrokeOptions().getLocalKeyMap(keyStrokeContext).solvePostponedLoad();