public class XMLTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected XMLControl |
control |
protected java.lang.Class |
hilite |
protected static javax.swing.Icon |
hiliteIcon |
protected XMLTreeNode |
root |
protected javax.swing.JScrollPane |
scroller |
protected java.util.List |
selectedProps |
protected javax.swing.JTree |
tree |
Constructor and Description |
---|
XMLTree(XMLControl control)
Contructs a tree view of an XMLControl
|
Modifier and Type | Method and Description |
---|---|
protected void |
createGUI()
Creates the GUI and listeners.
|
java.lang.Class |
getHighlightedClass()
Gets the highlighted class.
|
javax.swing.JScrollPane |
getScrollPane()
Gets the scroll pane with view of the tree
|
java.util.List |
getSelectedProperties()
Gets the selected xml properties.
|
javax.swing.JTree |
getTree()
Gets the tree.
|
void |
selectHighlightedProperties()
Selects the highlighted properties.
|
void |
setHighlightedClass(java.lang.Class type)
Sets the highlighted class.
|
void |
showHighlightedProperties()
Shows the highlighted properties.
|
protected static javax.swing.Icon hiliteIcon
protected XMLTreeNode root
protected javax.swing.JTree tree
protected javax.swing.JScrollPane scroller
protected XMLControl control
protected java.util.List selectedProps
protected java.lang.Class hilite
public XMLTree(XMLControl control)
control
- the XMLControlpublic javax.swing.JTree getTree()
public java.util.List getSelectedProperties()
public javax.swing.JScrollPane getScrollPane()
public void setHighlightedClass(java.lang.Class type)
type
- the class to highlightpublic java.lang.Class getHighlightedClass()
public void selectHighlightedProperties()
public void showHighlightedProperties()
protected void createGUI()