org.histpop.ohpr.session
Class SearchNode

java.lang.Object
  extended by org.histpop.ohpr.session.BrowseNode
      extended by org.histpop.ohpr.session.SearchNode

public class SearchNode
extends BrowseNode

This class represents a node in the browse tree for the search results. It contains a cached state of the associated volume titles and pointers to neighbouring tree nodes. It also includes the SQL name of a field used as a filter for the titles list. In addition to its parent class 'BrowseNode' it has two new properties for the items and pages counts.


Field Summary
 
Fields inherited from class org.histpop.ohpr.session.BrowseNode
LABEL_UNDEFINED
 
Constructor Summary
SearchNode(java.lang.String id, java.lang.String filter, SearchState owner, MasterNumber obj)
          Initialize a new instance of a browse tree node.
 
Method Summary
 void destroy()
           
 int getItemCount()
           
 int getPageCount()
           
 void setItemCount(int itemCount)
           
 void setPageCount(int pageCount)
           
 
Methods inherited from class org.histpop.ohpr.session.BrowseNode
addChild, ancestor, contractAllSubtrees, findLabel, findLevel, getFilter, getId, getInvisible, getNext, getOwner, getParent, getSubtree, getSubTreeExpanded, getTitlesState, isAncestorOf, setInvisible, setNext, setOwner, setParent, setSubtree, setSubTreeExpanded, setTitlesState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchNode

public SearchNode(java.lang.String id,
                  java.lang.String filter,
                  SearchState owner,
                  MasterNumber obj)
Initialize a new instance of a browse tree node.

Parameters:
id - A unique identifier for the browse tree node.
filter - The SQL field name for the relevant titles filter
owner - The session object owning the whole browse tree.
obj - The corresponding persistent object from which to retrieve additional properties for the items and pages counts.
Method Detail

getItemCount

public int getItemCount()

setItemCount

public void setItemCount(int itemCount)

getPageCount

public int getPageCount()

setPageCount

public void setPageCount(int pageCount)

destroy

public void destroy()
Overrides:
destroy in class BrowseNode