|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.millstone.base.terminal.KeyMapper
Simple two-way map for generating textual keys for objects and retrieving the objects later with the key.
Constructor Summary | |
KeyMapper()
|
Method Summary | |
java.lang.Object |
get(java.lang.String key)
Retrieve object with the key |
boolean |
isNewIdKey(java.lang.String key)
Check if the key belongs to a new id. |
java.lang.String |
key(java.lang.Object o)
Get key for an object |
void |
remove(java.lang.Object o)
Remove object from the mapper. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyMapper()
Method Detail |
public java.lang.String key(java.lang.Object o)
public boolean isNewIdKey(java.lang.String key)
Usage of new id:s are specific to components, but for example Select
component uses newItemId:s for selection of newly added items in
allowNewItems
-mode
public java.lang.Object get(java.lang.String key)
public void remove(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |