public class TreeNode extends HierarchicalElement
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
expanded |
protected boolean |
selectable |
children, parent, PROPERTY_CHILDREN, PROPERTY_PARENTclickableWebElement, disabled, iconURL, label, PROPERTY_CLASS, PROPERTY_DISABLED, PROPERTY_EXPANDED, PROPERTY_ICON, PROPERTY_ID, PROPERTY_INDEX, PROPERTY_LABEL, PROPERTY_SELECTABLE, PROPERTY_SELECTED, PROPERTY_TEXTCONTENT, PROPERTY_VALUE, PROPERTY_VISIBLE, selected, visiblecssClass, id, map, object, possibleRecognitionStrings, searchContext, tagName, webelement| Modifier | Constructor and Description |
|---|---|
protected |
TreeNode() |
|
TreeNode(java.lang.Object object) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
_getLabel()
If the label contains multiple lines, the first line will be consider as the label.
As for TreeView, the WebElement node's innerText may contain the children-node's label. |
boolean |
equals(java.lang.Object node) |
TreeNode[] |
getChildren() |
TreeNode |
getParent() |
boolean |
isExpanded() |
boolean |
isSelectable() |
protected TreeNode[] |
newArray(int length)
Create an array of HierarchicalElement.
Sub class MUST OVERRIDE this method to provide its own array. |
protected TreeNode |
newInstance(java.lang.Object object)
Create an instance of HierarchicalElement.
Sub class MUST OVERRIDE this method to provide its own instance. |
void |
setChildren(HierarchicalElement[] children) |
void |
setExpanded(boolean expanded) |
void |
updateFields()
set/update the class's fields through the underlying WebElement or AbstractMap.
|
addChild, addChild, getClickableWebElement, getFullPath, getRootId, parseChildren, parseChildren, reverseChildren, setParentcontentValue, getIconURL, getLabel, isDisabled, isSelected, isVisible, parseWebElementText, setSelected, toStringgetAttribute, getCssClass, getEmbeddedObject, getId, getMap, getPossibleRecognitionStrings, getSearchContext, getTagName, getWebElement, initialize, refresh, setCssClass, setId, setPossibleRecognitionStrings, setSearchContext, setTagName, setWebElementpublic void setExpanded(boolean expanded)
public boolean isExpanded()
public boolean isSelectable()
public void updateFields()
updateFields in class HierarchicalElementDefaultRefreshable.refresh(boolean)protected java.lang.String _getLabel()
protected TreeNode newInstance(java.lang.Object object)
HierarchicalElementnewInstance in class HierarchicalElementobject - Object, to create an instance of this class.protected TreeNode[] newArray(int length)
HierarchicalElementnewArray in class HierarchicalElementlength - int, the length of the arraypublic TreeNode getParent()
getParent in class HierarchicalElementpublic TreeNode[] getChildren()
getChildren in class HierarchicalElementpublic void setChildren(HierarchicalElement[] children) throws SeleniumPlusException
setChildren in class HierarchicalElementchildren - TreeNode[], an array of TreeNodeSeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.