Class TabButtonAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class TabButtonAction
    extends javax.swing.AbstractAction
    An Action for buttons in TabbedPanels.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor Description
      TabButtonAction​(@NotNull java.lang.String ident)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(@NotNull java.awt.event.ActionEvent e)  
      protected @NotNull TabButtonAction clone()  
      void setIndex​(int index)
      Sets the accelerator index.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • TabButtonAction

        public TabButtonAction​(@NotNull
                               @NotNull java.lang.String ident)
        Creates a new instance.
        Parameters:
        ident - the resource key
    • Method Detail

      • setIndex

        public void setIndex​(int index)
        Sets the accelerator index.
        Parameters:
        index - the index
      • actionPerformed

        public void actionPerformed​(@NotNull
                                    @NotNull java.awt.event.ActionEvent e)
      • clone

        @NotNull
        protected @NotNull TabButtonAction clone()
        Overrides:
        clone in class javax.swing.AbstractAction