public class OwTreeView.OwTreeViewNode extends Object
Modifier and Type | Field and Description |
---|---|
protected List |
m_childs
child nodes
|
protected String |
m_displaypath |
protected boolean |
m_fChildsCreated
flag indicating if the children have been created already
|
protected boolean |
m_fCollapsed
flag indicating if node is collapsed, initially true
|
protected boolean |
m_fFirstSibling
flag indicating if this is the first sibling
|
protected boolean |
m_fLastSibling
flag indicating if this is the last sibling
|
protected boolean |
m_fPlusMinusIcon
flag indicating if a plus minus icon should be drawn, initially true
|
protected Object |
m_obj
object that is managed by the node
|
protected OwTreeView.OwTreeViewNode |
m_parent
parent object to the node
|
protected String |
m_path
path to the node
|
protected String |
m_strCloseFolderURL
URL to the close folder icon
|
protected String |
m_strOpenFolderURL
URL to the open folder icon
|
protected OwTreeView |
m_view
reference to the underlying view
|
Constructor and Description |
---|
OwTreeView.OwTreeViewNode(OwTreeView treeView_p,
Object obj_p)
construct a tree node
|
Modifier and Type | Method and Description |
---|---|
protected void |
createChilds()
create the children or this node
|
boolean |
equals(Object otherObject_p) |
void |
expand() |
String |
getCloseIconURL()
get a URL to the close icon
|
String |
getDisplayHTML()
Returns HTML code to be used to display a node.
If you override this method, you have to make sure that the HTML code is properly encoded! |
String |
getDisplayName()
Returns the text to be displayed as the name of the node.
This text will be properly encoded before used. |
String |
getDisplayPath()
get the displayed path
|
String |
getID()
get a unique string ID for the node
|
String |
getLabelEventURL()
get the event URL when clicked on a label
|
String |
getName()
get the name for an object, default returns getName
|
Object |
getObject() |
Object |
getObjectParent()
get the object of the parent node
|
String |
getOpenIconURL()
get a URL to the open icon
|
OwTreeView.OwTreeViewNode |
getParent()
get the parent node
|
OwTreeView.OwTreeViewNode |
getParentFromDepth(int iLevel_p)
gets the Parent repeatedly for iLevel_p counts
|
String |
getPath()
get the path
|
String |
getPlusMinusIconEventURL()
get the event URL when clicked on a plus / minus icon
|
int |
hashCode() |
boolean |
hasPlusMinusIcon()
check of node has subnodes
|
boolean |
isCollapsed() |
boolean |
isEnabled()
check if node is enabled, i.e.
|
boolean |
isFirstSibling()
Returns the flag indicating if this is the first sibling
|
boolean |
isLastSibling()
Returns the flag indicating if this is the last sibling
|
protected OwTreeView.OwTreeViewNode |
navigate(StringTokenizer pathtokens_p)
navigate to the sub node by the given path
|
protected void |
refresh()
force node to reload its child nodes
|
void |
toggleExpand()
expand / collapse the node
|
protected OwTreeView m_view
protected boolean m_fLastSibling
protected boolean m_fFirstSibling
protected String m_path
protected String m_displaypath
protected boolean m_fChildsCreated
protected boolean m_fPlusMinusIcon
protected String m_strOpenFolderURL
protected String m_strCloseFolderURL
protected OwTreeView.OwTreeViewNode m_parent
protected boolean m_fCollapsed
protected List m_childs
protected Object m_obj
public OwTreeView.OwTreeViewNode(OwTreeView treeView_p, Object obj_p)
treeView_p
- OwTreeView referenceobj_p
- Object which is managed by the tree viewpublic Object getObject()
public String getLabelEventURL()
public String getPlusMinusIconEventURL()
public OwTreeView.OwTreeViewNode getParentFromDepth(int iLevel_p)
iLevel_p
- public OwTreeView.OwTreeViewNode getParent()
public Object getObjectParent()
null
if none is
availablepublic String getID()
public String getCloseIconURL() throws Exception
Exception
public String getOpenIconURL() throws Exception
Exception
public String getDisplayName() throws Exception
Exception
public String getDisplayHTML() throws Exception
Exception
public boolean isEnabled() throws Exception
Exception
public String getName() throws Exception
Exception
public boolean hasPlusMinusIcon() throws Exception
Exception
public void toggleExpand() throws Exception
Exception
protected void createChilds() throws Exception
Exception
protected void refresh() throws Exception
Exception
protected OwTreeView.OwTreeViewNode navigate(StringTokenizer pathtokens_p) throws Exception
pathtokens_p
- StringTokenizer tokenized pathException
public String getDisplayPath()
public String getPath()
public boolean isCollapsed()
true
if node is collapsed , false
otherwisepublic boolean isLastSibling()
public boolean isFirstSibling()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.