com.sapportals.wcm.rendering.base

Interface IUIBaseCommand

All Known Subinterfaces:
ICommand, IExecCommand, IMassCommand, IMassExecCommand, IUICommand, IUIGroupCommand, IUIMassCommand, IUIMenuCommand
All Known Implementing Classes:
AbstractCommand, AbstractMassCommand, AbstractUICommand, AbstractUIGroupCommand, AbstractUIMassCommand, UIMenuCommand

public interface IUIBaseCommand

Description of the Interface


Field Summary
static String ERR_MESSAGE_MISSING_CONFIG_ENTRY
          Message for exception when config settings are missing for a IUIBaseCommand.
static String ERR_MESSAGE_WRONG_METHOD_CALL
          Message for exception to show when a wrong method of a IUIBaseCommand was called.
static String KEY_INPUT_CONTROL_TEXT
           
static String KEY_INPUT_CONTROL_TEXT_2
           
static String KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT
           
static String KEY_INPUT_CONTROL_TEXT_3
           
static String KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT
           
static 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 String KEY_MASS_EMBEDDED_COMMAND_TEXT
           
static String KEY_MASS_EMBEDDED_COMMANT_TOOLTIP
           
static String KEY_SINGLE_EMBEDDED_COMMAND_TEXT
           
static String KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP
           
static String KEY_TOOLTIP
           
static String LINE_BREAK
          Line break to format lists of information
static String[] TEXT_KEYS
           
static String VALUE_EMPTY_STRING
           
 
Method Summary
 Component getComponent()
           
 Properties getConfigurationProperties()
          Gets the configurationProperties attribute of the IUIBaseCommand object
 Hashtable getParameters()
          Gets the command parameters
 List getReplaceCommands()
          gets the list of commands which will be ignored when the command is executable
 String getText(TextKey key)
          Gets the text for a givven text key
 void setConfigurationProperties(Properties properties)
           
 void setLabelBundleKey(String groupLabel)
          Sets the labelBundleKey attribute of the IUIBaseCommand object
 void setParameters(Hashtable parameters)
          Sets parameters for the command.
 void setProxy(AbstractProxyControl proxy)
          Sets the proxy attribute of the IUIBaseCommand object
 void setReplaceCommands(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(String groupTooltip)
          Sets the tooltipBundleKey attribute of the IUIBaseCommand object
 

Field Detail

LINE_BREAK

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


ERR_MESSAGE_WRONG_METHOD_CALL

public static final 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

See Also:
Constant Field Values

ERR_MESSAGE_MISSING_CONFIG_ENTRY

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

See Also:
Constant Field Values

KEY_LABEL

public static final 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.

See Also:
Constant Field Values

KEY_TOOLTIP

public static final String KEY_TOOLTIP
See Also:
Constant Field Values

KEY_INPUT_CONTROL_TEXT

public static final String KEY_INPUT_CONTROL_TEXT
See Also:
Constant Field Values

KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT

public static final String KEY_INPUT_CONTROL_TEXT_DEFAULT_TEXT
See Also:
Constant Field Values

KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT

public static final String KEY_INPUT_CONTROL_TEXT_2_DEFAULT_TEXT
See Also:
Constant Field Values

KEY_INPUT_CONTROL_TEXT_2

public static final String KEY_INPUT_CONTROL_TEXT_2
See Also:
Constant Field Values

KEY_INPUT_CONTROL_TEXT_3

public static final String KEY_INPUT_CONTROL_TEXT_3
See Also:
Constant Field Values

KEY_SINGLE_EMBEDDED_COMMAND_TEXT

public static final String KEY_SINGLE_EMBEDDED_COMMAND_TEXT
See Also:
Constant Field Values

KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP

public static final String KEY_SINGLE_EMBEDDED_COMMAND_TOOLTIP
See Also:
Constant Field Values

KEY_MASS_EMBEDDED_COMMAND_TEXT

public static final String KEY_MASS_EMBEDDED_COMMAND_TEXT
See Also:
Constant Field Values

KEY_MASS_EMBEDDED_COMMANT_TOOLTIP

public static final String KEY_MASS_EMBEDDED_COMMANT_TOOLTIP
See Also:
Constant Field Values

VALUE_EMPTY_STRING

public static final String VALUE_EMPTY_STRING
See Also:
Constant Field Values

TEXT_KEYS

public static final 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(String groupLabel)
Sets the labelBundleKey attribute of the IUIBaseCommand object

Parameters:
groupLabel - The new labelBundleKey value

setTooltipBundleKey

public void setTooltipBundleKey(String groupTooltip)
Sets the tooltipBundleKey attribute of the IUIBaseCommand object

Parameters:
groupTooltip - The new tooltipBundleKey value

getText

public 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(Properties properties)
Parameters:
properties - The new configurationProperties value

getConfigurationProperties

public Properties getConfigurationProperties()
Gets the configurationProperties attribute of the IUIBaseCommand object

Returns:
The configurationProperties value

getComponent

public 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 List getReplaceCommands()
gets the list of commands which will be ignored when the command is executable

Returns:
The replaceCommands value

setReplaceCommands

public void setReplaceCommands(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(Hashtable parameters)
Sets parameters for the command. Each parameters should have an unique key and one or more values.


getParameters

public Hashtable getParameters()
Gets the command parameters

Returns:
The parameters value


Copyright 2006 SAP AG Complete Copyright Notice