- 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 Summary
Modifier and TypeMethodDescriptionvoid
addNodeNavigatorListener
(NodeNavigatorListener nodeNavigatorListener) Registers a NodeNavigatorListenergetNode
(int componentNumber) This method must return the SortableDefaultMutableTreeNode indicated by the position number passed as parameter.int
The implementing class must return the number of nodes it contains.getTitle()
The implementing class must return the title for the images being shown.void
Node Navigators must be able to send notifications to their listeners.void
removeNodeNavigatorListener
(NodeNavigatorListener nodeNavigatorListener) Removes a NodeNavigatorListener
-
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
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
-