|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwView
com.wewebu.ow.server.ui.OwTreeView
com.wewebu.ow.server.dmsdialogs.views.OwObjectTreeView
public class OwObjectTreeView
TreeView Module to display Tree Views of OwObjects.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwTreeView |
|---|
OwTreeView.OwTreeViewEventListner, OwTreeView.OwTreeViewNode |
| Field Summary | |
|---|---|
protected OwConfiguration |
m_Configuration
application m_Configuration reference |
protected int |
m_iMaxChildSize
maximum number of child nodes |
| Fields inherited from class com.wewebu.ow.server.ui.OwTreeView |
|---|
childrenSort, DISPLAY_MODE_REGISTER_NODES, DISPLAY_MODE_TREE_NODES, m_eventlistner, m_focusNode, m_nodeMap, m_root, m_selectedNode, m_strDesignURL, m_strPath, NODE_ID_KEY, PATH_DELIMITER |
| Fields inherited from class com.wewebu.ow.server.ui.OwView |
|---|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget |
| Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
OwObjectTreeView()
|
|
| Method Summary | |
|---|---|
protected List |
createChildObjects(Object obj_p)
Create a list of child objects to the given object. |
protected void |
expandParents(Object theObject_p)
Expand the parents of the current object |
protected String |
getCloseIconURL(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
get a URL to the close icon to be implemented by the derived class |
protected String |
getDisplayHTML(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
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! |
protected String |
getDisplayName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
Returns the text to be displayed as the name of the node. This text will be properly encoded before used. |
protected String |
getName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
get the name for an object, used to build paths to be implemented by the derived class |
protected String |
getOpenIconURL(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
get a URL to the open icon to be implemented by the derived class |
protected boolean |
hasPlusMinusIcon(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
(overridable) check of node has subnodes to be overwritten by the derived class |
protected void |
init()
init the target after the context is set. |
boolean |
isDynamicSplitUsed()
Getter for flag m_isDynamicSplitUsed. |
void |
navigateChildObject(OwObject obj_p)
navigate to the given child object |
void |
setIsDynamicSplitUsed(boolean isynamicSplitUsed_p)
Setter for flag m_isDynamicSplitUsed. |
void |
setMaxChildSize(int iMaxChildSize_p)
set maximum number of child nodes |
| Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget |
|---|
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OwConfiguration m_Configuration
protected int m_iMaxChildSize
| Constructor Detail |
|---|
public OwObjectTreeView()
| Method Detail |
|---|
protected void init()
throws Exception
init in class OwTreeViewExceptionpublic void setMaxChildSize(int iMaxChildSize_p)
public void navigateChildObject(OwObject obj_p)
throws Exception
obj_p - Child OwObject to navigate to
Exception
protected List createChildObjects(Object obj_p)
throws Exception
OwSort object (@see OwTreeView.getChildrenSort()).
createChildObjects in class OwTreeViewobj_p - Object which is managed by the tree view
Exception
protected String getCloseIconURL(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
getCloseIconURL in class OwTreeViewobj_p - Object which is managed by the tree viewnode_p - OwTreeViewNode
Exception
protected String getOpenIconURL(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
getOpenIconURL in class OwTreeViewobj_p - Object which is managed by the tree viewnode_p - OwTreeViewNode
Exception
protected String getName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
getName in class OwTreeViewobj_p - Object which is managed by the tree view
Exception
protected String getDisplayName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
getDisplayName in class OwTreeViewobj_p - Object which is managed by the tree viewnode_p - the node to return the text for
Exception
protected String getDisplayHTML(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
getDisplayHTML in class OwTreeViewobj_p - Object which is managed by the tree viewnode_p - the node to return the text for
Exception
protected boolean hasPlusMinusIcon(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
throws Exception
hasPlusMinusIcon in class OwTreeViewobj_p - Object which is managed by the tree view
Exceptionpublic void setIsDynamicSplitUsed(boolean isynamicSplitUsed_p)
m_isDynamicSplitUsed.
isynamicSplitUsed_p - - the flag valuepublic boolean isDynamicSplitUsed()
m_isDynamicSplitUsed.
true if the dynamic split is used.
protected void expandParents(Object theObject_p)
throws Exception
OwTreeView
expandParents in class OwTreeViewException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||