java.lang.Object
org.jpo.gui.QueriesJTreeController
Controller for the searches JTree
-
Constructor Summary
ConstructorDescriptionQueriesJTreeController
(PictureCollection pictureCollection) Constructs a JTree for the queries -
Method Summary
Modifier and TypeMethodDescriptionReturns a new view component with the JTree embedded in a JScrollpanevoid
Moves the highlighted row to the indicated one and expands the tree if necessary.
-
Constructor Details
-
QueriesJTreeController
Constructs a JTree for the queries- Parameters:
pictureCollection
- The PictureCollection on which the tree will be working
-
-
Method Details
-
getJComponent
Returns a new view component with the JTree embedded in a JScrollpane- Returns:
- the view
-
setSelectedNode
Moves the highlighted row to the indicated one and expands the tree if necessary. Does not talk back to the collection controller as this should be called from the collection controller.- Parameters:
node
- The node which should be highlighted
-