Module org.jpo

Class StaticNodesQuery

java.lang.Object
org.jpo.datamodel.StaticNodesQuery
All Implemented Interfaces:
Query

public class StaticNodesQuery extends Object implements Query
  • Constructor Details

  • Method Details

    • getNumberOfResults

      public int getNumberOfResults()
      Description copied from interface: Query
      The query must be able to say how many results it will return.
      Specified by:
      getNumberOfResults in interface Query
      Returns:
      the number of results
    • getIndex

      public SortableDefaultMutableTreeNode getIndex(int index)
      Description copied from interface: Query
      This method returns the SortableDefaultMutableTreeNode node for the indicated position in the query. If the index is out of bounds it returns null. The valid range is from 0 to Query.getNumberOfResults().
      Specified by:
      getIndex in interface Query
      Parameters:
      index - The component index that is to be returned 0 to Query.getNumberOfResults().
      Returns:
      the node for the index
    • getTitle

      public String getTitle()
      Description copied from interface: Query
      Returns a title for the search that can be used to display the search results under.
      Specified by:
      getTitle in interface Query
      Returns:
      a string for the title
    • refresh

      public void refresh()
      Description copied from interface: Query
      Forces the results to be refreshed
      Specified by:
      refresh in interface Query