Package rekit.logic.gui.menu
Class TextItem
java.lang.Object
rekit.logic.gui.GuiElement
rekit.logic.gui.menu.MenuItem
rekit.logic.gui.menu.TextItem
This class realizes a TextField for a Menu.
- Author:
- Dominik Fuchss
-
Field Summary
Fields inherited from class rekit.logic.gui.GuiElement
pos, scene, size, visible -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether has children.booleanIndicates whether the item is selectable.protected voidRender the Item itself.Methods inherited from class rekit.logic.gui.menu.MenuItem
down, focus, getText, internalRender, left, right, select, setHover, setParent, toString, unselect, upMethods inherited from class rekit.logic.gui.GuiElement
getPos, getScene, getSize, isVisible, logicLoop, render, setPos, setVisible
-
Constructor Details
-
TextItem
Create the MenuItem.- Parameters:
scene- the scenetext- the text
-
-
Method Details
-
renderItem
Render the Item itself.- Overrides:
renderItemin classMenuItem- Parameters:
f- the field
-
isSelectable
public boolean isSelectable()Description copied from class:MenuItemIndicates whether the item is selectable.- Overrides:
isSelectablein classMenuItem- Returns:
trueiff selectable,falseotherwise
-
hasChildren
public boolean hasChildren()Description copied from class:MenuItemIndicates whether has children.- Specified by:
hasChildrenin classMenuItem- Returns:
trueif children are availablefalseotherwise
-