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 classThis class can be used to construct an instance of the MenuDescription class using the builder pattern.protected static classMenuDescription.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.protectedMenuDescription(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.voidsetSubMenusCount(Integer count) Sets the number of menu items that are direct children of this menu.voidsetText(StringProperty text) Sets the menu's text.voidSets 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, setWrappedMethods inherited from class com.hp.lft.sdk.DescriptionBase
cloneTo, getIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescription
cloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBase
getValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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- aStringPropertyorRegExpProperty.
-
getText
Returns the menu's text.- Returns:
- the text.
-