cdox.data
Class VideoData

java.lang.Object
  extended bycdox.data.VideoData
All Implemented Interfaces:
CDCoverStandards, Data

public class VideoData
extends java.lang.Object
implements Data, CDCoverStandards

Represents the data for a video cd.

Version:
June 22th 2002
Author:
Rutger Bezema, Andreas Schmitz

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
VideoData()
           
 
Method Summary
 void fillBack(Cover c)
          This method will insert a title at the sides and the description, title and subtitle.
 void fillBooklet(Cover c)
          This method will insert the title and a subtitle as well as the description.
 void fillFront(Cover c)
          This method will insert a title and a subtitle.
 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 setDescription(java.lang.String s)
          Sets the description.
 void setFormat(java.lang.String s)
          Sets the format.
 void setLength(java.util.Date d)
          Sets the length.
 void setSubtitle(java.lang.String s)
          Sets the subtitle.
 void setTitle(java.lang.String s)
          Sets the title.
 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

VideoData

public VideoData()
Method Detail

userFillData

public boolean userFillData(java.awt.Frame parent)
Description copied from interface: Data
This method should let the user fill in appropriate values as data.

Specified by:
userFillData in interface Data
Parameters:
parent - the parent frame.
Returns:
true if the user clicked ok, false otherwhise

getSupportedVersion

public int getSupportedVersion()
Description copied from interface: Data
Must return the version of the CDox file format that supports this data type.

Specified by:
getSupportedVersion in interface Data
Returns:
the version number.

storeData

public void storeData(org.w3c.dom.Element e)
Description copied from interface: Data
This method stores the data of this element in a DOM tree. The desc parameter is the DOM element <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.

Specified by:
storeData in interface Data
Parameters:
e - the <description> element.

reconstruct

public void reconstruct(org.w3c.dom.Element desc)
Description copied from interface: Data
Reads its data from the DOM subtree beginning with the given Element.

Specified by:
reconstruct in interface Data
Parameters:
desc - the top node of the DOM subtree.

getDescription

public java.lang.String getDescription()
Description copied from interface: Data
Returns a descriptive string of the CD type that this Data object represents.

Specified by:
getDescription in interface Data
Returns:
the string.

setTitle

public void setTitle(java.lang.String s)
Sets the title.

Parameters:
s - the new title.

setSubtitle

public void setSubtitle(java.lang.String s)
Sets the subtitle.

Parameters:
s - the new subtitle.

setFormat

public void setFormat(java.lang.String s)
Sets the format.

Parameters:
s - the new format.

setDescription

public void setDescription(java.lang.String s)
Sets the description.

Parameters:
s - the new description.

setLength

public void setLength(java.util.Date d)
Sets the length.

Parameters:
d - the new length.

fillFront

public void fillFront(Cover c)
               throws java.lang.IllegalArgumentException
This method will insert a title and a subtitle.

Specified by:
fillFront in interface Data
Parameters:
c - the cover where to add new elements.
Throws:
java.lang.IllegalArgumentException - if the cover is no front side.

fillBack

public void fillBack(Cover c)
              throws java.lang.IllegalArgumentException
This method will insert a title at the sides and the description, title and subtitle.

Specified by:
fillBack in interface Data
Parameters:
c - the cover where to add new elements.
Throws:
java.lang.IllegalArgumentException - if the cover is no back side.

fillBooklet

public void fillBooklet(Cover c)
                 throws java.lang.IllegalArgumentException
This method will insert the title and a subtitle as well as the description.

Specified by:
fillBooklet in interface Data
Parameters:
c - the cover where to add new elements.
Throws:
java.lang.IllegalArgumentException - if the cover is no booklet.