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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNode(int index) This method returns theSortableDefaultMutableTreeNodenode for the indicated position in the group If there are more Thumbnails than nodes in the group it returns null.intOn a group we return the number of children in the group.getQuery()returns theQueryfor this QueryNavigatorgetTitle()returns the title of the Query being displayedvoidcall 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- TheQuerywhich should be browsed.
-
getQuery
returns theQueryfor 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 theSortableDefaultMutableTreeNodenode 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
-