Module AM37

Class ClosingButton

All Implemented Interfaces:
Toggleable, KeyEventListener
Direct Known Subclasses:
ReturningButton

public class ClosingButton
extends Button
A clickable button that closes its container (if possible) when pressed
  • Constructor Details

    • ClosingButton

      public ClosingButton​(Dialog parent, CursorPosition initCoord, java.lang.String text)
      Default constructor

      Creates a new Button object, using its default properties

      Parameters:
      parent - the button container
      initCoord - the initial coordinates, relative to the container
      text - the button text
    • ClosingButton

      public ClosingButton​(Dialog parent, CursorPosition initCoord, int width, int height, java.lang.String text)
      Custom constructor

      Creates a new Button object, using its default properties

      Parameters:
      parent - the button container
      initCoord - the initial coordinates, relative to the container
      text - the button text
  • Method Details