public class Tree extends DatasrcInstance implements DataBeanListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONST_RESTRICT_ACTION_ON_BRANCHNODES
Constant for branch type nodes
|
static java.lang.String |
CONST_RESTRICT_ACTION_ON_LEAFNODES
Constant for leaf type nodes
|
amIinitialize, DATASOURCE, INPUTMODE, labelOverride, ONDATACAHNGE, PARAM_APP, PARAM_APPTABTYPE, PARAM_DESIGNMODE, PARAM_MOBILE, PARAM_MODULE, PARAM_PAGE, PARAM_PARENTCOMPONENT, PARAM_PARENTCONTROL, PARAM_PRESENTATION, PARAM_SCREENREADER, PARAM_SKINNAME, PARAM_TAB, PARAM_TABGROUP, PARAM_TABGROUP_MAIN, PARAM_TABLE, PARAM_USERINFO, PARAM_VERTICALLABEL, RERENDER_PROPERTY
EXCEPTION_ERROR, EXCEPTION_INFO, EXCEPTION_NONE, EXCEPTION_REQUIREDFIELD, EXCEPTION_SMARTFILL, EXCEPTION_WARNING, EXCEPTION_YESNOCANCEL, FORCE_WARNING_HANDLING, NO_PROMPT_WITH_WARNING, presentationTags, PROMPT_WHEN_WARNING_EXIST
Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
void |
boundToBreadcrumbs()
Set the tree as bound to breadcrumbs
|
int |
breadcrumbselected()
Implemented to handle the event when breadcrum is selected.
|
boolean |
checkForNewNodes()
Checks if nodes have to be checked for new children
|
int |
clearbreadcrumbs()
Event to clear all breadcrumbs
|
void |
collectNodeAttributes()
Traverses through the tree attributes defined in the tree definition in the presentation.
|
void |
createNodes()
Clones tree nodes based on the definition in the registry and values obtained from the HierarchicalMboSet.
|
void |
dataChangedEvent(DataBean speaker)
Overriddeng from DataBean
|
boolean |
expandAllNodes() |
java.util.ArrayList |
getBreadcrumbPath()
Return the breadcrumbPath
|
java.util.ArrayList |
getBreadcrumbs()
Called by the breadcrums control via reflection.
|
java.lang.Object[][] |
getChildren(java.lang.String objectname,
java.lang.String uniqueId) |
java.lang.Object[][] |
getChildren(java.lang.String objectname,
java.lang.String uniqueId,
java.lang.String[] dataAttributes,
int maxChildren) |
java.lang.String |
getLastSelectedNodeId() |
java.lang.Object[] |
getMboValueData(java.lang.String[] dataAttributes)
Returns the MboValueData collection for current record
|
java.util.ArrayList |
getNodeAttributeDefinition() |
java.lang.String[] |
getNodeDataAttributes() |
java.lang.String |
getNodeDelimiter() |
java.lang.String |
getObjectName()
Returns current object name
|
void |
getpathtotop()
Handled getpathtotop event.
|
java.lang.Object[][] |
getPathToTop(java.lang.String objectname,
java.lang.String uniqueid,
java.lang.String[] dataattributes,
int maxchildren)
Returns all objects in the path to the top from the current object, i.e.
|
java.lang.String |
getRestrictActionOn()
Returns the value of "restrictactionon" specified on the tree
|
TreeNode |
getSelectedNode() |
java.lang.String |
getSourceAttributeValue() |
java.lang.String |
getSourceDataAttribute() |
java.lang.Object[][] |
getTop(java.lang.String[] dataattributes,
int maxchildren)
Returns all the top level objects in the hierarchy, i.e.
|
java.lang.String |
getTopULId() |
TreeControlBean |
getTreeDataBean() |
java.util.Hashtable<java.lang.String,java.lang.String> |
getTreeNodeInfo() |
java.lang.String |
getUniqueIdName()
Returns current uniqueid name
|
java.lang.String |
getUniqueIdValue()
Returns unique id value
|
void |
initialize()
Overridden to setup the databean to use speecific dobjectName and dataattribute.
|
boolean |
isBoundToBreadcrumbs()
Returns true if the tree is bound to breadcrumbs
|
boolean |
openFirstLevel() |
int |
render()
Overridden from ControlInstance to clone the tree nodes.
|
boolean |
selectFirstNode() |
void |
selectnode()
Called when a node is selected in the tree
|
void |
setBreadcrumbPath(java.util.ArrayList newBreadcrumbPath)
Sets newly created breadcrums path.
|
void |
setBreadcrumbs(java.util.ArrayList newBreadcrumbs)
Sets newly created breadcrums.
|
void |
setcurrentnode(java.lang.String newobjectname,
java.lang.String newuniqueIdName,
java.lang.String newuniqueIdValue)
Sets the key values for the node that was just selected in the tree
|
void |
setHierarchy(java.lang.String objectname,
java.lang.String uniqueId,
java.lang.String hierarchy)
Sets the hierarchy of the object.
|
void |
setObjectName(java.lang.String newobjectname)
Sets new object name and flags the tree to be refreshed
|
void |
setRefreshTree(boolean flag)
Sets the refresh flag for the tree
|
void |
setSelectedNode(TreeNode newSelectedNode) |
void |
setSourceAttributeValue(java.lang.String sourceAttributeValue) |
void |
setSourceDataAttribute(java.lang.String sourceDataAttribute) |
void |
setTopULId(java.lang.String id) |
void |
setTreeDataBean(TreeControlBean treeDataBean) |
void |
setTreeNodeInfo(java.util.Hashtable<java.lang.String,java.lang.String> treeNodeInfo) |
void |
setUniqueIdName(java.lang.String newuniqueIdName)
Sets new unique id name
|
void |
setUniqueIdValue(java.lang.String newUniqueIdValue)
Sets new unique id value
|
void |
structureChangedEvent(DataBean speaker)
Overridden to flag the the tree as refreshed
|
boolean |
supportsMarkedForDelete()
Returns true if tree is to check for markedfordelete
|
broadcastEvent, cleanup, getDataBean, instantiatedatasrc, instantiatedatasrcdesign
addChild, addComponent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getDataSource, getDescriptorControl, getDesignerProperty, getDesignerSelected, getDesignerSelectedControl, getElement, getErrorLevel, getGeneratedControl, getOriginalControl, getOriginalProperty, getProperties, getProperty, getProperty, getPropertyIgnoreFlags, getPropertyOriginator, getPropertyUncle, getRecordHover, getSkipPreRender, getTableControl, getTakesValueComponent, handleEvent, hasChanged, hasChangedConditionally, hasChildElements, hasMaskedChanged, hasRecordHover, hasVisibleChildren, isDesignerEditedProperty, isDisabled, isFocusable, isGenerated, isHiddenByLicense, isIncluded, isLastChild, isMainrecActionMenu, isMasked, isOnTableFilterRow, isOnTableTitleRow, isPersistentProperty, isReInitialize, isSelected, isToBeDisplayedOnCurrentTab, isToBeDisplayedOnTab, isVisible, launchexternal, moveChild, needsRender, parseParamvalues, preRender, preRenderChecks, quickinsert, registerDesignerEditedProperty, reInitialize, removeChild, renderChildren, resetDataSource, resolveParam, resolveParams, setAttributeError, setBoundComponent, setChangedFlag, setChangedFlag, setDesignerSelected, setDisabled, setElement, setErrorFocusOnControl, setFocus, setFocus, setFocusable, setFocusTable, setGenerated, setGeneratedControl, setIncluded, setIncluded, setNeedsRender, setOnTableFilterRow, setOnTableRow, setOnTableTitleRow, setOriginalControl, setPropertyOriginator, setPropertyUncle, setReInitialize, setReRenderFlags, setSelected, setSkipPreRender, setTableControl, setVisibility, stopRender, walkForId, walkForId
addChild, addChild, addRefreshListener, clearChildren, clearProperties, clone, clone, getBoolean, getChildCount, getChildIndex, getChildren, getConsiderInDesigner, getDescriptor, getId, getIdExtension, getInt, getLocalizedType, getPage, getParent, getParentInstance, getPropertyNames, getRefreshListeners, getRenderId, getRowNum, getSafeId, getString, getType, getWebClientSession, handleEvent, hasAnyPropertyChanged, hasLocalProperty, hasPropertyChanged, initProperty, isDynamicContainer, isOnTable, isOnTableRow, maintainControlId, removeProperty, setConsiderInDesigner, setDescriptor, setDynamicContainer, setOnTable, setParent, setProperty, setProperty, setRenderId, setType, setWebClientSession, toString
public static final java.lang.String CONST_RESTRICT_ACTION_ON_LEAFNODES
public static final java.lang.String CONST_RESTRICT_ACTION_ON_BRANCHNODES
public void initialize()
initialize
in class ControlInstance
DataBean.initialize()
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
render
in class DatasrcInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
ControlInstance.render()
public void collectNodeAttributes()
public boolean supportsMarkedForDelete()
public void selectnode() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setcurrentnode(java.lang.String newobjectname, java.lang.String newuniqueIdName, java.lang.String newuniqueIdValue) throws MXException, java.rmi.RemoteException
newobjectname
- newuniqueIdName
- newuniqueIdValue
- MXException
java.rmi.RemoteException
public void createNodes()
nodeDataAttributes
- Values to be retrieved from the HeirarchicalMboSetpublic java.lang.Object[][] getTop(java.lang.String[] dataattributes, int maxchildren) throws MXException, java.rmi.RemoteException
nodeDataAttributes
- - list of attributes whose values are requested, the attribute data
returned in the attribute list correspond to this list.maxchildren
- - maximum number of rows to return.MXException
java.rmi.RemoteException
public java.lang.Object[][] getChildren(java.lang.String objectname, java.lang.String uniqueId, java.lang.String[] dataAttributes, int maxChildren) throws MXException, java.rmi.RemoteException
objectName
- - name of the object whose children are being requested.uniqueid
- - unique id of the object whose children are being fetched.MXException
java.rmi.RemoteException
public java.lang.Object[][] getChildren(java.lang.String objectname, java.lang.String uniqueId) throws MXException, java.rmi.RemoteException
objectName
- - name of the object whose children are being requested.uniqueid
- - unique id of the object whose children are being fetched.dataattributes
- - list of attributes whose values are requested, the attribute data
returned in the attribute list correspond to this list.maxchildren
- - maximum number of rows to return.MXException
java.rmi.RemoteException
public java.lang.Object[][] getPathToTop(java.lang.String objectname, java.lang.String uniqueid, java.lang.String[] dataattributes, int maxchildren) throws MXException, java.rmi.RemoteException
objectname
- - name of the object whose children are being requested.uniqueid
- - unique id of the object whose children are being fetched.dataattributes
- - list of attributes whose values are requested, the attribute data
returned in the attribute list correspond to this list.maxchildren
- - maximum number of rows to return.MXException
java.rmi.RemoteException
public void getpathtotop() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.Object[] getMboValueData(java.lang.String[] dataAttributes) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setHierarchy(java.lang.String objectname, java.lang.String uniqueId, java.lang.String hierarchy) throws MXException, java.rmi.RemoteException
objectname
- - name of the object whose children are being requested.uniqueid
- - unique id of the object whose children are being fetched.hierarchy
- - name of the hierarchMXException
java.rmi.RemoteException
public java.lang.String getObjectName()
public void setObjectName(java.lang.String newobjectname)
newobjectname
- - new object namepublic java.lang.String getUniqueIdName()
public void setUniqueIdName(java.lang.String newuniqueIdName)
newuniqueIdName
- - new namepublic java.lang.String getUniqueIdValue()
public void setUniqueIdValue(java.lang.String newUniqueIdValue)
newuniqueidvalue
- - new value for unique idpublic java.lang.String getRestrictActionOn()
public void setRefreshTree(boolean flag)
flag
- - true if refresh neededpublic java.lang.String getSourceAttributeValue()
public void setSourceAttributeValue(java.lang.String sourceAttributeValue)
sourceAttributeValue
- The sourceAttributeValue to set.public java.lang.String getSourceDataAttribute()
public void setSourceDataAttribute(java.lang.String sourceDataAttribute)
sourceDataAttribute
- The sourceDataAttribute to set.public TreeControlBean getTreeDataBean()
public void setTreeDataBean(TreeControlBean treeDataBean)
treeDataBean
- The treeDataBean to set.public boolean openFirstLevel()
public boolean expandAllNodes()
public boolean selectFirstNode()
public java.lang.String[] getNodeDataAttributes()
public java.lang.String getNodeDelimiter()
public java.util.ArrayList getNodeAttributeDefinition()
public java.util.Hashtable<java.lang.String,java.lang.String> getTreeNodeInfo()
public void setTreeNodeInfo(java.util.Hashtable<java.lang.String,java.lang.String> treeNodeInfo)
treeNodeInfo
- The treeNodeInfo to set.public void dataChangedEvent(DataBean speaker)
dataChangedEvent
in interface DataBeanListener
public void structureChangedEvent(DataBean speaker)
structureChangedEvent
in interface DataBeanListener
DataBeanListener.structureChangedEvent(psdi.webclient.system.beans.DataBean)
public TreeNode getSelectedNode()
public java.lang.String getLastSelectedNodeId()
public void setSelectedNode(TreeNode newSelectedNode)
selectedNode
- The selectedNode to set.public java.util.ArrayList getBreadcrumbs()
Apr 5, 2007
public void setBreadcrumbs(java.util.ArrayList newBreadcrumbs)
newBreadcrumbs
- Apr 10, 2007public java.util.ArrayList getBreadcrumbPath()
public void setBreadcrumbPath(java.util.ArrayList newBreadcrumbPath)
newBreadcrumbPath
- Apr 10, 2007public int breadcrumbselected()
public void boundToBreadcrumbs()
public boolean isBoundToBreadcrumbs()
public int clearbreadcrumbs()
public boolean checkForNewNodes()
public java.lang.String getTopULId()
public void setTopULId(java.lang.String id)