Module org.jpo

Interface NodeNavigatorInterface

All Known Implementing Classes:
FlatGroupNavigator, GroupNavigator, ListNavigator, NodeNavigator, QueryNavigator, RandomNavigator, SingleNodeNavigator

public interface NodeNavigatorInterface
This interface defines the methods that a "set of nodes" must implement so that the Controller can identify the Nodes to be displayed.
  • Method Details

    • getTitle

      String getTitle()
      The implementing class must return the title for the images being shown. This is displayed in the top part of the ThumbnailJScrollPane.
      Returns:
      a title for the browser
    • getNumberOfNodes

      int getNumberOfNodes()
      The implementing class must return the number of nodes it contains.
      Returns:
      the number of nodes
    • getNode

      SortableDefaultMutableTreeNode getNode(int componentNumber)
      This method must return the SortableDefaultMutableTreeNode indicated by the position number passed as parameter. If the index is out of bounds null is returned.
      Parameters:
      componentNumber - The number between 0 and #getNumberOfNodes()
      Returns:
      the node for the index
    • addNodeNavigatorListener

      void addNodeNavigatorListener(NodeNavigatorListener nodeNavigatorListener)
      Registers a NodeNavigatorListener
      Parameters:
      nodeNavigatorListener - a NodeNavigatorListener to notify
    • removeNodeNavigatorListener

      void removeNodeNavigatorListener(NodeNavigatorListener nodeNavigatorListener)
      Removes a NodeNavigatorListener
      Parameters:
      nodeNavigatorListener - the listener to remove
    • notifyNodeNavigatorListeners

      void notifyNodeNavigatorListeners()
      Node Navigators must be able to send notifications to their listeners.