com.ezware.oxbow.swingbits.popup
Class PopupWindow.CommandAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.ezware.oxbow.swingbits.popup.PopupWindow.CommandAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
PopupWindow

public class PopupWindow.CommandAction
extends AbstractAction

Simple action to for the popup window. To use - override perform method. Created on Feb 4, 2011

Author:
Eugene Ryzhikov
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
PopupWindow.CommandAction(String name)
           
PopupWindow.CommandAction(String name, Icon icon)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  boolean perform()
          Preforms action
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, 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
 

Constructor Detail

PopupWindow.CommandAction

public PopupWindow.CommandAction(String name,
                                 Icon icon)

PopupWindow.CommandAction

public PopupWindow.CommandAction(String name)
Method Detail

actionPerformed

public final void actionPerformed(ActionEvent e)

perform

protected boolean perform()
Preforms action

Returns:
true if popup should be closed


Copyright © 2011. All Rights Reserved.