|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.value.support.AbstractPropertyChangePublisher
org.springframework.richclient.command.AbstractCommand
org.springframework.richclient.command.ActionCommand
public abstract class ActionCommand
Field Summary | |
---|---|
static String |
ACTION_COMMAND_PARAMETER_KEY
|
static String |
ACTION_COMMAND_PROPERTY
|
static String |
ACTION_EVENT_PARAMETER_KEY
|
static String |
MODIFIERS_PARAMETER_KEY
|
Fields inherited from class org.springframework.richclient.command.AbstractCommand |
---|
ENABLED_PROPERTY_NAME, VISIBLE_PROPERTY_NAME |
Fields inherited from class org.springframework.binding.value.support.AbstractPropertyChangePublisher |
---|
logger |
Fields inherited from interface org.springframework.richclient.core.Authorizable |
---|
AUTHORIZED_PROPERTY |
Constructor Summary | |
---|---|
ActionCommand()
|
|
ActionCommand(String commandId)
|
|
ActionCommand(String id,
CommandFaceDescriptor face)
|
|
ActionCommand(String id,
String encodedLabel)
|
|
ActionCommand(String id,
String encodedLabel,
Icon icon,
String caption)
|
Method Summary | |
---|---|
void |
addCommandInterceptor(ActionCommandInterceptor l)
|
void |
addParameter(Object key,
Object value)
|
protected abstract void |
doExecuteCommand()
|
void |
execute()
Performs the action. |
void |
execute(Map parameters)
Invoke the specified command, passing in the set of arbitrary execution parameters. |
Action |
getActionAdapter()
|
String |
getActionCommand()
|
protected int |
getModifiers()
|
protected Object |
getParameter(Object key)
|
protected Object |
getParameter(Object key,
Object defaultValue)
|
protected Map |
getParameters()
|
protected boolean |
isAltDown()
Returns true if the alt key was down when invoking this
ActionCommand . |
protected boolean |
isControlDown()
Returns true if the control key was down when invoking this
ActionCommand . |
boolean |
isDisplaysInputDialog()
|
protected boolean |
isMetaDown()
Returns true if the meta key was down when invoking this
ActionCommand . |
protected boolean |
isShiftDown()
Returns true if the shift key was down when invoking this
ActionCommand . |
protected void |
onButtonAttached(AbstractButton button)
Additional code to execute when attaching a button. |
protected void |
onPostExecute()
|
protected boolean |
onPreExecute()
|
void |
removeCommandInterceptor(ActionCommandInterceptor l)
|
void |
setActionCommand(String newCommandName)
|
void |
setDefaultButton()
|
void |
setDefaultButtonIn(RootPaneContainer container)
|
void |
setDisplaysInputDialog(boolean displaysInputDialog)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ACTION_COMMAND_PROPERTY
public static final String ACTION_COMMAND_PARAMETER_KEY
public static final String ACTION_EVENT_PARAMETER_KEY
public static final String MODIFIERS_PARAMETER_KEY
Constructor Detail |
---|
public ActionCommand()
public ActionCommand(String commandId)
public ActionCommand(String id, CommandFaceDescriptor face)
public ActionCommand(String id, String encodedLabel)
public ActionCommand(String id, String encodedLabel, Icon icon, String caption)
Method Detail |
---|
public void addParameter(Object key, Object value)
protected Object getParameter(Object key)
protected Map getParameters()
protected Object getParameter(Object key, Object defaultValue)
public void addCommandInterceptor(ActionCommandInterceptor l)
public void removeCommandInterceptor(ActionCommandInterceptor l)
protected void onButtonAttached(AbstractButton button)
AbstractCommand
onButtonAttached
in class AbstractCommand
button
- the button that has been attached.protected int getModifiers()
public Action getActionAdapter()
public String getActionCommand()
public void setActionCommand(String newCommandName)
public void setDefaultButtonIn(RootPaneContainer container)
public void setDefaultButton()
public void setDisplaysInputDialog(boolean displaysInputDialog)
public boolean isDisplaysInputDialog()
public final void execute(Map parameters)
ParameterizableActionCommandExecutor
execute
in interface ParameterizableActionCommandExecutor
parameters
- the parameter map, consisting of name-value pairs.public final void execute()
ActionCommandExecutor
execute
in interface ActionCommandExecutor
protected final boolean onPreExecute()
protected abstract void doExecuteCommand()
protected final void onPostExecute()
protected boolean isShiftDown()
true
if the shift key was down when invoking this
ActionCommand
.
true
if the shift key was down, false
otherwiseprotected boolean isControlDown()
true
if the control key was down when invoking this
ActionCommand
.
true
if the control key was down, false
otherwiseprotected boolean isMetaDown()
true
if the meta key was down when invoking this
ActionCommand
.
true
if the meta key was down, false
otherwiseprotected boolean isAltDown()
true
if the alt key was down when invoking this
ActionCommand
.
true
if the alt key was down, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |