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 TypeMethodDescriptionboolean
Indicates whether has children.boolean
Indicates whether the item is selectable.protected void
Render the Item itself.Methods inherited from class rekit.logic.gui.menu.MenuItem
down, focus, getText, internalRender, left, right, select, setHover, setParent, toString, unselect, up
Methods 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:
renderItem
in classMenuItem
- Parameters:
f
- the field
-
isSelectable
public boolean isSelectable()Description copied from class:MenuItem
Indicates whether the item is selectable.- Overrides:
isSelectable
in classMenuItem
- Returns:
true
iff selectable,false
otherwise
-
hasChildren
public boolean hasChildren()Description copied from class:MenuItem
Indicates whether has children.- Specified by:
hasChildren
in classMenuItem
- Returns:
true
if children are availablefalse
otherwise
-