|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.UIItemList
UIItemList holds lists of UIItems. Classes like UIManager use this class to maintain their list of id's and objects.
| Constructor Summary | |
UIItemList()
Creates a new UIItemList. |
|
UIItemList(java.util.ResourceBundle resourcebundle)
Creates a new UIItemList from a ResourceBundle instance. |
|
| Method Summary | |
void |
add(java.util.ResourceBundle resourcebundle)
Method add(ResourceBundle) creates new UIItems from the
key-value pairs extracted out of the given ResourceBundle instance. |
void |
add(java.lang.String id,
int state,
java.lang.String text)
Adds a UIItem with the given state, text & id
to the designated list. |
void |
add(UIItem uiitem)
Method add adds an UIItem to the internal uiItems list. |
UIItem |
get(java.lang.String id)
Method get returns the UIItem for the given
id. |
java.util.Set |
getKeys()
Returns a Set of the keys. |
UIItem |
remove(java.lang.String id)
Removes a mapping from the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UIItemList()
public UIItemList(java.util.ResourceBundle resourcebundle)
ResourceBundle instance.
resourcebundle - The ResourceBundle instance to initialize this
UIItemList with.add(ResourceBundle)| Method Detail |
public void add(java.lang.String id,
int state,
java.lang.String text)
UIItem with the given state, text & id
to the designated list. If such an UIItem already exist, it will
be updated with the given state and text value.
id - the id of the (new) UIItem.state - the state of the (new) UIItem.text - the text associated with the (new) UIItem.public UIItem remove(java.lang.String id)
id - the id to remove
null.public UIItem get(java.lang.String id)
get returns the UIItem for the given
id. Returns null if no such item is found with this id.
id - the id of the item you want to receive.
public void add(UIItem uiitem)
add adds an UIItem to the internal uiItems list. If
there is already an item in that list with the same id, the item is
updated with the given values.
uiitem - the item instance to add.add(String, int, String)public void add(java.util.ResourceBundle resourcebundle)
add(ResourceBundle) creates new UIItems from the
key-value pairs extracted out of the given ResourceBundle instance.
resourcebundle - The ResourceBundle to create the UIItems from.public java.util.Set getKeys()
Set of the keys.
Set of the keys.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||