|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.controls.XMLTree
public class XMLTree
This is an XML tree in a scroller.
Field Summary | |
---|---|
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<XMLProperty> |
selectedProps
|
protected javax.swing.JTree |
tree
|
Constructor Summary | |
---|---|
XMLTree(XMLControl control)
Constructs a tree view of an XMLControl |
Method Summary | |
---|---|
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<XMLProperty> |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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<XMLProperty> selectedProps
protected java.lang.Class<?> hilite
Constructor Detail |
---|
public XMLTree(XMLControl control)
control
- the XMLControlMethod Detail |
---|
public javax.swing.JTree getTree()
public java.util.List<XMLProperty> 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |