Module org.jpo

Class QueryNavigator

java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.QueryNavigator
All Implemented Interfaces:
NodeNavigatorInterface

public class QueryNavigator extends NodeNavigator
This class implements the NodeNavigator in the specific manner that is required for displaying Query in the ThumbnailsPanelController.
  • Field Details

    • myQuery

      protected Query myQuery
      A reference to the query group that shall be browsed
  • Constructor Details

    • QueryNavigator

      public QueryNavigator(Query queryToBrowse)
      Constructs a new Group Browser object
      Parameters:
      queryToBrowse - the Query for the browser
  • Method Details

    • setQuery

      public void setQuery(Query queryToBrowse)
      call this method to specify the query that should be browsed.
      Parameters:
      queryToBrowse - The Query which should be browsed.
    • getQuery

      public Query getQuery()
      returns the Query for this QueryNavigator
      Returns:
      the query for the browser
    • getTitle

      public String 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

      public SortableDefaultMutableTreeNode getNode(int index)
      This method returns the SortableDefaultMutableTreeNode 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