java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.GroupNavigator
- All Implemented Interfaces:
NodeNavigatorInterface
This class implements the NodeNavigator in the specific manner that is
required for displaying the child nodes of a Group in the Thumbnail
JScrollPane.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the group node of the NavigatorgetNode
(int index) This method returns the SortableDefaultMutableTreeNode node for the indicated position in the group.int
On a group we return the number of children in the group.getTitle()
returns the name of the Group being displayedMethods inherited from class org.jpo.datamodel.NodeNavigator
addNodeNavigatorListener, notifyNodeNavigatorListeners, removeNodeNavigatorListener
-
Constructor Details
-
GroupNavigator
-
-
Method Details
-
getTitle
returns the name of the Group being displayed- Returns:
- the description of the group
-
getGroupNode
Returns the group node of the Navigator- Returns:
- the group node
-
getNumberOfNodes
public int getNumberOfNodes()On a group we return the number of children in the group.- Returns:
- the number of child nodes
-
getNode
This method returns the SortableDefaultMutableTreeNode node for the indicated position in the group. If the request is for an index larger than the number of nodes null is returned so that clients can show something appropriate.- Parameters:
index
- The component index that is to be returned.- Returns:
- the child node at the index
-