|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.command.support.AbstractActionCommandExecutor
public class AbstractActionCommandExecutor
Field Summary |
---|
Fields inherited from interface org.springframework.richclient.core.Authorizable |
---|
AUTHORIZED_PROPERTY |
Constructor Summary | |
---|---|
AbstractActionCommandExecutor()
|
Method Summary | |
---|---|
void |
addEnabledListener(PropertyChangeListener listener)
Adds the given listener to the collection of listeners that will be notified when the command executor's enabled state changes. |
void |
execute()
Performs the action. |
void |
execute(Map parameters)
Invoke the specified command, passing in the set of arbitrary execution parameters. |
String |
getSecurityControllerId()
Get the id (bean name) of the security controller that should manage this object. |
protected void |
internalSetEnabled(boolean enabled)
Internal method to set the enabled state. |
boolean |
isAuthorized()
Get the authorized state. |
boolean |
isEnabled()
Indicates if the object is in an enabled state. |
void |
removeEnabledListener(PropertyChangeListener listener)
Removes the given listener from the collection of listeners that will be notified when the command executor's enabled state changes. |
void |
setAuthorized(boolean authorized)
Set the authorized state. |
void |
setEnabled(boolean enabled)
Set the enabled state of this command. |
void |
setSecurityControllerId(String controllerId)
Set the Id of the security controller that should manage this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractActionCommandExecutor()
Method Detail |
---|
public void setSecurityControllerId(String controllerId)
setSecurityControllerId
in interface SecurityControllable
controllerId
- Id (bean name) of the security controllerpublic String getSecurityControllerId()
getSecurityControllerId
in interface SecurityControllable
public void setAuthorized(boolean authorized)
setEnabled(boolean)
. As long as this object is unauthorized,
it can not be enabled.
setAuthorized
in interface Authorizable
authorized
- Pass true
if the object is to be authorizedpublic boolean isAuthorized()
isAuthorized
in interface Authorizable
public boolean isEnabled()
Guarded
isEnabled
in interface Guarded
public void setEnabled(boolean enabled)
setEnabled
in interface Guarded
enabled
- stateprotected void internalSetEnabled(boolean enabled)
enabled
- statesetAuthorized(boolean)
public void addEnabledListener(PropertyChangeListener listener)
GuardedActionCommandExecutor
addEnabledListener
in interface GuardedActionCommandExecutor
listener
- The listener to be added.public void removeEnabledListener(PropertyChangeListener listener)
GuardedActionCommandExecutor
removeEnabledListener
in interface GuardedActionCommandExecutor
listener
- The listener to be removed.public void execute(Map parameters)
ParameterizableActionCommandExecutor
execute
in interface ParameterizableActionCommandExecutor
parameters
- the parameter map, consisting of name-value pairs.public void execute()
ActionCommandExecutor
execute
in interface ActionCommandExecutor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |