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 XMLControlprotected Class<?>protected static Iconprotected XMLTreeNodeprotected JScrollPaneprotected List<XMLProperty>protected JTree -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates 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.voidSelects the highlighted properties.voidsetHighlightedClass(Class<?> type) Sets the highlighted class.voidShows 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.
-