uk.ac.starlink.treeview
Class DemoDataNode

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

public class DemoDataNode
extends uk.ac.starlink.datanode.nodes.FileDataNode

A DataNode implementation which displays Treeview's known demo data directory.

Author:
Mark Taylor (Starlink)

Field Summary
static String DEMO_DIR_PROPERTY
           
 
Constructor Summary
DemoDataNode()
           
 
Method Summary
 void configureDetail(uk.ac.starlink.datanode.nodes.DetailViewer dv)
           
 Iterator getChildIterator()
           
static File getDemoDir()
          Returns the demo data directory.
 String getName()
           
 String getNodeTLA()
           
 String getNodeType()
           
 Object getParentObject()
           
 String getPathElement()
           
 String getPathSeparator()
           
 
Methods inherited from class uk.ac.starlink.datanode.nodes.FileDataNode
allowsChildren, setShowHidden
 
Methods inherited from class uk.ac.starlink.datanode.nodes.DefaultDataNode
beep, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEMO_DIR_PROPERTY

public static final String DEMO_DIR_PROPERTY
See Also:
Constant Field Values
Constructor Detail

DemoDataNode

public DemoDataNode()
             throws uk.ac.starlink.datanode.nodes.NoSuchDataException
Throws:
uk.ac.starlink.datanode.nodes.NoSuchDataException
Method Detail

getName

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

getPathElement

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

getPathSeparator

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

getParentObject

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

getNodeTLA

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

getNodeType

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

getChildIterator

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

configureDetail

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

getDemoDir

public static File getDemoDir()
                       throws uk.ac.starlink.datanode.nodes.NoSuchDataException
Returns the demo data directory.

Throws:
uk.ac.starlink.datanode.nodes.NoSuchDataException


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