org.simulare
Class CollectionItem
java.lang.Object
org.simulare.Named
org.simulare.Item
org.simulare.CollectionItem
- All Implemented Interfaces:
- AttributeListener, java.util.EventListener, Name
- Direct Known Subclasses:
- CompositeItem
- public class CollectionItem
- extends Item
An item which is a collection.
Fields inherited from class org.simulare.Item |
event |
Methods inherited from class org.simulare.Item |
addAttribute, addAttribute, addItemListener, copyAttributes, fireItemStateChanged, getAttribute, getAttribute, getAttributeIndex, getAttributeName, getAttributesLength, getAttributesNames, getParent, removeAttribute, removeAttribute, removeItemListener, setParent, toCollection, toComposite, toItem, typeChanged, valueChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CollectionItem
public CollectionItem(java.lang.String name)
addItem
public void addItem(Item item)
addItem
public void addItem(int index,
Item item)
removeItem
public Item removeItem(java.lang.String name)
removeItem
public Item removeItem(int index)
getItem
public Item getItem(java.lang.String name)
getItem
public Item getItem(int index)
getItemIndex
public int getItemIndex(java.lang.String name)
getItemName
public java.lang.String getItemName(int index)
getItemsNames
public java.util.Iterator getItemsNames()
getItemsLength
public int getItemsLength()
contains
public boolean contains(Item item)