org.tigris.swidgets

Class AbstractButtonAction

Implemented Interfaces:
ButtonAction

public abstract class AbstractButtonAction
extends AbstractAction
implements ButtonAction

Author:
Bob Tarling

Field Summary

static int
DOUBLE_CLICK
Possible ways in which a user can lock a button: DOUBLE_CLICK
static int
NONE
Possible ways in which a user can lock a button: NONE

Constructor Summary

AbstractButtonAction(String name, Icon icon)
Creates a new instance of AbstractButtonAction
AbstractButtonAction(String name, Icon icon, boolean isModal)
Creates a new instance of AbstractButtonAction
AbstractButtonAction(String name, Icon icon, boolean isModal, int theLockMethod)
Creates a new instance of AbstractButtonAction

Method Summary

int
getLockMethod()
boolean
isModal()
void
setLockMethod(int theLockMethod)
void
setModal(boolean isModal)

Field Details

DOUBLE_CLICK

public static final int DOUBLE_CLICK
Possible ways in which a user can lock a button: DOUBLE_CLICK
Field Value:
1

NONE

public static final int NONE
Possible ways in which a user can lock a button: NONE
Field Value:
0

Constructor Details

AbstractButtonAction

public AbstractButtonAction(String name,
                            Icon icon)
Creates a new instance of AbstractButtonAction
Parameters:
name - the name of the action
icon - the icon for the action

AbstractButtonAction

public AbstractButtonAction(String name,
                            Icon icon,
                            boolean isModal)
Creates a new instance of AbstractButtonAction
Parameters:
name - the name of the action
icon - the icon of the action
isModal - modal = the user is obliged to answer this action before doing anything else

AbstractButtonAction

public AbstractButtonAction(String name,
                            Icon icon,
                            boolean isModal,
                            int theLockMethod)
Creates a new instance of AbstractButtonAction
Parameters:
name - the name of the action
icon - the icon of the action
isModal - modal = the user is obliged to answer this action before doing anything else
theLockMethod - purpose: action buttons can remain depressed so that they can be used multiple times

Method Details

getLockMethod

public int getLockMethod()
Specified by:
getLockMethod in interface ButtonAction
See Also:
org.argouml.swingext.ButtonAction.getLockMethod()

isModal

public boolean isModal()
Specified by:
isModal in interface ButtonAction
See Also:
org.argouml.swingext.ButtonAction.isModal()

setLockMethod

public void setLockMethod(int theLockMethod)
Specified by:
setLockMethod in interface ButtonAction
See Also:
org.argouml.swingext.ButtonAction.setLockMethod(int)

setModal

public void setModal(boolean isModal)
Specified by:
setModal in interface ButtonAction
See Also:
org.argouml.swingext.ButtonAction.setModal(boolean)