Class TextItem


public class TextItem extends MenuItem
This class realizes a TextField for a Menu.
Author:
Dominik Fuchss
  • Constructor Details

    • TextItem

      public TextItem(IScene scene, String text)
      Create the MenuItem.
      Parameters:
      scene - the scene
      text - the text
  • Method Details

    • renderItem

      protected void renderItem(GameGrid f)
      Render the Item itself.
      Overrides:
      renderItem in class MenuItem
      Parameters:
      f - the field
    • isSelectable

      public boolean isSelectable()
      Description copied from class: MenuItem
      Indicates whether the item is selectable.
      Overrides:
      isSelectable in class MenuItem
      Returns:
      true iff selectable, false otherwise
    • 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