|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.rendering.uicommand.AbstractMassCommand
Copyright 2004 SAP AG
| Field Summary | |
protected int |
applicable
|
static RID |
ROOT_RID
|
| Fields inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
APPLICABLE_FALSE, APPLICABLE_TRUE, APPLICABLE_UNKNOWN |
| Constructor Summary | |
AbstractMassCommand()
public constructor used by the UICommandFactory, when command is
created for the first time |
|
AbstractMassCommand(java.lang.String keyLabel,
java.lang.String keyTooltip)
allows to set keys for the label and the tooltip of the command. |
|
| Method Summary | |
java.lang.String |
getAlias()
Gets the alias attribute of the AbstractUIMassCommand object |
protected java.lang.String |
getBundleString(java.lang.String key)
returns the translated text for the given key. |
protected java.lang.String |
getBundleString(java.lang.String key,
java.lang.Object obj)
returns the translated text with the given variables included in the object. |
protected java.lang.String |
getBundleString(java.lang.String key,
java.lang.Object[] obj)
returns the translated text with the given variables included in the object array. |
protected java.lang.String |
getBundleString(java.lang.String key,
java.lang.Object obj1,
java.lang.Object obj2)
returns the translated text with the given variables included in the two objects. |
com.sapportals.htmlb.Component |
getComponent()
Returns a component for this command. |
java.util.Properties |
getConfigurationProperties()
Gets the configurationProperties attribute of the AbstractUIMassCommand object |
java.lang.String |
getLabel()
returns the label text for the command. |
java.lang.String |
getLayoutSetID()
Gets the layoutSetID attribute of the AbstractUIMassCommand object |
LinkAttributes |
getLinkAttributes()
Return a LinkAttributes when the Command returns false
in its raisesEvent method. |
java.util.Hashtable |
getParameters()
Gets the command parameters |
IProxy |
getProxy()
Gets the proxy attribute of the AbstractUICommand object |
java.util.List |
getReplaceCommands()
gets the list of commands which will be ignored when the command is executable |
protected IResource |
getResource()
|
IResourceContext |
getResourceContext()
|
protected IResourceList |
getResourceList()
|
java.lang.String[] |
getTargetParameters()
returns null. |
java.lang.String |
getText(TextKey key)
Gets the text attribute of the AbstractUICommand object |
java.lang.String |
getTextForSecondaryScreen(java.lang.String key)
Gets the textForSecondaryScreen attribute of the AbstractUIMassCommand object |
protected java.util.Properties |
getTextProperties()
|
java.lang.String |
getTooltip()
returns the tooltip text for the command. |
com.sapportals.wcm.control.base.IMandatoryField[] |
getUserInputSpecifiers()
|
protected void |
handleWrongConfiguration()
throws an InvalidConfigurationException that will be displayed
on the screen and give further information what was invalid for the given configuration |
protected IMassCommand |
initNewInstance(IMassCommand command)
whenever a new instance of a command is needed, the newly created instance has to inherit all of the old instance's member variables, such as the alias, the resource bundle... |
boolean |
isApplicable()
Gets the applicable attribute of the AbstractUIMassCommand object |
boolean |
raisesEvent()
flag, if the command raises an Event in its execute
method. |
void |
setAlias(java.lang.String alias)
Sets the alias attribute of the AbstractUIMassCommand object |
void |
setConfigurationProperties(java.util.Properties properties)
allows to set a free list of key-value pairs to be used by this command. |
void |
setLabelBundleKey(java.lang.String label)
currently not implemented. |
void |
setLayoutSetID(java.lang.String layoutSetID)
Sets the layoutSetID attribute of the AbstractUIMassCommand object |
void |
setParameters(java.util.Hashtable parameters)
Sets parameters for the command. |
void |
setProxy(AbstractProxyControl proxy)
Sets the proxy attribute of the AbstractUICommand object |
void |
setReplaceCommands(java.util.List replaceCommandsList)
set the list of commands which will be ignored when the command is executable |
void |
setResource(IResource resource)
|
void |
setResourceBundle(ResourceBundles bundleFile)
sets the resourcebundle for this command |
void |
setResourceContext(IResourceContext context)
Sets the resourceContext for IUICommand |
void |
setResourceList(IResourceList list)
Sets the resource list, the command operates on |
void |
setTargetParameters(java.util.List values,
IResourceContext context)
sets the given parameters for this class. |
void |
setTextProperties(java.util.Properties properties)
copies the values of known keys from the given properties-object into its own list. |
void |
setTooltipBundleKey(java.lang.String tooltip)
currently not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IMassCommand |
execute, getNewInstance |
| Methods inherited from interface com.sapportals.wcm.rendering.uicommand.IExecCommand |
isExecutable |
| Field Detail |
protected int applicable
public static RID ROOT_RID
| Constructor Detail |
public AbstractMassCommand()
UICommandFactory, when command is
created for the first time
public AbstractMassCommand(java.lang.String keyLabel,
java.lang.String keyTooltip)
keyLabel - the labelkey for the resourcebundle of the command, it is
only set if it is not nullkeyTooltip - the tooltipkey for the resourcebundle of the command, it
is only set if it is not null| Method Detail |
public boolean raisesEvent()
IExecCommandEvent in its execute
method.raisesEvent in interface IExecCommandComponent
rendered for this command will result in an Event or not.public LinkAttributes getLinkAttributes()
IExecCommandLinkAttributes when the Command returns false
in its raisesEvent method.getLinkAttributes in interface IExecCommandLinkAttributes
when the Command returns false in its raisesEvent method,
null otherwise.public void setResourceBundle(ResourceBundles bundleFile)
setResourceBundle in interface IUIBaseCommandbundleFile - the bundle the command uses to retrieve its texts.public void setTextProperties(java.util.Properties properties)
setTextProperties in interface IMassCommandproperties - should hold key-value pairs with keys defined in IUIBaseCommand.TEXT_KEYS
. Other key-value pairs will not be used.protected java.util.Properties getTextProperties()
public void setConfigurationProperties(java.util.Properties properties)
setConfigurationProperties in interface IUIBaseCommandproperties - free properties bag to be used by a command.public java.util.Properties getConfigurationProperties()
getConfigurationProperties in interface IUIBaseCommandpublic void setLabelBundleKey(java.lang.String label)
setLabelBundleKey in interface IUIBaseCommandlabel - The new labelBundleKey valuepublic void setTooltipBundleKey(java.lang.String tooltip)
setTooltipBundleKey in interface IUIBaseCommandtooltip - The new tooltipBundleKey valuepublic void setResourceList(IResourceList list)
setResourceList in interface IMassExecCommandlist - The new resourceList valueprotected IResourceList getResourceList()
public void setProxy(AbstractProxyControl proxy)
setProxy in interface IUIBaseCommandproxy - The new proxy valuepublic void setResourceContext(IResourceContext context)
setResourceContext in interface IUIBaseCommandcontext - The new resourceContext valuepublic IResourceContext getResourceContext()
public IProxy getProxy()
public void setResource(IResource resource)
setResource in interface IUIBaseCommandresource - sets the resource the command shall operate onprotected IResource getResource()
public com.sapportals.htmlb.Component getComponent()
getComponent in interface IUIBaseCommandnull;public java.lang.String getTooltip()
public java.lang.String getLabel()
public java.lang.String getText(TextKey key)
getText in interface IUIBaseCommandkey - Description of the param
public java.lang.String[] getTargetParameters()
throws WcmException
null. A number of IUIMassCommands do not need
to add any information in the Event/code>s parameter list. When extending
this abstract class, there is no need to implement this method.
- Specified by:
getTargetParameters in interface IExecCommand
- Returns:
- The targetParameters value
- Throws:
WcmException - Exception raised in failure situation
public void setTargetParameters(java.util.List values,
IResourceContext context)
throws WcmException
null
, when this abstract classes getTargetParameters method is used,
only the context parameter is used in this method.setTargetParameters in interface IExecCommandvalues - The new targetParameters value - not used in this implementationcontext - The ResourceContext - this is always neededWcmException - Exception raised in failure situationprotected final IMassCommand initNewInstance(IMassCommand command)
getNewInstancemethod like this
public getNewInstance() {
return this.initNewInstance(new MyCommand());
}
this abstract class' method will copy all of the member-attributes.
Comparable to the deep-clone approach.command - Description of the parampublic java.lang.String getTextForSecondaryScreen(java.lang.String key)
key - Description of the parampublic com.sapportals.wcm.control.base.IMandatoryField[] getUserInputSpecifiers()
public java.lang.String getLayoutSetID()
public void setLayoutSetID(java.lang.String layoutSetID)
layoutSetID - The new layoutSetID valuepublic java.lang.String getAlias()
getAlias in interface IExecCommandpublic void setAlias(java.lang.String alias)
setAlias in interface IExecCommandalias - The new alias value
protected java.lang.String getBundleString(java.lang.String key,
java.lang.Object[] obj)
key - the key of the text to return - must not be
nullobj - the variables to fill the place holders in
the resource bundle, can be nulljava.util.MissingResourceException - if the IResourceContext is not
set for the commandprotected java.lang.String getBundleString(java.lang.String key)
key - the key of the text to return - must not be
nulljava.util.MissingResourceException - if the IResourceContext is not
set for the command
protected java.lang.String getBundleString(java.lang.String key,
java.lang.Object obj)
key - the key of the text to return - must not be
nullobj - the variable to fill the place holder in the
resource bundle, can be nulljava.util.MissingResourceException - if the IResourceContext is not
set for the command
protected java.lang.String getBundleString(java.lang.String key,
java.lang.Object obj1,
java.lang.Object obj2)
key - the key of the text to return - must not be
nullobj1 - the variable to fill the first place holder
in the resource bundle, can be nullobj2 - the variable to fill the second place holder
in the resource bundle, can be null *java.util.MissingResourceException - if the IResourceContext is not
set for the command
protected void handleWrongConfiguration()
throws com.sapportals.wcm.control.base.InvalidConfigurationException
InvalidConfigurationException that will be displayed
on the screen and give further information what was invalid for the given configurationInvalidConfigurationException - Exception raised in failure situationpublic java.util.List getReplaceCommands()
getReplaceCommands in interface IUIBaseCommandpublic void setReplaceCommands(java.util.List replaceCommandsList)
setReplaceCommands in interface IUIBaseCommandreplaceCommandsList - The new replaceCommands valuepublic boolean isApplicable()
isApplicable in interface IExecCommandpublic void setParameters(java.util.Hashtable parameters)
setParameters in interface IUIBaseCommandparameter - The new parameters valuepublic java.util.Hashtable getParameters()
getParameters in interface IUIBaseCommand
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||