|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Field Summary | |
static int |
APPLICABLE_FALSE
|
static int |
APPLICABLE_TRUE
|
static int |
APPLICABLE_UNKNOWN
|
| Method Summary | |
String |
getAlias()
|
LinkAttributes |
getLinkAttributes()
Return a LinkAttributes when the Command returns false
in its raisesEvent method. |
String[] |
getTargetParameters()
returns the information the command needs to carry out its task, when it is called through its execute method. |
boolean |
isApplicable()
|
boolean |
isExecutable()
checks, if this Command can be executed for this resource (e.g. a resource can not be deleted, when it is locked by someone else). |
boolean |
raisesEvent()
flag, if the command raises an Event in its execute
method. |
void |
setAlias(String p0)
set the alias under which this instance is accessible via the UICommandFactory |
void |
setTargetParameters(List p0,
IResourceContext p1)
sets the parameters the command returned in its getTargetParameters
method as well as the resource context. |
void |
setTextProperties(Properties properties)
|
| Methods inherited from interface com.sapportals.wcm.rendering.base.IUIBaseCommand |
getComponent, getConfigurationProperties, getParameters, getReplaceCommands, getText, setConfigurationProperties, setLabelBundleKey, setParameters, setProxy, setReplaceCommands, setResource, setResourceBundle, setResourceContext, setTooltipBundleKey |
| Field Detail |
public static final int APPLICABLE_UNKNOWN
public static final int APPLICABLE_FALSE
public static final int APPLICABLE_TRUE
| Method Detail |
public boolean isApplicable()
public boolean isExecutable()
true, the state of the given IResource can
change in the time between the calls isExecutable and execute
, so this method does not guarantee successful execution at a later time.
public String getAlias()
UICommandFactorypublic void setAlias(String p0)
UICommandFactory
public void setTargetParameters(List p0,
IResourceContext p1)
throws WcmException
getTargetParameters
method as well as the resource context. This method as well as the getTargetParameters
method are called by the UICommandFactory. The later is called,
when a Component (e.g. a Link) is used to render the
command. At that time, the command has been initialized by the UICommandFactory
. As the factory or the surrounding framework does not know about the commands
inner structure, the command itself has to encode all information it needs for
its execute method in the String[] it returns in the
getTargetParameters method. This exact list is returned in the
same order in this method here. In the standard scenario, the usage of IUICommand
s in the WDF- htmlb-environment, this method is called just before the class's
execute method is called.
WcmException - Exception raised in failure situation
public String[] getTargetParameters()
throws WcmException
execute method. See the setTargetParameters
method for details. The String[] must not contain any null values
WcmException - Exception raised in failure situationpublic boolean raisesEvent()
Event in its execute
method.
true, if the command raises an Event, false
, if notpublic LinkAttributes getLinkAttributes()
LinkAttributes when the Command returns false
in its raisesEvent method.
public void setTextProperties(Properties properties)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||