java.lang.Object
org.jpo.gui.CollectionJTreeController
This class deals with the tree representation of the picture collection
-
Constructor Summary
ConstructorDescriptionCollectionJTreeController
(PictureCollection pictureCollection) The Controller class for the tree representation of the picture collection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the JScrollPane that holds the JTree.getSelectedNode
(JComponent component) A helper method that returns us the selected node on the tree if we have a selection, and it is pointing to a GroupInfo or a PictureInfo object.void
handleShowGroupRequest
(ShowGroupRequest request) When the tree receives a ShowGroupRequest it position the selection on the node.
-
Constructor Details
-
CollectionJTreeController
The Controller class for the tree representation of the picture collection.- Parameters:
pictureCollection
- the PictureCollection to control
-
-
Method Details
-
handleShowGroupRequest
When the tree receives a ShowGroupRequest it position the selection on the node.- Parameters:
request
- The ShowGroupRequest
-
getSelectedNode
A helper method that returns us the selected node on the tree if we have a selection, and it is pointing to a GroupInfo or a PictureInfo object.- Parameters:
component
- The component that we want to check- Returns:
- the node if we have one.
-
getCollectionJTree
-
getJScrollPane
Returns the JScrollPane that holds the JTree.- Returns:
- the JScrollPane that holds the tree
-