public class OwObjectClassTreeView extends OwTreeView
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
OwTreeView.OwTreeViewEventListner, OwTreeView.OwTreeViewNode
Modifier and Type | Field and Description |
---|---|
protected OwConfiguration |
m_Configuration
application m_Configuration reference
|
protected int |
m_iObjectType
OwObject type to filter
|
protected OwNetwork |
m_network
credentials of the user
|
protected OwResource |
m_resource
network resource to get the classes from
|
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
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwObjectClassTreeView(OwResource resource_p,
int iObjectType_p)
construct a doc class view to select document classes
|
OwObjectClassTreeView(OwResource resource_p,
int iObjectType_p,
OwObjectClassSelectionCfg classSelectionCfg) |
Modifier and Type | Method and Description |
---|---|
protected List |
createChildObjects(Object objectClass_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
|
protected String |
getDisplayName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
get the display name for an object, default returns getName
to be implemented by the derived class
|
protected String |
getName(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
get the name for an object, used to build paths
|
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 |
isEnabled(Object obj_p,
OwTreeView.OwTreeViewNode node_p)
check if node is enabled, i.e.
|
void |
navigateClasses(Iterator classNames_p,
String strSubFolderPath_p)
set the folder object to display
|
void |
navigateToClass(OwObjectClass objectClass_p)
navigates to the given class object
NOTE: the tree must have been initialized with navigateClasses already.
|
addNode, canNavigate, clearSelection, createTreeViewNode, getChildrenSort, getClientSideId, getCurrentNode, getDisplayHTML, getDisplayMode, getNodeForObject, getNodeFromID, getRegisterItemStyle, getSelectedRegisterItemStyle, getSelectedTreeItemStyle, getTreeItemStyle, isEmpty, isFocused, isSelected, navigate, navigate, navigateToChild, navigateToId, navigateUp, onClickLabel, onClickPlusMinus, onRender, openNode, refreshCurrentNode, refreshNodeForObject, renderFolderIconLink, renderMinusIconLink, renderNode, renderNodeLink, renderPlusIconLink, renderRegister, setChildrenSort, setDisplayMode, setEventListner, useFormEventUrls, writeTooltip
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
protected OwConfiguration m_Configuration
protected OwResource m_resource
protected int m_iObjectType
protected OwNetwork m_network
public OwObjectClassTreeView(OwResource resource_p, int iObjectType_p)
resource_p
- the OwResource to get the classes fromiObjectType_p
- OwObject type to filterpublic OwObjectClassTreeView(OwResource resource_p, int iObjectType_p, OwObjectClassSelectionCfg classSelectionCfg)
resource_p
- iObjectType_p
- classSelectionCfg
- protected void init() throws Exception
init
in class OwTreeView
Exception
public void navigateClasses(Iterator classNames_p, String strSubFolderPath_p) throws Exception
classNames_p
- IteratorstrSubFolderPath_p
- Exception
public void navigateToClass(OwObjectClass objectClass_p) throws Exception
objectClass_p
- OwObjectClassException
protected List createChildObjects(Object objectClass_p) throws Exception
createChildObjects
in class OwTreeView
objectClass_p
- Object which is managed by the tree viewException
protected boolean hasPlusMinusIcon(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
hasPlusMinusIcon
in class OwTreeView
obj_p
- Object which is managed by the tree viewException
public boolean isEnabled(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
isEnabled
in class OwTreeView
obj_p
- Object which is managed by the tree viewException
protected String getName(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
getName
in class OwTreeView
obj_p
- Object which is managed by the tree viewException
protected String getDisplayName(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
getDisplayName
in class OwTreeView
obj_p
- Object which is managed by the tree viewnode_p
- the node to return the text forException
protected String getCloseIconURL(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
getCloseIconURL
in class OwTreeView
obj_p
- Object which is managed by the tree viewnode_p
- an OwTreeView.OwTreeViewNode
Exception
protected String getOpenIconURL(Object obj_p, OwTreeView.OwTreeViewNode node_p) throws Exception
getOpenIconURL
in class OwTreeView
obj_p
- Object which is managed by the tree viewnode_p
- OwTreeViewNodeException
protected void expandParents(Object theObject_p)
OwTreeView
expandParents
in class OwTreeView
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.