|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.cues
Class CueCollection
java.lang.Objectbe.lassi.base.SaveableObject
be.lassi.cues.CueCollection
- All Implemented Interfaces:
- java.lang.Iterable<Cue>
public class CueCollection
- extends SaveableObject
- implements java.lang.Iterable<Cue>
- extends SaveableObject
| Constructor Summary | |
|---|---|
CueCollection(Dirty dirty)
|
|
| Method Summary | |
|---|---|
void |
addListener(CuesListener listener)
Register a listener that will be notified of changes. |
boolean |
equals(java.lang.Object object)
Return true if this Cue is equal to given Cue. |
protected void |
fireAdded(int index,
Cue definition)
Notify listeners that a Cue has been added. |
protected void |
fireCueNumbersChanged()
Notify all listeners that the cue numbering has changed. |
protected void |
fireCurrentChanged()
Notify listeners that another Cue is now the 'current cue'. |
protected void |
fireRemoved(int index,
Cue cue)
Notify listeners that a Cue has been removed. |
protected void |
fireSelectionChanged()
Notify listeners that ... |
Cue |
get(int index)
Return the Cue at given index. |
protected java.util.List<CuesListener> |
getListeners()
Return the collection of CuesListeners that are listening for
change notifications. |
boolean |
hasCurrent()
Return true if this collection contains any Cues that
is 'current'. |
int |
indexOf(Cue cue)
Return the index of given Cue. |
protected void |
insertCue(int index,
Cue cue)
Add a Cue at given index. |
java.util.Iterator<Cue> |
iterator()
|
protected void |
removeCue(int index)
Remove Cue with given index from this collection. |
void |
removeListener(CuesListener listener)
Remove given listener so that it no longer gets notified of any changes. |
protected void |
setCueListener(CueListener cueListener)
|
int |
size()
Return the number of Cue objects in this collection. |
| Methods inherited from class be.lassi.base.SaveableObject |
|---|
doNotMarkDirty, getDirty, isDirty, markDirty, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
CueCollection
public CueCollection(Dirty dirty)
| Method Detail |
|---|
addListener
public void addListener(CuesListener listener)
- Register a listener that will be notified of changes.
- Parameters:
listener-
equals
public boolean equals(java.lang.Object object)
- Return true if this Cue is equal to given Cue.
To be equal, both
Cuecollections have to contain the same amount ofCues and theCues at the corresponding indexes have to be equal to.- Overrides:
equalsin classjava.lang.Object
fireAdded
protected void fireAdded(int index,
Cue definition)
- Notify listeners that a Cue has been added.
- Parameters:
index-cue-
fireCueNumbersChanged
protected void fireCueNumbersChanged()
- Notify all listeners that the cue numbering has changed.
fireCurrentChanged
protected void fireCurrentChanged()
- Notify listeners that another
Cueis now the 'current cue'.
fireRemoved
protected void fireRemoved(int index,
Cue cue)
- Notify listeners that a Cue has been removed.
- Parameters:
index-cue-
fireSelectionChanged
protected void fireSelectionChanged()
- Notify listeners that ...
get
public Cue get(int index)
- Return the
Cueat given index.- Parameters:
index-- Returns:
- Cue
getListeners
protected java.util.List<CuesListener> getListeners()
- Return the collection of
CuesListeners that are listening for change notifications.- Returns:
- List
hasCurrent
public boolean hasCurrent()
- Return true if this collection contains any
Cues that is 'current'.- Returns:
- boolean
indexOf
public int indexOf(Cue cue)
- Return the index of given
Cue.- Parameters:
cue-- Returns:
- int
insertCue
protected void insertCue(int index,
Cue cue)
- Add a
Cueat given index.- Parameters:
index-cue-
iterator
public java.util.Iterator<Cue> iterator()
-
- Specified by:
iteratorin interfacejava.lang.Iterable<Cue>
removeCue
protected void removeCue(int index)
- Remove
Cuewith given index from this collection. Notify any listeners.- Parameters:
index-
removeListener
public void removeListener(CuesListener listener)
- Remove given listener so that it no longer gets notified of any changes.
- Parameters:
listener-
setCueListener
protected void setCueListener(CueListener cueListener)
size
public int size()
- Return the number of
Cueobjects in this collection.- Returns:
- int
|
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
