Package org.opensourcephysics.controls
Class XMLTree
java.lang.Object
org.opensourcephysics.controls.XMLTree
This is an XML tree in a scroller.
- Author:
- Douglas Brown
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XMLControl
protected Class<?>
protected static Icon
protected XMLTreeNode
protected JScrollPane
protected List<XMLProperty>
protected JTree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates the GUI and listeners.Class<?>
Gets the highlighted class.Gets the scroll pane with view of the treeGets the selected xml properties.getTree()
Gets the tree.void
Selects the highlighted properties.void
setHighlightedClass
(Class<?> type) Sets the highlighted class.void
Shows the highlighted properties.
-
Field Details
-
hiliteIcon
-
root
-
tree
-
scroller
-
control
-
selectedProps
-
hilite
-
-
Constructor Details
-
XMLTree
Constructs a tree view of an XMLControl- Parameters:
control
- the XMLControl
-
-
Method Details
-
getTree
Gets the tree.- Returns:
- the tree
-
getSelectedProperties
Gets the selected xml properties.- Returns:
- a list of currently selected properties
-
getScrollPane
Gets the scroll pane with view of the tree- Returns:
- the scroll pane
-
setHighlightedClass
Sets the highlighted class.- Parameters:
type
- the class to highlight
-
getHighlightedClass
Gets the highlighted class.- Returns:
- the highlighted class
-
selectHighlightedProperties
public void selectHighlightedProperties()Selects the highlighted properties. -
showHighlightedProperties
public void showHighlightedProperties()Shows the highlighted properties. -
createGUI
protected void createGUI()Creates the GUI and listeners.
-