com.ibm.workflow.servlet.clientx.wext
Class WExtCommand
java.lang.Object
|
+--com.ibm.workflow.servlet.clientx.wext.WExtCommand
- public class WExtCommand
- extends java.lang.Object
This class is extended from Command class.
This class handle WExtResource.properties resource for commandText
Constructor Summary |
WExtCommand(java.lang.String commandString,
java.lang.String commandPicture,
java.lang.String commandText)
Constructs a Command object. |
Method Summary |
java.lang.String |
getText(com.ibm.workflow.servlet.client.RequestContext context)
Query the command's text that can be used as alt text or as button label. |
java.lang.String |
getTriggerTag(com.ibm.workflow.servlet.client.RequestContext context,
java.lang.String id,
java.lang.String name)
Construct a HTML anchor (a href) tag and icon (img) that will cause the command to be executed. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
WExtCommand
public WExtCommand(java.lang.String commandString,
java.lang.String commandPicture,
java.lang.String commandText)
- Constructs a Command object.
- Parameters:
commandString
- the command to be invokedcommandPicture
- the name of the .gif file to be showncommandText
- the description of the command
getTriggerTag
public java.lang.String getTriggerTag(com.ibm.workflow.servlet.client.RequestContext context,
java.lang.String id,
java.lang.String name)
- Construct a HTML anchor (a href) tag and icon (img) that will cause the command to be executed.
- Parameters:
context
- the request contextid
- the OID of the object on which the command should be invokedname
- the name of the object (only used in JavaScript prompts)- Returns:
- a HTML a href tag
getText
public java.lang.String getText(com.ibm.workflow.servlet.client.RequestContext context)
- Query the command's text that can be used as alt text or as button label.
- Parameters:
context
- the context to be used for localized strings- Returns:
- the command's text