|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdox.data.AudioData
Represents the data for an audio CD.
| Field Summary |
| Fields inherited from interface cdox.edit.CDCoverStandards |
ALL, CDBACK_SIDE, CDBACK_SIDE_SIZE, CDBACK_SIZE, CDBOOKLET, CDBOOKLET_SIZE, CDFRONT, CDFRONT_SIZE, CDSIDE_SIZE, CDX, GIF, JPG, PNG |
| Constructor Summary | |
AudioData()
|
|
| Method Summary | |
void |
fillBack(Cover c)
This method will insert a list of the tracks and sides with title and artist. |
void |
fillBooklet(Cover c)
This method will insert the title, subtitle, artist, tracks and the description. |
void |
fillFront(Cover c)
This method will insert a (big) title, a (not so big) subtitle and the artist (as big as title). |
java.lang.String |
getDescription()
Returns a descriptive string of the CD type that this Data object represents. |
int |
getSupportedVersion()
Must return the version of the CDox file format that supports this data type. |
void |
reconstruct(org.w3c.dom.Element desc)
Reads its data from the DOM subtree beginning with the given Element. |
void |
setArtist(java.lang.String s)
Sets the artist. |
void |
setDescription(java.lang.String s)
Sets the description. |
void |
setSubtitle(java.lang.String s)
Sets the subtitle. |
void |
setTitle(java.lang.String s)
Sets the title. |
void |
setTracks(java.util.ArrayList tracks,
java.util.ArrayList lengths)
Sets the tracks. |
void |
storeData(org.w3c.dom.Element e)
This method stores the data of this element in a DOM tree. |
boolean |
userFillData(java.awt.Frame parent)
This method should let the user fill in appropriate values as data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AudioData()
| Method Detail |
public boolean userFillData(java.awt.Frame parent)
Data
userFillData in interface Dataparent - the parent frame.
public int getSupportedVersion()
Data
getSupportedVersion in interface Datapublic void storeData(org.w3c.dom.Element e)
Data<description>. The type attribute of this
element must be set, and the child elements must be created according to the XML
Schema from the CDox format.
storeData in interface Datae - the <description> element.public void reconstruct(org.w3c.dom.Element desc)
Data
reconstruct in interface Datadesc - the top node of the DOM subtree.public java.lang.String getDescription()
Data
getDescription in interface Datapublic void setTitle(java.lang.String s)
s - the new title.public void setSubtitle(java.lang.String s)
s - the new subtitle.public void setArtist(java.lang.String s)
s - the new artist.public void setDescription(java.lang.String s)
s - the new description.
public void setTracks(java.util.ArrayList tracks,
java.util.ArrayList lengths)
tracks - the track names.lengths - the lengths of the tracks as Dates.
public void fillFront(Cover c)
throws java.lang.IllegalArgumentException
fillFront in interface Datac - the cover where to add new elements.
java.lang.IllegalArgumentException - if the cover is no front side.
public void fillBack(Cover c)
throws java.lang.IllegalArgumentException
fillBack in interface Datac - the cover where to add new elements.
java.lang.IllegalArgumentException - if the cover is no back side.
public void fillBooklet(Cover c)
throws java.lang.IllegalArgumentException
fillBooklet in interface Datac - the cover where to add new elements.
java.lang.IllegalArgumentException - if the cover is no booklet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||