public class TreeNode extends HierarchicalElement
Modifier and Type | Field and Description |
---|---|
protected boolean |
expanded |
protected boolean |
selectable |
children, parent, PROPERTY_CHILDREN, PROPERTY_PARENT
clickableWebElement, 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, visible
cssClass, 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)
If ID equals, then 2 Items are considered as identical.
|
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, setParent
contentValue, getIconURL, getLabel, isDisabled, isSelected, isVisible, parseWebElementText, setSelected, toString
getAttribute, getCssClass, getEmbeddedObject, getId, getMap, getPossibleRecognitionStrings, getSearchContext, getTagName, getWebElement, initialize, isStale, refresh, setCssClass, setId, setPossibleRecognitionStrings, setSearchContext, setTagName, setWebElement
public void setExpanded(boolean expanded)
public boolean isExpanded()
public boolean isSelectable()
public void updateFields()
updateFields
in class HierarchicalElement
DefaultRefreshable.refresh(boolean)
protected java.lang.String _getLabel()
protected TreeNode newInstance(java.lang.Object object)
HierarchicalElement
newInstance
in class HierarchicalElement
object
- Object, to create an instance of this class.protected TreeNode[] newArray(int length)
HierarchicalElement
newArray
in class HierarchicalElement
length
- int, the length of the arraypublic TreeNode getParent()
getParent
in class HierarchicalElement
public TreeNode[] getChildren()
getChildren
in class HierarchicalElement
public void setChildren(HierarchicalElement[] children) throws SeleniumPlusException
setChildren
in class HierarchicalElement
children
- TreeNode[], an array of TreeNodeSeleniumPlusException
Copyright © SAS Institute. All Rights Reserved.