Class HTMLDataNode
java.lang.Object
uk.ac.starlink.datanode.nodes.DefaultDataNode
uk.ac.starlink.datanode.nodes.HTMLDataNode
- All Implemented Interfaces:
DataNode
DataNode implementation which describes a top-level HTML document.
The formatted HTML page is displayed and hyperlinks can be followed.
Note that if links are followed then the original document must be reloaded
in order to display the original page again.
- Version:
- $Id$
- Author:
- David Giaretta (Starlink)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHTMLDataNode(File file) Constructs a URL to be displayed in the pane, if possible. -
Method Summary
Modifier and TypeMethodDescriptionbooleanHTML type does not allow children.voidSets up a pane to display the HTML file.Returns Three Letter Acronym "HTM".Returns a short sentence indicating what kind of node this is.Methods inherited from class DefaultDataNode
beep, getChildIterator, getChildMaker, getCreator, getDataObject, getDescription, getIcon, getLabel, getName, getParentObject, getPathElement, getPathSeparator, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
-
Field Details
-
file
-
-
Constructor Details
-
HTMLDataNode
Constructs a URL to be displayed in the pane, if possible.- Throws:
NoSuchDataException
-
-
Method Details
-
allowsChildren
public boolean allowsChildren()HTML type does not allow children.- Specified by:
allowsChildrenin interfaceDataNode- Overrides:
allowsChildrenin classDefaultDataNode- Returns:
- false
-
getNodeTLA
Returns Three Letter Acronym "HTM".- Specified by:
getNodeTLAin interfaceDataNode- Overrides:
getNodeTLAin classDefaultDataNode- Returns:
- "HTM"
-
getNodeType
Description copied from interface:DataNodeReturns a short sentence indicating what kind of node this is. The return value should be just a few words. As a rough guideline it should indicate what the implementing class is.- Specified by:
getNodeTypein interfaceDataNode- Overrides:
getNodeTypein classDefaultDataNode- Returns:
- a short description of the type of this
DataNode
-
configureDetail
Sets up a pane to display the HTML file. Also activates the hyperlinks. Note that if any hyperlinks are followed then the new page will be cached and displayed until the original docuemnt is reloaded.- Specified by:
configureDetailin interfaceDataNode- Overrides:
configureDetailin classDefaultDataNode- Parameters:
dv- the detail viewer which this node is given an opportunity to configure
-