Package snap.view

Class Button

All Implemented Interfaces:
PropChange.DoChange, XMLArchiver.Archivable

public class Button extends ButtonBase
A View subclass that represents a simple Button.
  • Field Details

  • Constructor Details

    • Button

      public Button()
      Constructor.
    • Button

      public Button(String aStr)
      Constructor with given text.
  • Method Details

    • isDefaultButton

      public boolean isDefaultButton()
      Returns whether button is window default button.
    • setDefaultButton

      public void setDefaultButton(boolean aValue)
      Sets whether button is window default button.
    • paintButton

      protected void paintButton(Painter aPntr)
      Paint Button.
      Overrides:
      paintButton in class ButtonBase