org.argouml.swingext
Class AbstractButtonAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--org.argouml.swingext.AbstractButtonAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, ButtonAction, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public abstract class AbstractButtonAction
extends javax.swing.AbstractAction
implements ButtonAction

See Also:
Serialized Form

Field Summary
static int DOUBLE_CLICK
           
static int NONE
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractButtonAction(java.lang.String name, javax.swing.Icon icon)
          Creates a new instance of AbstractButtonAction
AbstractButtonAction(java.lang.String name, javax.swing.Icon icon, boolean modal)
          Creates a new instance of AbstractButtonAction
AbstractButtonAction(java.lang.String name, javax.swing.Icon icon, boolean modal, int lockMethod)
          Creates a new instance of AbstractButtonAction
 
Method Summary
 int getLockMethod()
           
 boolean isModal()
           
 void setLockMethod(int lockMethod)
           
 void setModal(boolean modal)
           
 
Methods inherited from class javax.swing.AbstractAction
actionPerformed, addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE

DOUBLE_CLICK

public static final int DOUBLE_CLICK
Constructor Detail

AbstractButtonAction

public AbstractButtonAction(java.lang.String name,
                            javax.swing.Icon icon)
Creates a new instance of AbstractButtonAction

AbstractButtonAction

public AbstractButtonAction(java.lang.String name,
                            javax.swing.Icon icon,
                            boolean modal)
Creates a new instance of AbstractButtonAction

AbstractButtonAction

public AbstractButtonAction(java.lang.String name,
                            javax.swing.Icon icon,
                            boolean modal,
                            int lockMethod)
Creates a new instance of AbstractButtonAction
Method Detail

setModal

public void setModal(boolean modal)
Specified by:
setModal in interface ButtonAction

isModal

public boolean isModal()
Specified by:
isModal in interface ButtonAction

setLockMethod

public void setLockMethod(int lockMethod)
Specified by:
setLockMethod in interface ButtonAction

getLockMethod

public int getLockMethod()
Specified by:
getLockMethod in interface ButtonAction


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook