Class MenuActionItem

Direct Known Subclasses:
ArcadeLevelItem

public class MenuActionItem extends MenuItem
This class realizes a MenuItem with an attached Action.
  • Constructor Details

    • MenuActionItem

      public MenuActionItem(IScene scene, String text, VoidFunction selectAction)
      Create MenuActionItem.
      Parameters:
      scene - the scene
      text - the text
      selectAction - the action
    • MenuActionItem

      public MenuActionItem(IScene scene, Vec size, String text, VoidFunction selectAction)
      Create MenuActionItem.
      Parameters:
      scene - the scene
      text - the text
      size - the size
      selectAction - the action
  • Method Details

    • select

      public void select()
      Description copied from class: MenuItem
      Select the Item.
      Overrides:
      select in class MenuItem
    • hasChildren

      public boolean hasChildren()
      Description copied from class: MenuItem
      Indicates whether has children.
      Specified by:
      hasChildren in class MenuItem
      Returns:
      true if children are available false otherwise