Class KeyMapper

Simple two-way map for generating textual keys for objects and retrieving the objects later with the key.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.KeyMapper

get(String)

Retrieve object with the key

isNewIdKey(String)

Check if the key belongs to a new id.

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

key(Object)

Get key for an object

remove(Object)

Remove object from the mapper.

removeAll()

Remove all objects from the mapper.