java.lang.Object | ||
↳ | com.pspdfkit.annotations.actions.Action | |
↳ | com.pspdfkit.annotations.actions.JavaScriptAction |
Action that should trigger execution of JavaScript embedded in it.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JavaScriptAction(String script)
Constructs the JavaScript action with given script.
| |||||||||||
JavaScriptAction(String script, List<Action> subActions)
Constructs the JavaScript action with given script.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
String |
getScript()
Returns JavaScript code to be executed.
| ||||||||||
ActionType |
getType()
Returns type of action to make down-casting easier.
| ||||||||||
int | hashCode() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs the JavaScript action with given script.
script | Script that should be executed when the action gets triggered. |
---|
Constructs the JavaScript action with given script.
script | Script that should be executed when the action gets triggered. |
---|---|
subActions | List of sub-actions of this action. |
Returns type of action to make down-casting easier.