public class TreeNode extends ControlInstance
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 |
---|
TreeNode() |
Modifier and Type | Method and Description |
---|---|
void |
createBreadcrumbs()
When this node is selected, it creates bread crumbs leading upto to its parents
It prepares that the breadcrums as a ArrayList collection where, each element is a Hashtable having following keys
uniqueid
label
selected - true | false
It sets the breadcrumbs to the Tree from where its called by Breadcrums control via reflection.
|
boolean |
expandAllNodes() |
java.lang.String |
getKeyValue()
Returns key value for this node
Thsi method return a string which is embedded in the HTML image for QA automation.
|
java.lang.Object[] |
getNodeData() |
java.lang.String |
getNodeLabel()
Creates label to be displayed for each node.
|
Tree |
getTree() |
boolean |
hasChildNodes() |
boolean |
hasParentNode() |
void |
initialize()
Fires routine to create child nodes if this node was meant to be opened by default
|
boolean |
isCollapsed() |
boolean |
isDataHidden()
Returns true if data for this node is hidden
|
boolean |
isExpanded() |
boolean |
isFakeMessageNode()
Returns true if this node is fake
Apr 6, 2007
|
boolean |
isFirstChildForParent()
Returns true if this is the first node in a parent's hierarchy
|
boolean |
isLastChildForParent()
Returns true if this is the last node in a parent's hierarchy
May 24, 2007
|
boolean |
isMarkedForDelete()
Creates label to be displayed for each node.
|
boolean |
isStartOpened() |
int |
render()
Overridden to gather properties before complete can take place.
|
void |
selectnode()
Called when a node is selected in the tree
|
int |
selectrecord()
Called when a node is selected in the tree
|
void |
setCollapsed(boolean collapsed) |
void |
setDataHidden(boolean setDataHidden)
Used to set the flag for data being hidden for this node.
|
void |
setExpanded(boolean expanded) |
void |
setFirstChildForParent(boolean firstChildForParent)
Set flag for this node's being in first position in a parent's hierarchy
|
void |
setHasChildNodes(boolean hasChildNodes) |
void |
setHasParentNode(boolean hasParentNode) |
void |
setLastChildForParent(boolean lastNode)
Set flag for this node's being in last position in a parent's hierarchy
May 24, 2007
|
void |
setNodeData(java.lang.Object[] nodeData) |
void |
setNodeProperties(java.util.Hashtable treeNodeInfo)
Sets properties for this node based on teh collection passed in.
|
void |
setStartOpened(boolean startOpened) |
void |
setTree(Tree tree) |
void |
togglechildren()
Called when a node is selected in the tree.
|
addChild, addComponent, broadcastEvent, canInsert, canInsert, canRemove, childHasError, childHasErrorFocus, cleanup, clearComponent, clearErrors, copy, createRenderId, errorLevelChanged, eventCheck, findComponentByDescriptorId, findDesignerProperty, findProperty, findUseForLablledByComponent, getAdaptorInstance, getBoundComponent, getComponent, getComponents, getDataBean, 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, instantiatedatasrc, 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 void initialize()
initialize
in class ControlInstance
public int render() throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
render
in class ControlInstance
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
ControlInstance.render()
public java.lang.String getNodeLabel()
public boolean isMarkedForDelete() throws MXException
MXException
public void setNodeProperties(java.util.Hashtable treeNodeInfo)
public void selectnode() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int selectrecord() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void togglechildren() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isExpanded()
public boolean expandAllNodes()
public void setExpanded(boolean expanded)
expanded
- The expanded to set.public boolean isStartOpened()
public void setStartOpened(boolean startOpened)
startOpened
- The startOpened to set.public boolean hasChildNodes()
public void setHasChildNodes(boolean hasChildNodes)
hasChildNodes
- The hasChildNodes to set.public boolean hasParentNode()
public void setHasParentNode(boolean hasParentNode)
hasParentNode
- The hasParentNode to set.public java.lang.Object[] getNodeData()
public void setNodeData(java.lang.Object[] nodeData)
nodeData
- The nodeData to set.public Tree getTree()
public void setTree(Tree tree)
tree
- The tree to set.public boolean isCollapsed()
public void setCollapsed(boolean collapsed)
collapsed
- The collapsed to set.public boolean isFakeMessageNode()
public void createBreadcrumbs()
public boolean isLastChildForParent()
public void setLastChildForParent(boolean lastNode)
public boolean isFirstChildForParent()
public void setFirstChildForParent(boolean firstChildForParent)
public java.lang.String getKeyValue()
public boolean isDataHidden()
public void setDataHidden(boolean setDataHidden)
setDataHidden
-