Class MenuDescription

All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class MenuDescription extends WebElementDescription
The description of a Web 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

    • setTopLevelMenuItemsCount

      public void setTopLevelMenuItemsCount(Integer topLevelMenuItemsCount)
      Sets the number of top level menu items contained in this menu.
      Parameters:
      topLevelMenuItemsCount - the number of top level menu items in this menu.
    • getTopLevelMenuItemsCount

      public Integer getTopLevelMenuItemsCount()
      Returns the number of top level menu items contained in this menu.
      Returns:
      The number of top level menu items contained in this menu.
    • setTopLevelMenuItems

      public void setTopLevelMenuItems(String[] topLevelMenuItems)
      Sets the top level menu items in this object.
      Parameters:
      topLevelMenuItems - the top level menu items in this menu.
    • getTopLevelMenuItems

      public String[] getTopLevelMenuItems()
      Returns a collection of all top level menu items in this menu, separated by semi-colons (;).
      Returns:
      A collection of all top level menu items in this menu, separated by semi-colons (;).
    • setFirstMenuItem

      public void setFirstMenuItem(StringProperty firstMenuItem)
      Sets the first item in the list of items in this menu.
      Parameters:
      firstMenuItem - a StringProperty (or RegExpProperty) representing the first item in the list of items in this menu.
    • setFirstMenuItem

      public void setFirstMenuItem(String firstMenuItem)
      Sets the first item in the list of items in this menu.
      Parameters:
      firstMenuItem - the first item in the list of items in this menu.
    • getFirstMenuItem

      public StringProperty getFirstMenuItem()
      Returns the first item in the list of items in this menu.
      Returns:
      the first item in the list of items in this menu.