Module org.jpo

Class GroupNavigator

java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.GroupNavigator
All Implemented Interfaces:
NodeNavigatorInterface

public class GroupNavigator extends NodeNavigator
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 Details

  • Method Details

    • getTitle

      public String getTitle()
      returns the name of the Group being displayed
      Returns:
      the description of the group
    • getGroupNode

      public SortableDefaultMutableTreeNode 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

      public SortableDefaultMutableTreeNode getNode(int index)
      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