Package com.prineside.tdi2.ui.actors
Class LabelToggleButton
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.Group
com.prineside.tdi2.scene2d.ui.WidgetGroup
com.prineside.tdi2.scene2d.ui.Table
com.prineside.tdi2.ui.actors.LabelToggleButton
-
Nested Class Summary
Nested classes/interfaces inherited from class com.prineside.tdi2.scene2d.ui.Table
Table.Debug, Table.DebugRect
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.prineside.tdi2.scene2d.ui.Table
backgroundBottom, backgroundLeft, backgroundRight, backgroundTop, debugActorColor, debugCellColor, debugTableColor
-
Constructor Summary
ConstructorsConstructorDescriptionLabelToggleButton
(String labelText, boolean enabled, int fontSize, float imageHeight, boolean dontPushToggleRight, ObjectConsumer<Boolean> onToggle) LabelToggleButton
(String labelText, boolean enabled, int fontSize, float imageHeight, ObjectConsumer<Boolean> onToggle) LabelToggleButton
(String labelText, boolean enabled, ObjectConsumer<Boolean> onToggle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEnabled
(boolean enabled) void
setText
(CharSequence text) void
setup
(String labelText, boolean enabled, int fontSize, float imageHeight, boolean dontPushToggleRight, ObjectConsumer<Boolean> onToggle) void
Methods inherited from class com.prineside.tdi2.scene2d.ui.Table
add, add, add, align, background, bottom, center, clearChildren, clip, clip, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, draw, drawDebug, getAlign, getBackground, getCell, getCells, getClip, getColumnMinWidth, getColumnPrefWidth, getColumns, getColumnWidth, getMinHeight, getMinWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getPrefHeight, getPrefWidth, getRow, getRowHeight, getRowMinHeight, getRowPrefHeight, getRows, getTableDebug, hit, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, removeActor, removeActorAt, reset, right, row, setBackground, setClip, setDebug, setRound, stack, top
Methods inherited from class com.prineside.tdi2.scene2d.ui.WidgetGroup
getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeightValue, getMinWidthValue, getPrefHeightValue, getPrefWidthValue, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPrefHeight, setPrefHeight, setPrefWidth, setPrefWidth, setWidth, validate
Methods inherited from class com.prineside.tdi2.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, clear, clearChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, setCullingArea, setDebug, setTransform, swapActor, swapActor, toString
Methods inherited from class com.prineside.tdi2.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
toggleImage
-
label
-
normalColor
-
hoverColor
-
onToggle
-
-
Constructor Details
-
LabelToggleButton
public LabelToggleButton() -
LabelToggleButton
public LabelToggleButton(String labelText, boolean enabled, int fontSize, float imageHeight, boolean dontPushToggleRight, ObjectConsumer<Boolean> onToggle) -
LabelToggleButton
public LabelToggleButton(String labelText, boolean enabled, int fontSize, float imageHeight, ObjectConsumer<Boolean> onToggle) -
LabelToggleButton
-
-
Method Details
-
updateColor
public void updateColor() -
setup
public void setup(String labelText, boolean enabled, int fontSize, float imageHeight, boolean dontPushToggleRight, ObjectConsumer<Boolean> onToggle) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
setText
-