|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.histpop.ohpr.session.BrowseNode
public class BrowseNode
This class represents a node in the browse tree. 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.
Field Summary | |
---|---|
static java.lang.String |
LABEL_UNDEFINED
The default value for undefined tree node labels |
Constructor Summary | |
---|---|
BrowseNode(java.lang.String id,
java.lang.String filter,
BrowseState owner)
Initialize a new instance of a browse tree node. |
Method Summary | |
---|---|
void |
addChild(BrowseNode child)
Add a child tree node to this tree node |
BrowseNode |
ancestor(int level)
Find the ancestor browse tree node. |
void |
contractAllSubtrees()
contract all the sub trees |
void |
destroy()
|
java.lang.String |
findLabel(boolean withoutOrderQualifier)
Find the tree node label which can be displayed in the tree view |
int |
findLevel()
find the browse tree level of the current tree node |
java.lang.String |
getFilter()
|
java.lang.String |
getId()
Get the unique identifier of this node. |
boolean |
getInvisible()
|
BrowseNode |
getNext()
|
BrowseState |
getOwner()
|
BrowseNode |
getParent()
|
BrowseNode |
getSubtree()
|
boolean |
getSubTreeExpanded()
|
TitleQueryState |
getTitlesState()
|
boolean |
isAncestorOf(BrowseNode node)
Find out whether a given tree node is an ancestor of the current one. |
void |
setInvisible(boolean invisible)
|
void |
setNext(BrowseNode next)
|
void |
setOwner(BrowseState owner)
|
void |
setParent(BrowseNode parent)
|
void |
setSubtree(BrowseNode subtree)
|
void |
setSubTreeExpanded(boolean subTreeExpanded)
|
void |
setTitlesState(TitleQueryState titlesState)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LABEL_UNDEFINED
Constructor Detail |
---|
public BrowseNode(java.lang.String id, java.lang.String filter, BrowseState owner)
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.Method Detail |
---|
public void setParent(BrowseNode parent)
public void setNext(BrowseNode next)
public void setSubtree(BrowseNode subtree)
public void setSubTreeExpanded(boolean subTreeExpanded)
public void setInvisible(boolean invisible)
public void setTitlesState(TitleQueryState titlesState)
public void setOwner(BrowseState owner)
public BrowseNode getParent()
public BrowseNode getNext()
public BrowseNode getSubtree()
public java.lang.String getFilter()
public boolean getSubTreeExpanded()
public boolean getInvisible()
public TitleQueryState getTitlesState()
public BrowseState getOwner()
public java.lang.String getId()
public java.lang.String findLabel(boolean withoutOrderQualifier)
public void contractAllSubtrees()
public int findLevel()
public BrowseNode ancestor(int level)
level
- The browse tree level of the wanted ancestor.
The root node starts at level 0.
public boolean isAncestorOf(BrowseNode node)
node
- A possible ancestor node
public void addChild(BrowseNode child)
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |