Class TextButton

    • Constructor Detail

      • TextButton

        public TextButton​(@Null
                          java.lang.String text,
                          Skin skin)
      • TextButton

        public TextButton​(@Null
                          java.lang.String text,
                          Skin skin,
                          java.lang.String styleName)
    • Method Detail

      • getFontColor

        @Null
        protected Color getFontColor()
        Returns the appropriate label font color from the style based on the current button state.
      • draw

        public void draw​(Batch batch,
                         float parentAlpha)
        Description copied from class: WidgetGroup
        If this method is overridden, the super method or WidgetGroup.validate() should be called to ensure the widget group is laid out.
        Overrides:
        draw in class Button
        parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
      • setLabel

        public void setLabel​(Label label)
      • getLabel

        public Label getLabel()
      • getLabelCell

        public Cell<Label> getLabelCell()
      • setText

        public void setText​(@Null
                            java.lang.String text)
      • getText

        public java.lang.CharSequence getText()
      • toString

        public java.lang.String toString()
        Description copied from class: Group
        Returns a description of the actor hierarchy, recursively.
        Overrides:
        toString in class Group