Class AbstractButton

All Implemented Interfaces:
GUIElement, KeyPressedHandler, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
AbstractButton2, GUITextButton

public abstract class AbstractButton extends ActivatableGUIElement implements KeyPressedHandler
Abstract base class for button classes.
See Also:
  • Constructor Details

    • AbstractButton

      protected AbstractButton(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, boolean opaque, boolean autoRepeat, @NotNull @NotNull CommandList commandList, @NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull NewCharModel newCharModel)
      Creates a new instance.
      Parameters:
      tooltipManager - the tooltip manager to update
      elementListener - the element listener to notify
      name - the name of this element
      opaque - whether this element is opaque
      autoRepeat - whether the button should autorepeat while being pressed
      commandList - the commands to execute when the button is elected
      guiFactory - the global GUI factory instance
      newCharModel - the global new char model instance
  • Method Details