java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.QueryNavigator
- All Implemented Interfaces:
NodeNavigatorInterface
This class implements the
NodeNavigator
in the specific manner that is required for
displaying Query
in the ThumbnailsPanelController
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNode
(int index) This method returns theSortableDefaultMutableTreeNode
node for the indicated position in the group If there are more Thumbnails than nodes in the group it returns null.int
On a group we return the number of children in the group.getQuery()
returns theQuery
for this QueryNavigatorgetTitle()
returns the title of the Query being displayedvoid
call this method to specify the query that should be browsed.Methods inherited from class org.jpo.datamodel.NodeNavigator
addNodeNavigatorListener, notifyNodeNavigatorListeners, removeNodeNavigatorListener
-
Field Details
-
myQuery
A reference to the query group that shall be browsed
-
-
Constructor Details
-
QueryNavigator
Constructs a new Group Browser object- Parameters:
queryToBrowse
- the Query for the browser
-
-
Method Details
-
setQuery
call this method to specify the query that should be browsed.- Parameters:
queryToBrowse
- TheQuery
which should be browsed.
-
getQuery
returns theQuery
for this QueryNavigator- Returns:
- the query for the browser
-
getTitle
returns the title of the Query being displayed- Returns:
- The title of the query
-
getNumberOfNodes
public int getNumberOfNodes()On a group we return the number of children in the group.- Returns:
- the number of nodes
-
getNode
This method returns theSortableDefaultMutableTreeNode
node for the indicated position in the group If there are more Thumbnails than nodes in the group it returns null.- Parameters:
index
- The component index that is to be returned.- Returns:
- the node for the index
-