Class AliasAction

java.lang.Object
javax.swing.AbstractAction
se.datadosen.util.AliasAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ActionTracker, MenuAction

public class AliasAction
extends javax.swing.AbstractAction
implements java.beans.PropertyChangeListener
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.util.Set<java.lang.String> blockedKeys  
    protected javax.swing.Action target  

    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
    AliasAction​(javax.swing.Action target)  
    AliasAction​(javax.swing.Action target, java.lang.String name)  
    AliasAction​(javax.swing.Action target, javax.swing.Icon icon)  
  • Method Summary

    Modifier and Type Method Description
    void actionPerformed​(java.awt.event.ActionEvent e)  
    javax.swing.Action getAction()  
    boolean isEnabled()  
    void propertyChange​(java.beans.PropertyChangeEvent evt)  
    void putValue​(java.lang.String key, java.lang.Object newValue)  
    void setAction​(javax.swing.Action target)  

    Methods inherited from class javax.swing.AbstractAction

    addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, 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
  • Field Details

    • target

      protected javax.swing.Action target
    • blockedKeys

      protected java.util.Set<java.lang.String> blockedKeys
  • Constructor Details

    • AliasAction

      public AliasAction​(javax.swing.Action target)
    • AliasAction

      public AliasAction​(javax.swing.Action target, java.lang.String name)
    • AliasAction

      public AliasAction​(javax.swing.Action target, javax.swing.Icon icon)
  • Method Details

    • setAction

      public void setAction​(javax.swing.Action target)
      Since:
      13 Set Target action
    • getAction

      public javax.swing.Action getAction()
      Returns:
      Target action
      Since:
      13
    • putValue

      public void putValue​(java.lang.String key, java.lang.Object newValue)
      Specified by:
      putValue in interface javax.swing.Action
      Overrides:
      putValue in class javax.swing.AbstractAction
    • actionPerformed

      public void actionPerformed​(java.awt.event.ActionEvent e)
      Specified by:
      actionPerformed in interface java.awt.event.ActionListener
    • propertyChange

      public void propertyChange​(java.beans.PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface java.beans.PropertyChangeListener
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface javax.swing.Action
      Overrides:
      isEnabled in class javax.swing.AbstractAction