public class DataNode
extends java.lang.Object
Constructor and Description |
---|
DataNode(org.w3c.dom.Node n,
int level)
Constructor DataNode creates a new DataNode instance and cleverly
stores it in the given Node argument.
|
Modifier and Type | Method and Description |
---|---|
void |
addToPanel(DataNode dn)
Add a DataNode object to this DataNode object as part of the JPanel.
|
javax.swing.JPanel |
getContainer() |
static DataNode |
getDataNode(org.w3c.dom.Node n)
Method to get the DataNode object associated with a particular Node object.
|
int |
getLevel() |
org.w3c.dom.Node |
getNode()
Get the Node object associated with this DataNode object.
|
javax.swing.JLabel |
getTagField() |
java.lang.String |
getValue() |
javax.swing.JTextField |
getValueField() |
boolean |
isContainer() |
void |
removeFromPanel(DataNode dn)
Remove a DataNode object from this DataNode object as part of the JPanel.
|
void |
setValue(java.lang.String value) |
public DataNode(org.w3c.dom.Node n, int level)
n
- of type Nodelevel
- level in node hierarchy (to determine color to use)public void addToPanel(DataNode dn)
dn
- DataNode object to addpublic void removeFromPanel(DataNode dn)
dn
- DataNode object to addpublic boolean isContainer()
public int getLevel()
public javax.swing.JLabel getTagField()
public javax.swing.JTextField getValueField()
public javax.swing.JPanel getContainer()
public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to setpublic static DataNode getDataNode(org.w3c.dom.Node n)
n
- Node objectpublic org.w3c.dom.Node getNode()