net.sourceforge.nite.nstyle.handler
Class NDisplayObjectHandler

java.lang.Object
  extended by net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
Direct Known Subclasses:
JComponentHandler, NActionReferenceHandler, TextStyleHandler, TreeNodeHandler

public abstract class NDisplayObjectHandler
extends java.lang.Object

Author:
Judy Robertson

Constructor Summary
NDisplayObjectHandler()
           
 
Method Summary
 void addActionReference(NActionReference n)
           
abstract  void addChild(NDisplayObjectHandler child)
          In an implementation-specific manner, add the supplied child NDisplayObjectHandler to this one.
 java.util.List getActionReferences()
           
 java.util.List getChildren()
          Returns the children.
 Clock getClock()
          Returns the niteclock.
 ObjectModelElement getElement()
          Returns the element.
 double getEndTime()
          Returns the endTime.
 java.lang.String getID()
          Returns the iD.
 NDisplayObjectHandler getParent()
          Gets the parent of this NDisplayObjectHandler.
 java.lang.String getSourceID()
          Method getSourceID.
 double getStartTime()
          Returns the startTime.
 void init(java.lang.String content, java.util.Map properties)
          Initialises this NDisplayObjectHandler with the supplied set of properties.
 void setChildren(java.util.List children)
          Sets the children.
 void setClock(Clock niteclock)
          Sets the niteclock.
 void setElement(ObjectModelElement element)
          Sets the element.
 void setEndTime(double endTime)
          Sets the endTime.
 void setID(java.lang.String iD)
          Sets the iD.
 void setParent(NDisplayObjectHandler parent)
          Sets the parent of this NDisplayObjectHandler to the specified object.
 void setSourceID(java.lang.String s)
           
 void setStartTime(double startTime)
          Sets the startTime.
 void setUpTimes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NDisplayObjectHandler

public NDisplayObjectHandler()
Method Detail

init

public void init(java.lang.String content,
                 java.util.Map properties)
Initialises this NDisplayObjectHandler with the supplied set of properties. Initialisation typically involves creating an underlying object such as a JComponent.

Parameters:
content - The textual content for this object.
properties - A set of named properties.

addChild

public abstract void addChild(NDisplayObjectHandler child)
In an implementation-specific manner, add the supplied child NDisplayObjectHandler to this one.

Parameters:
child - The child to add.
Throws:
java.lang.IllegalArgumentException - if the supplied child was not of the correct type.

setParent

public void setParent(NDisplayObjectHandler parent)
Sets the parent of this NDisplayObjectHandler to the specified object.

Parameters:
parent - The object which will become the parent of this one.

getParent

public NDisplayObjectHandler getParent()
Gets the parent of this NDisplayObjectHandler.

Returns:
The parent NDisplayObjectHandler.

getEndTime

public double getEndTime()
Returns the endTime.

Returns:
double

getStartTime

public double getStartTime()
Returns the startTime.

Returns:
double

setEndTime

public void setEndTime(double endTime)
Sets the endTime.

Parameters:
endTime - The endTime to set

setStartTime

public void setStartTime(double startTime)
Sets the startTime.

Parameters:
startTime - The startTime to set

getClock

public Clock getClock()
Returns the niteclock.

Returns:
Clock

setClock

public void setClock(Clock niteclock)
Sets the niteclock.

Parameters:
niteclock - The niteclock to set

setUpTimes

public void setUpTimes()

addActionReference

public void addActionReference(NActionReference n)

getActionReferences

public java.util.List getActionReferences()

getChildren

public java.util.List getChildren()
Returns the children.

Returns:
List

setChildren

public void setChildren(java.util.List children)
Sets the children.

Parameters:
children - The children to set

getID

public java.lang.String getID()
Returns the iD.

Returns:
String

setID

public void setID(java.lang.String iD)
Sets the iD.

Parameters:
iD - The iD to set

getElement

public ObjectModelElement getElement()
Returns the element.

Returns:
Element

setElement

public void setElement(ObjectModelElement element)
Sets the element.

Parameters:
element - The element to set

getSourceID

public java.lang.String getSourceID()
Method getSourceID.

Returns:
String

setSourceID

public void setSourceID(java.lang.String s)