|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.scenes.scene2d.Actor com.badlogic.gdx.scenes.scene2d.Group com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup com.badlogic.gdx.scenes.scene2d.ui.Table com.badlogic.gdx.scenes.scene2d.ui.Button com.badlogic.gdx.scenes.scene2d.ui.TextButton com.badlogic.gdx.scenes.scene2d.ui.CheckBox
public class CheckBox
A checkbox is a button that contains an image indicating the checked or unchecked state and a label.
Nested Class Summary | |
---|---|
static class |
CheckBox.CheckBoxStyle
The style for a select box, see CheckBox . |
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.ui.TextButton |
---|
TextButton.TextButtonStyle |
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.ui.Button |
---|
Button.ButtonStyle |
Constructor Summary | |
---|---|
CheckBox(String text,
CheckBox.CheckBoxStyle style)
|
|
CheckBox(String text,
Skin skin)
|
|
CheckBox(String text,
Skin skin,
String styleName)
|
Method Summary | |
---|---|
void |
draw(Batch batch,
float parentAlpha)
If this method is overridden, the super method or WidgetGroup.validate() should be called to ensure the widget group is laid
out. |
Image |
getImage()
|
Cell |
getImageCell()
|
CheckBox.CheckBoxStyle |
getStyle()
Returns the checkbox's style. |
void |
setStyle(Button.ButtonStyle style)
|
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.TextButton |
---|
getLabel, getLabelCell, getText, setText |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Button |
---|
getClickListener, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, isChecked, isDisabled, isOver, isPressed, setChecked, setDisabled, toggle |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Table |
---|
add, add, add, add, add, add, add, align, background, background, bottom, center, clearChildren, columnDefaults, debug, debug, debugCell, debugTable, debugWidget, defaults, drawDebug, getAlign, getBackground, getCell, getCells, getClip, getDebug, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getRow, hit, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, reset, right, row, setBackground, setBackground, setBackground, setClip, setRound, setSkin, stack, top |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup |
---|
getMaxHeight, getMaxWidth, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, validate |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group |
---|
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, findActor, getChildren, hasChildren, isTransform, localToDescendantCoordinates, print, setCullingArea, setTransform, swapActor, swapActor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CheckBox(String text, Skin skin)
public CheckBox(String text, Skin skin, String styleName)
public CheckBox(String text, CheckBox.CheckBoxStyle style)
Method Detail |
---|
public void setStyle(Button.ButtonStyle style)
setStyle
in class TextButton
public CheckBox.CheckBoxStyle getStyle()
Button.setStyle(ButtonStyle)
is
called.
getStyle
in class TextButton
public void draw(Batch batch, float parentAlpha)
WidgetGroup
WidgetGroup.validate()
should be called to ensure the widget group is laid
out.
draw
in class TextButton
parentAlpha
- Should be multiplied with the actor's alpha, allowing a parent's alpha to affect all children.public Image getImage()
public Cell getImageCell()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |