Class Button

  • All Implemented Interfaces:
    Viewable
    Direct Known Subclasses:
    MenuItem

    public class Button
    extends Model
    A model (data) for a clickable button.
    • Constructor Detail

      • Button

        public Button()
    • Method Detail

      • makeView

        public void makeView​(Display display,
                             Object where)
      • isDisabled

        public boolean isDisabled()
      • setDisabled

        public void setDisabled​(boolean disabled)
      • getText

        public String getText()
      • setText

        public void setText​(String text)
      • getAction

        public Object getAction()
      • setAction

        public void setAction​(Object action)
      • getForeground

        public Color getForeground()
      • setForeground

        public void setForeground​(Color fg)
      • getBackground

        public Color getBackground()
      • setBackground

        public void setBackground​(Color bg)