Class MenuDescription.Init<T extends MenuDescription.Init<T>>

Direct Known Subclasses:
MenuDescription.Builder
Enclosing class:
MenuDescription

protected abstract static class MenuDescription.Init<T extends MenuDescription.Init<T>> extends WebElementDescription.Init<T>
Helper class for MenuDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

      public MenuDescription build()
      Description copied from class: DescriptionBase.Init
      Returns the built description instance (builder pattern).
      Overrides:
      build in class WebElementDescription.Init<T extends MenuDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • topLevelMenuItemsCount

      public T topLevelMenuItemsCount(Integer topLevelMenuItemsCount)
      Initializes the number of top level menu items in this menu.
      Parameters:
      topLevelMenuItemsCount - the number of top level menu items in this menu.
      Returns:
      The description instance with the update state (builder pattern).
    • topLevelMenuItems

      public T topLevelMenuItems(String[] topLevelMenuItems)
      Initializes the top level menu items in this object.
      Parameters:
      topLevelMenuItems - all top level menu items in this menu.
      Returns:
      the description instance with the update state (builder pattern).
    • firstMenuItem

      public T firstMenuItem(String firstMenuItem)
      Initializes the first item in the list of items in this menu.
      Parameters:
      firstMenuItem - the first item in the list of items in this menu.
      Returns:
      the description instance with the update state (builder pattern).
    • firstMenuItem

      public T firstMenuItem(StringProperty firstMenuItem)
      Initializes 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.
      firstMenuItem - a StringProperty (or RegExpProperty) representing the first item in the list of items in this menu.
      Returns:
      the description instance with the update state (builder pattern).