All Packages Class Hierarchy This Package Previous Next Index
Class jumbo.xml.PCDATANode
java.lang.Object
|
+----com.sun.java.swing.tree.DefaultMutableTreeNode
|
+----jumbo.xml.XNode
|
+----jumbo.xml.PCDATANode
- public class PCDATANode
- extends XNode
A PCDATA node i.e. no elementType, just contains a string. The elementName
is set to #PCDATA though this cannot be relied on. Note that it is easy
to get muddled about the levels - <FOO>bar</FOO> is an XNode of elementName
FOO which contains a PCDATANode whose content is bar.
- Author:
- P.Murray-Rust, 1998
-
PCDATANode(PCDATANode)
- copy constructor
-
PCDATANode(String)
- create a PCDATA node with content
-
getDisplayComponent(int)
- Not yet written
-
getTitle()
- get a title for the node (primarily for display).
-
isWhitespace()
- is this node's content composed completely of whitespace (uses trim())?
PCDATANode
public PCDATANode(String content)
- create a PCDATA node with content
- Parameters:
- String - content the string content of the node
PCDATANode
public PCDATANode(PCDATANode pcdataNode)
- copy constructor
- Parameters:
- PCDATANode - node to be copied
isWhitespace
public boolean isWhitespace()
- is this node's content composed completely of whitespace (uses trim())?
- Returns:
- boolean true is node's content is whitespace only
getDisplayComponent
public JComponent getDisplayComponent(int type)
- Not yet written
- Parameters:
- int - type type of component to return
- Returns:
- JComponent the component
- Overrides:
- getDisplayComponent in class XNode
getTitle
public String getTitle()
- get a title for the node (primarily for display). Uses the first 30 characters
of the content prefixed by "[S]".
- Returns:
- String the title
- Overrides:
- getTitle in class XNode
All Packages Class Hierarchy This Package Previous Next Index