java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.ListNavigator
- All Implemented Interfaces:
NodeNavigatorInterface
- Direct Known Subclasses:
FlatGroupNavigator
This class implements the NodeNavigator Interface so that all the pictures of
a specified List can be browsed sequentially.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
adds a node to the Listvoid
add
(SortableDefaultMutableTreeNode addNode) adds a node to the Listvoid
clear()
Clears all nodes from the ListgetNode
(int index) This method returns the node for the indicated position in the group.int
Returns the number of pictures in this group.getTitle()
Returns the title of the node setvoid
removeNode
(SortableDefaultMutableTreeNode removeNode) Removes a node from the ListtoString()
Returns a description of the navigatorMethods inherited from class org.jpo.datamodel.NodeNavigator
addNodeNavigatorListener, notifyNodeNavigatorListeners, removeNodeNavigatorListener
-
Constructor Details
-
ListNavigator
-
-
Method Details
-
getTitle
Returns the title of the node set- Returns:
- the Title
-
getNumberOfNodes
public int getNumberOfNodes()Returns the number of pictures in this group. Starts at 1 like all arrays.- Returns:
- The number of pictures
-
getNode
This method returns the node for the indicated position in the group.- Parameters:
index
- The component index that is to be returned. The number is from 0 togetNumberOfNodes()
.- Returns:
- The node for the specified index.
-
add
adds a node to the List- Parameters:
addNode
- a node to add to the allPictures List
-
add
adds a node to the List- Parameters:
nodes
- a node to add to the allPictures List
-
removeNode
Removes a node from the List- Parameters:
removeNode
- a node to add to the allPictures List
-
clear
public void clear()Clears all nodes from the List -
toString
Returns a description of the navigator
-