|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.transform.actions.ScriptAction
com.ibm.hats.transform.actions.SetFormValue
public class SetFormValue
This class represents the action to set a value at the specified position. The underlying Javascript will use this position and length to update all HTML input controls on the form with the correct value. The current implementation of this class generates code similar to the following:
checkInput2('in_123_10', 'myvalue','hidden')
where "123" is the linear, 1-based cursor position, where "10" is the length of the area to update, and where "myvalue" is
the updated value.
| Field Summary |
|---|
| Fields inherited from class com.ibm.hats.transform.actions.ScriptAction |
|---|
LANG_JAVASCRIPT |
| Constructor Summary | |
|---|---|
SetFormValue(String value,
int pos,
int length)
Constructs a new SetFormValue object. |
|
SetFormValue(String value,
int pos,
int length,
int screenId)
Constructs a new SetFormValue object. |
|
| Method Summary | |
|---|---|
String |
generateScript(String language,
ContextAttributes contextAttributes)
Returns the generated script. |
int |
getLength()
Returns the length. |
int |
getPos()
Returns the position. |
int |
getScreenId()
|
String |
getValue()
Returns the value. |
void |
setLength(int length)
Sets the length. |
void |
setPos(int pos)
Sets the position. |
void |
setScreenId(int screenId)
|
void |
setValue(String value)
Sets the value. |
| Methods inherited from class com.ibm.hats.transform.actions.ScriptAction |
|---|
combineScriptActions, combineScriptActions, generateScript, generateScript, generateScript, generateScript, generateScript |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetFormValue(String value,
int pos,
int length)
SetFormValue object.
value - new valuepos - linear, 1-based screen positionlength - length of the region to update
public SetFormValue(String value,
int pos,
int length,
int screenId)
SetFormValue object.
value - new valuepos - linear, 1-based screen positionlength - length of the region to update| Method Detail |
|---|
public String generateScript(String language,
ContextAttributes contextAttributes)
checkInput2('in_123_10', 'myvalue','hidden')
generateScript in class ScriptActionlanguage - The language.contextAttributes - The context attributes.
public int getLength()
public int getPos()
public String getValue()
public int getScreenId()
public void setLength(int length)
length - The length to setpublic void setPos(int pos)
pos - The pos to setpublic void setValue(String value)
value - The value to setpublic void setScreenId(int screenId)
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||