SAP NetWeaver '04

com.sapportals.wcm.rendering.base
Interface IUIBaseCommand

[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.base_api.jar]
All Known Subinterfaces:
ICommand, IExecCommand, IMassCommand, IMassExecCommand, IUICommand, IUIGroupCommand, IUIMassCommand, IUIMenuCommand

public interface IUIBaseCommand

Description of the Interface


Field Summary
static java.lang.String ERR_MESSAGE_MISSING_CONFIG_ENTRY
          Message for exception when config settings are missing for a IUIBaseCommand.
static java.lang.String ERR_MESSAGE_WRONG_METHOD_CALL
          Message for exception to show when a wrong method of a IUIBaseCommand was called.
static java.lang.String KEY_INPUT_CONTROL_TEXT
           
static java.lang.String KEY_INPUT_CONTROL_TEXT_2
           
static java.lang.String KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT
           
static java.lang.String KEY_INPUT_CONTROL_TEXT_3
           
static java.lang.String KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT
           
static java.lang.String KEY_LABEL
          Some Commands require a second screen to choose the resources that are needed to carry out the commands on the resources selected in the first screen.
static java.lang.String KEY_MASS_EMBEDDED_COMMAND_TEXT
           
static java.lang.String KEY_MASS_EMBEDDED_COMMANT_TOOLTIP
           
static java.lang.String KEY_SINGLE_EMBEDDED_COMMAND_TEXT
           
static java.lang.String KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP
           
static java.lang.String KEY_TOOLTIP
           
static java.lang.String LINE_BREAK
          Line break to format lists of information
static java.lang.String[] TEXT_KEYS
           
static java.lang.String VALUE_EMPTY_STRING
           
 
Method Summary
 com.sapportals.htmlb.Component getComponent()
           
 java.util.Properties getConfigurationProperties()
          Gets the configurationProperties attribute of the IUIBaseCommand object
 java.util.Hashtable getParameters()
          Gets the command parameters
 java.util.List getReplaceCommands()
          gets the list of commands which will be ignored when the command is executable
 java.lang.String getText(TextKey key)
          Gets the text for a givven text key
 void setConfigurationProperties(java.util.Properties properties)
           
 void setLabelBundleKey(java.lang.String groupLabel)
          Sets the labelBundleKey attribute of the IUIBaseCommand object
 void setParameters(java.util.Hashtable parameters)
          Sets parameters for the command.
 void setProxy(AbstractProxyControl proxy)
          Sets the proxy attribute of the IUIBaseCommand object
 void setReplaceCommands(java.util.List replaceCommandsList)
          Sets the list of commands which will be ignored when the command is executable
 void setResource(IResource resource)
           
 void setResourceBundle(ResourceBundles bundleFile)
           
 void setResourceContext(IResourceContext context)
          Sets the resourceContext for IUIBaseCommand
 void setTooltipBundleKey(java.lang.String groupTooltip)
          Sets the tooltipBundleKey attribute of the IUIBaseCommand object
 

Field Detail

LINE_BREAK

public static final java.lang.String LINE_BREAK
Line break to format lists of information

ERR_MESSAGE_WRONG_METHOD_CALL

public static final java.lang.String ERR_MESSAGE_WRONG_METHOD_CALL
Message for exception to show when a wrong method of a IUIBaseCommand was called. This could be execute() for a command, that needs a complete screenflow and cannot operate properly with this call. It has three parameters: methodname, parameter-signature, classname

ERR_MESSAGE_MISSING_CONFIG_ENTRY

public static final java.lang.String ERR_MESSAGE_MISSING_CONFIG_ENTRY
Message for exception when config settings are missing for a IUIBaseCommand. It has two parameters: classname, parameter-name

KEY_LABEL

public static final java.lang.String KEY_LABEL
Some Commands require a second screen to choose the resources that are needed to carry out the commands on the resources selected in the first screen. In this case, the original command has to provide for the texts shown on the second screen. These constants are used to read out the texts from the internal hashmap of the commands.

KEY_TOOLTIP

public static final java.lang.String KEY_TOOLTIP

KEY_INPUT_CONTROL_TEXT

public static final java.lang.String KEY_INPUT_CONTROL_TEXT

KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT

public static final java.lang.String KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT

KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT

public static final java.lang.String KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT

KEY_INPUT_CONTROL_TEXT_2

public static final java.lang.String KEY_INPUT_CONTROL_TEXT_2

KEY_INPUT_CONTROL_TEXT_3

public static final java.lang.String KEY_INPUT_CONTROL_TEXT_3

KEY_SINGLE_EMBEDDED_COMMAND_TEXT

public static final java.lang.String KEY_SINGLE_EMBEDDED_COMMAND_TEXT

KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP

public static final java.lang.String KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP

KEY_MASS_EMBEDDED_COMMAND_TEXT

public static final java.lang.String KEY_MASS_EMBEDDED_COMMAND_TEXT

KEY_MASS_EMBEDDED_COMMANT_TOOLTIP

public static final java.lang.String KEY_MASS_EMBEDDED_COMMANT_TOOLTIP

VALUE_EMPTY_STRING

public static final java.lang.String VALUE_EMPTY_STRING

TEXT_KEYS

public static final java.lang.String[] TEXT_KEYS
Method Detail

setResource

public void setResource(IResource resource)
Parameters:
resource - sets the resource the command shall operate on

setResourceBundle

public void setResourceBundle(ResourceBundles bundleFile)
Parameters:
bundleFile - The new resourceBundle value

setLabelBundleKey

public void setLabelBundleKey(java.lang.String groupLabel)
Sets the labelBundleKey attribute of the IUIBaseCommand object
Parameters:
groupLabel - The new labelBundleKey value

setTooltipBundleKey

public void setTooltipBundleKey(java.lang.String groupTooltip)
Sets the tooltipBundleKey attribute of the IUIBaseCommand object
Parameters:
groupTooltip - The new tooltipBundleKey value

getText

public java.lang.String getText(TextKey key)
Gets the text for a givven text key
Parameters:
key - the input TextKey
Returns:
The text value

setConfigurationProperties

public void setConfigurationProperties(java.util.Properties properties)
Parameters:
properties - The new configurationProperties value

getConfigurationProperties

public java.util.Properties getConfigurationProperties()
Gets the configurationProperties attribute of the IUIBaseCommand object
Returns:
The configurationProperties value

getComponent

public com.sapportals.htmlb.Component getComponent()
Returns:
a Component to use in a link or a button, e.g. a Trash-Can-Icon for delete

setProxy

public void setProxy(AbstractProxyControl proxy)
Sets the proxy attribute of the IUIBaseCommand object
Parameters:
proxy - The new proxy value

setResourceContext

public void setResourceContext(IResourceContext context)
Sets the resourceContext for IUIBaseCommand
Parameters:
context - The new resourceContext value

getReplaceCommands

public java.util.List getReplaceCommands()
gets the list of commands which will be ignored when the command is executable
Returns:
The replaceCommands value

setReplaceCommands

public void setReplaceCommands(java.util.List replaceCommandsList)
Sets the list of commands which will be ignored when the command is executable
Parameters:
replaceCommandsList - The new replaceCommands value

setParameters

public void setParameters(java.util.Hashtable parameters)
Sets parameters for the command. Each parameters should have an unique key and one or more values.
Parameters:
parameter - The new parameters value

getParameters

public java.util.Hashtable getParameters()
Gets the command parameters
Returns:
The parameters value

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.