Overview  Package   Class  Tree  Index 

be.lassi.base
Class NamedObjects

java.lang.Object
  extended by be.lassi.base.SaveableObject
      extended by be.lassi.base.NamedObjects
Direct Known Subclasses:
Channels, Dimmers, Submasters

public abstract class NamedObjects
extends SaveableObject

Collection of NamedObject's.


Constructor Summary
protected NamedObjects(Dirty dirty)
          Constructs a new instance.
 
Method Summary
 void addNameListener(NameListener listener)
          Adds given listener to all named objects in the collection.
abstract  NamedObject getNamedObject(int index)
          Gets the object at given index.
 void removeNameListener(NameListener listener)
          Removes given listener from all named objects in the collection.
abstract  int size()
          The number of named objects in the collection.
 
Methods inherited from class be.lassi.base.SaveableObject
doNotMarkDirty, getDirty, isDirty, markDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedObjects

protected NamedObjects(Dirty dirty)
Constructs a new instance.

Parameters:
dirty - the dirty indicator
Method Detail

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

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2