Class BaseXButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public final class BaseXButton extends JButton
Project specific button implementation.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
See Also:
  • Constructor Details

    • BaseXButton

      public BaseXButton(BaseXWindow win, String label)
      Constructor for text buttons.
      Parameters:
      win - parent window
      label - button label
  • Method Details

    • get

      public static AbstractButton get(String icon, String tooltip, boolean toggle, GUI gui)
      Returns a new image button.
      Parameters:
      icon - name of image icon
      toggle - toggle flag
      tooltip - tooltip text
      gui - reference to the main window
      Returns:
      button
    • command

      public static AbstractButton command(GUICommand cmd, GUI gui)
      Creates a new image button for the specified command.
      Parameters:
      cmd - command
      gui - reference to the main window
      Returns:
      button
    • setEnabled

      public void setEnabled(boolean flag)
      Overrides:
      setEnabled in class AbstractButton