org.histpop.ohpr.session
Class SearchNode
java.lang.Object
org.histpop.ohpr.session.BrowseNode
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.
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 |
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 filterowner
- 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.
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