frysk.gui.monitor
Class UniqueHashMap
java.lang.Object
frysk.gui.monitor.UniqueHashMap
public class UniqueHashMap
- extends Object
A HashMap of GuiObjects. Makes sure that the objects added to it
are unique, and throws and exception if that is violated.
UniqueHashMap
public UniqueHashMap()
nameIsUsed
public boolean nameIsUsed(String key)
- Checks of the given key is used already or not
- Parameters:
key
-
- Returns:
- true of the key isn ot used false if it is
clear
public void clear()
add
public void add(GuiObject object)
remove
public void remove(GuiObject object)
get
public GuiObject get(String name)