uk.ac.starlink.treeview
Class DuplicateDataNode

java.lang.Object
  extended by uk.ac.starlink.treeview.DuplicateDataNode
All Implemented Interfaces:
uk.ac.starlink.datanode.nodes.DataNode

public class DuplicateDataNode
extends Object
implements uk.ac.starlink.datanode.nodes.DataNode

DataNode object which acts as a clone of an existing node. It copies its attributes from a given node, but to some extent maintains its own state.


Constructor Summary
DuplicateDataNode(uk.ac.starlink.datanode.nodes.DataNode base)
          Initialises this node from the state of a given base node.
 
Method Summary
 boolean allowsChildren()
           
 void configureDetail(uk.ac.starlink.datanode.nodes.DetailViewer dv)
           
 Iterator getChildIterator()
           
 uk.ac.starlink.datanode.factory.DataNodeFactory getChildMaker()
           
 uk.ac.starlink.datanode.factory.CreationState getCreator()
           
 Object getDataObject(uk.ac.starlink.datanode.nodes.DataType type)
           
 String getDescription()
           
 Icon getIcon()
           
 String getLabel()
           
 String getName()
           
 String getNodeTLA()
           
 String getNodeType()
           
 Object getParentObject()
           
 String getPathElement()
           
 String getPathSeparator()
           
 boolean hasDataObject(uk.ac.starlink.datanode.nodes.DataType type)
           
 void setChildMaker(uk.ac.starlink.datanode.factory.DataNodeFactory fact)
           
 void setCreator(uk.ac.starlink.datanode.factory.CreationState state)
           
 void setLabel(String label)
           
 void setParentObject(Object parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateDataNode

public DuplicateDataNode(uk.ac.starlink.datanode.nodes.DataNode base)
Initialises this node from the state of a given base node.

Parameters:
base - the base data node
Method Detail

allowsChildren

public boolean allowsChildren()
Specified by:
allowsChildren in interface uk.ac.starlink.datanode.nodes.DataNode

setLabel

public void setLabel(String label)
Specified by:
setLabel in interface uk.ac.starlink.datanode.nodes.DataNode

getChildIterator

public Iterator getChildIterator()
Specified by:
getChildIterator in interface uk.ac.starlink.datanode.nodes.DataNode

getParentObject

public Object getParentObject()
Specified by:
getParentObject in interface uk.ac.starlink.datanode.nodes.DataNode

setParentObject

public void setParentObject(Object parent)
Specified by:
setParentObject in interface uk.ac.starlink.datanode.nodes.DataNode

getLabel

public String getLabel()
Specified by:
getLabel in interface uk.ac.starlink.datanode.nodes.DataNode

getName

public String getName()
Specified by:
getName in interface uk.ac.starlink.datanode.nodes.DataNode

getNodeTLA

public String getNodeTLA()
Specified by:
getNodeTLA in interface uk.ac.starlink.datanode.nodes.DataNode

getNodeType

public String getNodeType()
Specified by:
getNodeType in interface uk.ac.starlink.datanode.nodes.DataNode

getDescription

public String getDescription()
Specified by:
getDescription in interface uk.ac.starlink.datanode.nodes.DataNode

getIcon

public Icon getIcon()
Specified by:
getIcon in interface uk.ac.starlink.datanode.nodes.DataNode

getPathElement

public String getPathElement()
Specified by:
getPathElement in interface uk.ac.starlink.datanode.nodes.DataNode

getPathSeparator

public String getPathSeparator()
Specified by:
getPathSeparator in interface uk.ac.starlink.datanode.nodes.DataNode

hasDataObject

public boolean hasDataObject(uk.ac.starlink.datanode.nodes.DataType type)
Specified by:
hasDataObject in interface uk.ac.starlink.datanode.nodes.DataNode

getDataObject

public Object getDataObject(uk.ac.starlink.datanode.nodes.DataType type)
                     throws uk.ac.starlink.datanode.nodes.DataObjectException
Specified by:
getDataObject in interface uk.ac.starlink.datanode.nodes.DataNode
Throws:
uk.ac.starlink.datanode.nodes.DataObjectException

configureDetail

public void configureDetail(uk.ac.starlink.datanode.nodes.DetailViewer dv)
Specified by:
configureDetail in interface uk.ac.starlink.datanode.nodes.DataNode

setChildMaker

public void setChildMaker(uk.ac.starlink.datanode.factory.DataNodeFactory fact)
Specified by:
setChildMaker in interface uk.ac.starlink.datanode.nodes.DataNode

getChildMaker

public uk.ac.starlink.datanode.factory.DataNodeFactory getChildMaker()
Specified by:
getChildMaker in interface uk.ac.starlink.datanode.nodes.DataNode

setCreator

public void setCreator(uk.ac.starlink.datanode.factory.CreationState state)
Specified by:
setCreator in interface uk.ac.starlink.datanode.nodes.DataNode

getCreator

public uk.ac.starlink.datanode.factory.CreationState getCreator()
Specified by:
getCreator in interface uk.ac.starlink.datanode.nodes.DataNode

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.