Class TableButton

All Implemented Interfaces:
Cullable, Layout
Direct Known Subclasses:
FancyButton, MapEditorUi.ToolButton

public class TableButton extends Table
  • Field Details

    • DEFAULT_NORMAL_BG_COLOR

      public static final Color DEFAULT_NORMAL_BG_COLOR
    • DEFAULT_HOVER_BG_COLOR

      public static final Color DEFAULT_HOVER_BG_COLOR
    • DEFAULT_ACTIVE_BG_COLOR

      public static final Color DEFAULT_ACTIVE_BG_COLOR
    • DEFAULT_DISABLED_BG_COLOR

      public static final Color DEFAULT_DISABLED_BG_COLOR
    • clickableWhenDisabled

      public boolean clickableWhenDisabled
  • Constructor Details

    • TableButton

      public TableButton(Runnable clickHandler)
    • TableButton

      public TableButton(Runnable clickHandler, Runnable holdHandler)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • setClickHandler

      public void setClickHandler(Runnable runnable)
    • setHoldHandler

      public void setHoldHandler(Runnable runnable)
    • setMuted

      public TableButton setMuted(boolean muted)
    • layout

      public void layout()
      Description copied from class: Table
      Positions and sizes children of the table using the cell associated with each child. The values given are the position within the parent and size of the table.
      Specified by:
      layout in interface Layout
      Overrides:
      layout in class Table
    • setBackgroundDrawable

      public TableButton setBackgroundDrawable(Drawable sharedBackground)
      Parameters:
      sharedBackground - may be null to remove background color
    • setBackgroundDrawables

      public TableButton setBackgroundDrawables(Drawable normal, Drawable active, Drawable hover, Drawable disabled)
    • setRectBackground

      public TableButton setRectBackground()
    • setContentColors

      public TableButton setContentColors(Color normal, Color hover, Color active, Color disabled)
    • setBackgroundColors

      public TableButton setBackgroundColors(Color normal, Color hover, Color active, Color disabled)