|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Window.ActionDictionary
public final class Window.ActionDictionary
Action dictionary implementation.
Method Summary | |
---|---|
boolean |
containsKey(Keyboard.KeyStroke key)
Tests the existence of a key in the dictionary. |
Action |
get(Keyboard.KeyStroke key)
Retrieves the value for the given key. |
boolean |
isEmpty()
Tests the emptiness of the dictionary. |
Action |
put(Keyboard.KeyStroke key,
Action value)
Sets the value of the given key, creating a new entry or replacing the existing value. |
Action |
remove(Keyboard.KeyStroke key)
Removes a key/value pair from the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Action get(Keyboard.KeyStroke key)
Dictionary
get
in interface Dictionary<Keyboard.KeyStroke,Action>
key
- The key whose value is to be returned.
public Action put(Keyboard.KeyStroke key, Action value)
Dictionary
put
in interface Dictionary<Keyboard.KeyStroke,Action>
key
- The key whose value is to be set.value
- The value to be associated with the given key.
public Action remove(Keyboard.KeyStroke key)
Dictionary
remove
in interface Dictionary<Keyboard.KeyStroke,Action>
key
- The key whose mapping is to be removed.
public boolean containsKey(Keyboard.KeyStroke key)
Dictionary
containsKey
in interface Dictionary<Keyboard.KeyStroke,Action>
key
- The key whose presence in the dictionary is to be tested.
public boolean isEmpty()
Dictionary
isEmpty
in interface Dictionary<Keyboard.KeyStroke,Action>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |