Class MenuDescription

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class MenuDescription extends UiObjectBaseDescription
The description of a Java Menu test object.
  • Constructor Details

    • MenuDescription

      public MenuDescription()
      Initializes a new instance of the MenuDescription class.
    • MenuDescription

      protected MenuDescription(MenuDescription.Init<?> init)
      Initializes a new instance of the MenuDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setSubMenusCount

      public void setSubMenusCount(Integer count)
      Sets the number of menu items that are direct children of this menu.
      Parameters:
      count - the number of child menu items.
    • getSubMenusCount

      public Integer 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

      public void setText(String text)
      Sets the menu's text.
      Parameters:
      text - the text.
    • setText

      public void setText(StringProperty text)
      Sets the menu's text.
      Parameters:
      text - a StringProperty or RegExpProperty.
    • getText

      public StringProperty getText()
      Returns the menu's text.
      Returns:
      the text.