|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jreceiver.common.rec.BaseRec | +--jreceiver.common.rec.source.SourceRec | +--jreceiver.common.rec.source.PlaylistRec
Abstract class to provide basic implementation of Playlist interface
Field Summary | |
protected boolean |
m_is_checked
is the item selected in the form? |
protected java.lang.String |
m_order_by
how the playlist will be sorted |
protected int |
m_pl_type
File(1), Dynamic(2), Tree(4) or Station(8) |
protected int |
m_tune_count
the number of tunes in the playlist, as of the time it was last queried for its count |
Fields inherited from class jreceiver.common.rec.source.SourceRec |
m_content_url, m_direct_uri, m_dst_mime, m_duration, m_mime, m_site_id, m_src_id, m_src_type, m_title |
Fields inherited from interface jreceiver.common.rec.source.Playlist |
HKEY_PL_TYPE, HKEY_TUNE_COUNT, PLAYLIST_TYPE_ALL, PLAYLIST_TYPE_DYNAMIC, PLAYLIST_TYPE_FILE, PLAYLIST_TYPE_STATION, PLAYLIST_TYPE_TREE, POPULATE_FILTERABLE, POPULATE_FOLDERLIST, POPULATE_SOURCELIST |
Fields inherited from interface jreceiver.common.rec.source.Source |
DEFAULT_URL, FORCE_PLAYLIST_URL, HKEY_CONTENT_URL, HKEY_DIRECT_URI, HKEY_DST_MIME, HKEY_DURATION, HKEY_MIME, HKEY_SITE_ID, HKEY_SRC_ID, HKEY_SRC_TYPE, HKEY_TITLE, MAX_SRC_ID, MIN_SRC_ID, POPULATE_CONTENT_URL, POPULATE_DIRECT_URI, POPULATE_MEXTERNAL, POPULATE_MFILE, SRCTYPE_PLAYLIST, SRCTYPE_TUNE, SRCTYPE_UNDEFINED |
Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
Fields inherited from interface jreceiver.common.rec.Sortable |
HKEY_ORDER_BY |
Fields inherited from interface jreceiver.common.rec.Selectable |
HKEY_CHECKED |
Constructor Summary | |
protected |
PlaylistRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
protected |
PlaylistRec(int src_id,
int pl_type)
ctor - minimalist |
protected |
PlaylistRec(int src_id,
java.lang.String mime,
int duration,
org.esau.ptarmigan.util.PtarURI direct_uri,
java.net.URL content_url,
int pl_type,
java.lang.String name,
java.lang.String order_by,
int tune_count)
ctor |
Method Summary | |
static SourceRec |
createInstance(java.util.Hashtable hash)
Create a PlaylistRec object preserved as a hash that has arrived over an XML-RPC connection or similar. |
static SourceRec |
createInstance(int pl_type,
java.lang.String name,
java.lang.String order_by,
int duration,
int tune_count)
Create a basic PlaylistRec object of the specified type. |
boolean |
getChecked()
get the current select state |
boolean |
getIsDynamicPlaylist()
|
boolean |
getIsFilePlaylist()
|
boolean |
getIsStationPlaylist()
|
boolean |
getIsTreePlaylist()
|
java.lang.String |
getOrderBy()
Obtain the sort order |
int |
getPlaylistType()
obtain the 'type' of the playlist (Playlist.PLAYLIST_TYPE_*) |
int |
getTuneCount()
Obtain the number of media files (not lines!) specified in a playlist file. |
void |
setChecked(boolean is_checked)
set the select state |
void |
setOrderBy(java.lang.String order_by)
Assign the sort order |
void |
setPlaylistType(int pl_type)
assign the 'type' of the playlist (Playlist.PLAYLIST_TYPE_*) |
void |
setTuneCount(int tune_count)
Assign the number of media files (not lines!) specified in a playlist file. |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class jreceiver.common.rec.source.SourceRec |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getKey, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setKey, setMime, setSrcId, setTitle |
Methods inherited from class jreceiver.common.rec.BaseRec |
dissolve, dissolveMap, find, find, find, find |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jreceiver.common.rec.source.Source |
getContentSystemId, getContentURL, getDirectSystemId, getDirectURI, getDstMime, getDuration, getFile, getFileExtension, getFileName, getFilePath, getIsLocal, getIsOffsite, getIsPlaylist, getIsTune, getMime, getSiteId, getSrcId, getTitle, getType, setContentURL, setDirectURI, setDirectURI, setDuration, setMime, setSrcId, setTitle |
Methods inherited from interface jreceiver.common.rec.Rec |
getKey, setKey |
Field Detail |
protected int m_pl_type
protected int m_tune_count
protected java.lang.String m_order_by
protected boolean m_is_checked
Constructor Detail |
protected PlaylistRec(int src_id, int pl_type)
protected PlaylistRec(int src_id, java.lang.String mime, int duration, org.esau.ptarmigan.util.PtarURI direct_uri, java.net.URL content_url, int pl_type, java.lang.String name, java.lang.String order_by, int tune_count)
protected PlaylistRec(java.util.Hashtable hash) throws RecException
Method Detail |
public java.util.Hashtable toHash()
toHash
in interface Playlist
toHash
in class SourceRec
jreceiver.common.rec.Hashable
public int getPlaylistType()
getPlaylistType
in interface Playlist
public void setPlaylistType(int pl_type)
setPlaylistType
in interface Playlist
public int getTuneCount()
Playlist
getTuneCount
in interface Playlist
public void setTuneCount(int tune_count)
Playlist
setTuneCount
in interface Playlist
public java.lang.String getOrderBy()
Sortable
getOrderBy
in interface Sortable
jreceiver.common.rec.Sortable
public void setOrderBy(java.lang.String order_by)
Sortable
setOrderBy
in interface Sortable
public boolean getChecked()
Selectable
getChecked
in interface Selectable
jreceiver.common.rec.Selectable
boolean
true if the item has been selected by the user; false otherwisepublic void setChecked(boolean is_checked)
Selectable
setChecked
in interface Selectable
jreceiver.common.rec.Selectable
is_checked
- public boolean getIsDynamicPlaylist()
getIsDynamicPlaylist
in interface Playlist
public boolean getIsTreePlaylist()
getIsTreePlaylist
in interface Playlist
public boolean getIsFilePlaylist()
getIsFilePlaylist
in interface Playlist
public boolean getIsStationPlaylist()
getIsStationPlaylist
in interface Playlist
public java.lang.String toString()
Hashable
toString
in interface Hashable
toString
in class SourceRec
public static SourceRec createInstance(java.util.Hashtable hash) throws RecException
The hash should have been created with
toHash()
.
public static SourceRec createInstance(int pl_type, java.lang.String name, java.lang.String order_by, int duration, int tune_count) throws RecException
pl_type
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |