|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUICommand
IUICommands encapsulate everything that is needed to work with a specified resource
on the user interface: - it provides the label and tooltip texts needed to display
itself on the screen - it encapsulates the screenflow (if needed) that guides
the user through the functionality of the command - it calls framework functionality
to actually do the requested work - it provides success and error messages to
inform the user about the state of the execution The commands use functionality
of the htmlb and the WD-Framework, to implement the screenflow functionality the
IScreenflow can be used. The IUICommand should not be
instantiated directly, instead the UICommandFactory and the UIMenuFactory
should be used. They return UIGroupCommands that hold a number of
IUICommands and IUIMassCommands. IUICommand
s - when instantiated through the UICommandFactory - receive a set
of Properties that specify some member variables of the commands.
Therefore, the UICommandFactory may hold several instances of the
same class that implements the IUICommand, each with a different
set of properties. To identify them, the 'alias' attribute is used. The config
framework ensures, that this attribute is unique.
| Field Summary |
|---|
| Fields inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
|---|
APPLICABLE_FALSE, APPLICABLE_TRUE, APPLICABLE_UNKNOWN |
| Method Summary | |
|---|---|
com.sapportals.wdf.event.WdfEvent |
execute()
Deprecated. As of NetWeaver 7.1 |
com.sapportals.wdf.event.WdfEvent |
execute(com.sapportals.wdf.ControllerDynPage dynpage,
boolean pushStack)
Deprecated. As of NetWeaver 7.1 |
String |
getButtonLabel()
Deprecated. As of NetWeaver 7.1 |
String |
getLinkLabel()
Deprecated. As of NetWeaver 7.1 |
IUICommand |
getNewInstance()
Deprecated. As of NetWeaver 7.1 |
IResource |
getResource()
Deprecated. As of NetWeaver 7.1 |
void |
setTextProperties(Properties properties)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
|---|
getAlias, getLinkAttributes, getTargetParameters, isApplicable, isExecutable, raisesEvent, setAlias, setTargetParameters |
| Methods inherited from interface com.sapportals.wcm.rendering.base.IUIBaseCommand |
|---|
getComponent, getConfigurationProperties, getParameters, getReplaceCommands, getText, setConfigurationProperties, setLabelBundleKey, setParameters, setProxy, setReplaceCommands, setResource, setResourceBundle, setResourceContext, setTooltipBundleKey |
| Method Detail |
|---|
com.sapportals.wdf.event.WdfEvent execute()
throws com.sapportals.wdf.WdfException
IResource. When
this method is called, no screenflow can be started, the command can only carry
out its action and return a status message. Some IUICommands need
to start a screenflow to properly execute their tasks. They might throw an Exception
or simply return an error message stating that this method call is not usable
by them.
WdfEvent that encapsulates the information
about the status of the execution.
com.sapportals.wdf.WdfException - Exception raised in failure situation
com.sapportals.wdf.event.WdfEvent execute(com.sapportals.wdf.ControllerDynPage dynpage,
boolean pushStack)
throws com.sapportals.wdf.WdfException
IResource and
might start a screenflow to do so.
dynpage - The page the current AbstractProxyControl
and the command are rendered in.pushStack - flag that states, if the current pane of the Wdf-Screenflow
should be stored on the stack, or not. If the value is true
, all registered Controls will be stored on the stack and
when the screenflow returns to this stack, the userinput of these controls
is still available
WdfEvent that encapsulates the information
about the status of the execution. It also acts as the trigger to jump
into the IUICommand's screenflow (If one is defined). Note,
that a WdfEvent can encapsulate other events.
com.sapportals.wdf.WdfException - Exception raised in failure situationvoid setTextProperties(Properties properties)
setTextProperties in interface IExecCommandproperties - The new textProperties valueIUICommand getNewInstance()
UICommandFactory reads out the configuration
for the IUICommands and creates an instance of each command. Whenever
the factory is asked to return a certain command, it uses the initially created
command instance and calls its getNewInstance method. The command
is responsible to set all values stemming from the configuration to the newly
created instance. This delegated responsibility allows for greater flexibility
inside the commands.
null.IResource getResource()
String getLinkLabel()
String getButtonLabel()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||