Package com.hp.lft.sdk.java
Class MenuDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.java.UiObjectBaseDescription
com.hp.lft.sdk.java.MenuDescription
- All Implemented Interfaces:
CloneableObject
,Description
,com.hp.lft.sdk.internal.DescriptionWithVri
,Cloneable
The description of a Java Menu test object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class can be used to construct an instance of the MenuDescription class using the builder pattern.protected static class
MenuDescription.Init<T extends MenuDescription.Init<T>>
Helper class for MenuDescription.Builder. -
Field Summary
Fields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInitializes a new instance of the MenuDescription class.protected
MenuDescription
(MenuDescription.Init<?> init) Initializes a new instance of the MenuDescription class using the Builder pattern. -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of menu items that are direct children of this menu.getText()
Returns the menu's text.void
setSubMenusCount
(Integer count) Sets the number of menu items that are direct children of this menu.void
setText
(StringProperty text) Sets the menu's text.void
Sets the menu's text.Methods inherited from class com.hp.lft.sdk.java.UiObjectBaseDescription
getAbsoluteLocation, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getLocation, getNativeClass, getObjectName, getPath, getSize, getTagName, isEnabled, isFocused, isVisible, isWrapped, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttachedText, setAttachedText, setBackgroundColor, setBackgroundColor, setEnabled, setFocused, setForegroundColor, setForegroundColor, setLabel, setLabel, setLocation, setLocation, setLocation, setNativeClass, setNativeClass, setObjectName, setObjectName, setPath, setPath, setSize, setSize, setSize, setTagName, setTagName, setVisible, setWrapped
Methods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRI
Methods inherited from class com.hp.lft.sdk.PropertiesDescription
clone
Methods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hp.lft.sdk.CloneableObject
clone
-
Constructor Details
-
MenuDescription
public MenuDescription()Initializes a new instance of the MenuDescription class. -
MenuDescription
Initializes a new instance of the MenuDescription class using the Builder pattern.- Parameters:
init
- the Builder pattern.
-
-
Method Details
-
setSubMenusCount
Sets the number of menu items that are direct children of this menu.- Parameters:
count
- the number of child menu items.
-
getSubMenusCount
Returns the number of menu items that are direct children of this menu.- Returns:
- the number of child menu items. If this is a last-level menu, returns 0.
-
setText
Sets the menu's text.- Parameters:
text
- the text.
-
setText
Sets the menu's text.- Parameters:
text
- aStringProperty
orRegExpProperty
.
-
getText
Returns the menu's text.- Returns:
- the text.
-