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

Constructor Index

 o PCDATANode(PCDATANode)
copy constructor
 o PCDATANode(String)
create a PCDATA node with content

Method Index

 o getDisplayComponent(int)
Not yet written
 o getTitle()
get a title for the node (primarily for display).
 o isWhitespace()
is this node's content composed completely of whitespace (uses trim())?

Constructors

 o PCDATANode
 public PCDATANode(String content)
create a PCDATA node with content

Parameters:
String - content the string content of the node
 o PCDATANode
 public PCDATANode(PCDATANode pcdataNode)
copy constructor

Parameters:
PCDATANode - node to be copied

Methods

 o 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
 o 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
 o 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