be.lassi.base
Class NamedObjects
java.lang.Object
be.lassi.base.SaveableObject
be.lassi.base.NamedObjects
- Direct Known Subclasses:
- Channels, Dimmers, Submasters
public abstract class NamedObjects
- extends SaveableObject
Collection of NamedObject
's.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedObjects
protected NamedObjects(Dirty dirty)
- Constructs a new instance.
- Parameters:
dirty
- the dirty indicator
addNameListener
public void addNameListener(NameListener listener)
- Adds given listener to all named objects in the collection.
- Parameters:
listener
- the listener to be added
getNamedObject
public abstract NamedObject getNamedObject(int index)
- Gets the object at given index.
- Parameters:
index
- the index of the object to be returned
- Returns:
- the object at given index
removeNameListener
public void removeNameListener(NameListener listener)
- Removes given listener from all named objects in the collection.
- Parameters:
listener
- the listener to be removed
size
public abstract int size()
- The number of named objects in the collection.
- Returns:
- the number of objects in the collection