Class JaxoEditButtons

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, JaxoLocalized

public class JaxoEditButtons extends JPanel implements JaxoLocalized
Responsible for displaying and modifying the buttons of the edit button menu.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoEditButtons

      public JaxoEditButtons()
      Constructor: lays out the edit button panel.
  • Method Details

    • addActionListener

      public final void addActionListener(ActionListener l)
      Adds the given ActionListener to all buttons in this panel.
      Parameters:
      l - The ActionListener to add.
    • pressButton

      public final void pressButton(int mode)
      Sets the specified button as pressed. If mode is not an edit mode, all buttons are set as not pressed.
      Parameters:
      mode - The mode specifying the button to be pressed, as defined in JaxoConstants.
    • setDefault

      public final void setDefault(int mode)
      Set the button corresponding to mode as default. If mode is not an edit mode, all buttons are set as not default.
      Parameters:
      mode - The button to set as default.
    • updateLanguage

      public final void updateLanguage()
      Updates the component with the current language as set in the preferences (JaxoPrefs.PREF_LANGUAGE).
      Specified by:
      updateLanguage in interface JaxoLocalized