We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.
Class KeyMapper
java.lang.Object
com.vaadin.terminal.KeyMapper
All Implemented Interfaces:
- extends Object
- implements Serializable
public class KeyMapper
KeyMapper
is the simple two-way map for generating textual keys
for objects and retrieving the objects later with the key.
Since:
3.0
Version:
6.8.18
Author:
Vaadin Ltd.
See Also:
Constructor Summary | |
---|---|
KeyMapper()
|
Method Summary | |
---|---|
Object |
get(String key)
Retrieves object with the key. |
String |
key(Object o)
Gets key for an object. |
void |
remove(Object removeobj)
Removes object from the mapper. |
void |
removeAll()
Removes all objects from the mapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
KeyMapper
public KeyMapper()
Method Detail |
---|
key
public String key(Object o)
- Parameters:
o
- the object.
Gets key for an object.
get
public Object get(String key)
- Parameters:
key
- the name with the desired value.- Returns:
- the object with the key.
Retrieves object with the key.
remove
public void remove(Object removeobj)
- Parameters:
removeobj
- the object to be removed.
Removes object from the mapper.
removeAll
public void removeAll()
Removes all objects from the mapper.