|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.playlist.AbstractPlaylistComponent christophedelory.playlist.AbstractTimeContainer
public abstract class AbstractTimeContainer
The base definition of time containers.
Constructor Summary | |
---|---|
AbstractTimeContainer()
|
Method Summary | |
---|---|
void |
acceptDown(PlaylistVisitor visitor)
Accepts the specified playlist visitor. |
void |
addComponent(AbstractPlaylistComponent component)
Appends the specified playlist component to the end of this container. |
void |
addComponent(int index,
AbstractPlaylistComponent component)
Inserts the specified playlist component at the specified position in this container. |
AbstractPlaylistComponent[] |
getComponents()
Returns an ordered array of playlist components present in this container. |
int |
getComponentsNumber()
Returns the number of playlist components in this container. |
boolean |
removeComponent(AbstractPlaylistComponent component)
Removes the first occurrence of the specified playlist component in this container. |
AbstractPlaylistComponent |
removeComponent(int index)
Removes the playlist component at the specified position in this container. |
Methods inherited from class christophedelory.playlist.AbstractPlaylistComponent |
---|
acceptUp, getParent, getRepeatCount, setParent, setRepeatCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTimeContainer()
Method Detail |
---|
public AbstractPlaylistComponent[] getComponents()
null
.addComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
removeComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
getComponentsNumber()
public void addComponent(AbstractPlaylistComponent component)
component
- the playlist component to be appended to this container. Shall not be null
.
NullPointerException
- if component
is null
.getComponents()
,
removeComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
addComponent(int,AbstractPlaylistComponent)
public void addComponent(int index, AbstractPlaylistComponent component)
index
- the index at which the specified component is to be inserted.component
- the playlist component to be inserted in this container. Shall not be null
.
NullPointerException
- if component
is null
.
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index > getComponentsNumber()).getComponents()
,
addComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
removeComponent(christophedelory.playlist.AbstractPlaylistComponent)
public boolean removeComponent(AbstractPlaylistComponent component)
component
- the playlist component to be removed from this container, if any. Shall not be null
.
true
if the container contained the specified element, false
otherwise.
NullPointerException
- if component
is null
.addComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
getComponents()
,
removeComponent(int)
public AbstractPlaylistComponent removeComponent(int index)
index
- the index of the component to be removed.
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= getComponentsNumber()).addComponent(christophedelory.playlist.AbstractPlaylistComponent)
,
getComponents()
,
removeComponent(AbstractPlaylistComponent)
public int getComponentsNumber()
getComponents()
public void acceptDown(PlaylistVisitor visitor) throws Exception
AbstractPlaylistComponent
acceptDown
in class AbstractPlaylistComponent
visitor
- a visitor. Shall not be null
.
NullPointerException
- if visitor
is null
.
Exception
- if any error occurs during the visit.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |