- Version:
- 4.0
AZ 2009
- Author:
- Emil A. Lefkof III
- See Also:
- Serialized Form
|
Constructor Summary |
Playlist()
Default constructor constructs a list of 100 items. |
| Methods inherited from class com.jgoodies.binding.beans.Model |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
PROPERTYNAME_CURRENT_LIST
public static final String PROPERTYNAME_CURRENT_LIST
- See Also:
- Constant Field Values
PROPERTYNAME_HISTORY_LIST
public static final String PROPERTYNAME_HISTORY_LIST
- See Also:
- Constant Field Values
Playlist
public Playlist()
- Default constructor constructs a list of 100 items.
getBackIterator
public Iterator getBackIterator()
- Returns an
Iterator for the available backward elements.
- Returns:
- an iterator that iterates over the available backward elements
getCurrentDuration
public String getCurrentDuration()
- Gets the current running time.
- Returns:
- Returns the current running time.
getCurrentList
public List getCurrentList()
- Gets the currentList.
- Returns:
- Returns the currentList.
getCurrentTrack
public Track getCurrentTrack()
- Gets the currentTrack.
- Returns:
- Returns the currentTrack.
removeCurrentTrack
public Track removeCurrentTrack()
- AZ
Delete the currentTrack.
- Returns:
- Returns null for the currentTrack.
getHistoryDuration
public String getHistoryDuration()
- Gets the history running time.
- Returns:
- Returns the history running time.
getHistoryList
public List getHistoryList()
- Gets the historyList.
- Returns:
- Returns the historyList.
getList
public List getList()
- Gets the correct list.
- Returns:
- Returns the correct list
getNextImmediate
public Object getNextImmediate()
- Returns the next element no matter if shuffling.
- Returns:
- the next element
getNext
public Object getNext()
- Returns the next element.
- Returns:
- the next element
getNextIterator
public Iterator getNextIterator()
- Returns an
Iterator for the available next elements.
- Returns:
- an iterator that iterates over the available next elements
getPrevious
public Object getPrevious()
- Returns the previous element.
- Returns:
- the previous element
setCurrent
public void setCurrent(boolean aCurrent)
- Sets the current.
- Parameters:
aCurrent - The current to set.
setShuffleCatalog
public void setShuffleCatalog(boolean aShuffleCatalog)
- Sets the shuffleCatalog.
- Parameters:
aShuffleCatalog - The shuffleCatalog to set.
setShufflePlaylist
public void setShufflePlaylist(boolean aShufflePlaylist)
- Sets the shufflePlaylist.
- Parameters:
aShufflePlaylist - The shufflePlaylist to set.
isCurrent
public boolean isCurrent()
- Gets the current.
- Returns:
- Returns the current.
isShuffleCatalog
public boolean isShuffleCatalog()
- Gets the shuffleCatalog.
- Returns:
- Returns the shuffleCatalog.
isShufflePlaylist
public boolean isShufflePlaylist()
- Gets the shufflePlaylist.
- Returns:
- Returns the shufflePlaylist.
add
public void add(Object o)
- Adds an element to the history if it is not the previous element. Returns
whether the history changed.
- Parameters:
o - the object to add
addNext
public void addNext(Object o)
- Adds an element to the history if it is not the previous element. Returns
whether the history changed.
- Parameters:
o - the object to add
contains
public boolean contains(Object o)
- Checks and answer if the object o is contained in the 'previous' list.
- Returns:
- true if this item is in the previous list
containsNext
public boolean containsNext(Object o)
- Checks and answer if the object o is contained in the 'next' list.
- Returns:
- true if this item is in the next list
containsPrevious
public boolean containsPrevious(Object o)
- Checks and answer if the object o is contained in the 'previous' list.
- Returns:
- true if this item is in the previous list
hasNext
public boolean hasNext()
- Checks and answer if there's a next element.
- Returns:
- true if there's a next element
hasPrevious
public boolean hasPrevious()
- Checks and answers if there's a previous element.
- Returns:
- true if there's a previous element
moveDown
public void moveDown(int index)
- Move an item down on the list.
- Parameters:
index - the index to move
moveOver
public void moveOver(int index)
- Move an item to the other list.
- Parameters:
index - the index to move
moveUp
public void moveUp(int index)
- Move an item up on the list.
- Parameters:
index - the index to move
playImmediate
public void playImmediate(Track track)
- Plays this track immediately.
- Parameters:
track - the track to play immediately
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- The Catalog has changed.
- Specified by:
propertyChange in interface PropertyChangeListener
- Parameters:
evt - describes the property change
remove
public void remove(int index)
- Removes an item from the list.
- Parameters:
index - the index to remove from the list
save
public void save(File aFile)
throws Exception
- Saves a playlist to a file.
- Parameters:
aFile - the file to save.
- Throws:
Exception - if any error occurs
size
public int size()
- Returns the size of the correct list.
- Returns:
- the size of the correct list
sizeNext
public int sizeNext()
- Returns the size of the next list.
- Returns:
- the size of the next list
sizePrevious
public int sizePrevious()
- Returns the size of the previous list.
- Returns:
- the size of the previous list
toString
public String toString()
- Overrides:
toString in class Object
updateState
public void updateState()
- Updates the state of the previous next buttons.
Copyright © 1999-2010 Melloware Inc. All Rights Reserved.