public class EventPseudoModel extends PseudoModel
$event object.
Users of this class will not typically create instances of this class
directly, but will query the AppModel to find the existing
instance of the "$event" object.AppModel.lookupPseudoModel(String)| Modifier and Type | Class and Description |
|---|---|
static class |
EventPseudoModel.EventInfo
Encapsulates the state of EventPseudoModel.
|
ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Constructor and Description |
|---|
EventPseudoModel(AppModel appModel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelAction(String sAction)
Determines whether the specified action has been canceled.
|
boolean |
cancelEvent(String sEvent)
Determines whether the specified event has been canceled.
|
void |
emit()
Fires the event defined by the current event state.
|
boolean |
getCancelAction()
Determines whether the current action event has been canceled.
|
String |
getCanceledAction()
Returns the name of the canceled action.
|
String |
getChange()
Returns the text typed or pasted into the field.
|
String |
getClassAtom()
Returns the atomic name of this element's class.
|
String |
getClassName()
Gets the name of this object's class.
|
int |
getCommitKey()
Returns how a form field was committed.
|
EventPseudoModel.EventInfo |
getEventInfo()
Returns the current event state object.
|
String |
getFullText()
Returns the full (untruncated) value of the field.
|
boolean |
getKeyDown()
Returns whether the arrow key was used to make the selection.
|
boolean |
getModifier()
Returns whether the modifier key is down during the event.
|
int |
getName()
Returns the code that identifies the current event.
|
String |
getNameAsString()
Returns the name of the event as a String.
|
String |
getNewContentType()
Returns the contentType after the field change.
|
String |
getNewText()
Returns the value after the field change.
|
String |
getPrevContentType()
Returns the contentType of prevText.
|
String |
getPrevText()
Returns the value before the field changes.
|
boolean |
getReenter()
Returns whether this event is happening immediately after the user committed this field.
|
ScriptTable |
getScriptTable() |
int |
getSelEnd()
Returns the end position of the current text selection during a change event.
|
int |
getSelStart()
Returns the start position of the current text selection during a change event.
|
boolean |
getShift()
Returns whether the shift key is down during the event.
|
String |
getSOAPFaultCode()
Returns the SOAP faultcode returned from executing a Web Service connection.
|
String |
getSOAPFaultString()
Returns the SOAP faultstring returned from executing a Web Service connection.
|
Obj |
getTarget()
Returns the target object that triggered the event.
|
boolean |
isAction(String sOperation) |
void |
reset()
Resets the event state to all-empty values.
|
void |
sendMessenge(ExFull error,
int eSeverity)
Send message to host so it can be logged
|
void |
setCancelAction(boolean bCancelAction,
String sSource) |
void |
setChange(String sChange)
Sets the text typed or pasted into the field.
|
void |
setCommitKey(int nCommitKey)
Sets how a form field value was committed.
|
void |
setEventInfo(EventPseudoModel.EventInfo eventInfo)
Sets the event state to the state contained within an EventInfo object.
|
void |
setFullText(String sFullText)
Sets the full (untruncated) value of the field.
|
void |
setKeyDown(boolean bKeyDown)
Sets whether the arrow key was used to make the selection.
|
void |
setModifier(boolean bModifier)
Sets whether the modifier key is down during the event.
|
void |
setName(int eName)
Sets the code that identifies the current event.
|
void |
setName(String sName)
Sets the name of the event using a String.
|
void |
setNewContentType(String sNewContentType)
Sets the contentType after the field change.
|
void |
setNewText(String sNewText)
Sets the value after the field change.
|
void |
setPrevContentType(String sPrevContentType)
Sets the contentType of prevText.
|
void |
setPrevText(String sPrevText)
Sets the value before the field changes.
|
void |
setReenter(boolean bReenter)
Sets whether this event is happening immediately after the user committed this field.
|
void |
setSelEnd(int nSelEnd)
Sets the end position of the current text selection during a change event.
|
void |
setSelStart(int nSelStart)
Sets the start position of the current text selection during a change event.
|
void |
setShift(boolean bShift)
Sets whether the shift key is down during the event.
|
void |
setSOAPFaultCode(String sSOAPFaultCode)
Sets the SOAP faultcode returned from executing a Web Service connection.
|
void |
setSOAPFaultString(String sSOAPFaultString)
Sets the SOAP faultstring returned from executing a Web Service connection.
|
void |
setTarget(Obj target)
Sets the target object that triggered the event.
|
boolean |
validateUsage(int nVersion,
int nAvailability,
boolean bUpdateVersion)
Validate if the given Version and Availability flags are valid for the
current document
|
boolean |
validateUsageFailedIsFatal(int nVersion,
int nAvailability)
Determines if disallowing a version should be considered a fatal error.
|
getAliasObject, getEventTableaddPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeerpublic EventPseudoModel(AppModel appModel)
public String getPrevText()
public void setPrevText(String sPrevText)
sPrevText - the value before the field changes.public String getPrevContentType()
public void setPrevContentType(String sPrevContentType)
sPrevContentType - the contentType of prevText.public String getChange()
public void setChange(String sChange)
sChange - the text typed or pasted into the field.public String getNewText()
public void setNewText(String sNewText)
sNewText - the value after the field change.public String getNewContentType()
public void setNewContentType(String sNewContentType)
sNewContentType - the contentType after the field change.public String getFullText()
public void setFullText(String sFullText)
sFullText - the full (untruncated) value of the field.public int getCommitKey()
public void setCommitKey(int nCommitKey)
nCommitKey - how a form field was committed.public boolean getKeyDown()
true if the arrow key was used to make the selection.public void setKeyDown(boolean bKeyDown)
bKeyDown - true if the arrow key was used to make the selection.public boolean getModifier()
true if the modifier key is down during the event.public void setModifier(boolean bModifier)
bModifier - true if the modifier key is down during the event.public int getName()
ScriptHandlerpublic void setName(int eName)
eName - a code that defines the current event.ScriptHandlerpublic String getNameAsString()
public void setName(String sName)
sName - the name of the event.public int getSelEnd()
public void setSelEnd(int nSelEnd)
nSelEnd - the end position of the current text selection.public int getSelStart()
public void setSelStart(int nSelStart)
nSelStart - the start position of the current text selection during a change event.public boolean getShift()
true if the shift key is down during the event.public void setShift(boolean bShift)
bShift - true if the shift key is down during the event.public Obj getTarget()
public void setTarget(Obj target)
target - the target object that triggered the event.public String getSOAPFaultCode()
public void setSOAPFaultCode(String sSOAPFaultCode)
sSOAPFaultCode - the SOAP faultCode.public String getSOAPFaultString()
public void setSOAPFaultString(String sSOAPFaultString)
sSOAPFaultString - the SOAP faultstring returned from executing a Web Service connection.public boolean getReenter()
true if this enter event is happening immediately after
the user committed this field.public void setReenter(boolean bReenter)
bReenter - true if this enter event is happening immediately
after the user committed this field.public boolean getCancelAction()
true if the current action event has been canceled.public String getCanceledAction()
public void setCancelAction(boolean bCancelAction,
String sSource)
public void setEventInfo(EventPseudoModel.EventInfo eventInfo)
eventInfo - the new statepublic EventPseudoModel.EventInfo getEventInfo()
public void reset()
public void emit()
public boolean cancelAction(String sAction)
sAction - the name of the action. Must be one of:
execute, open, print, sign or submit.getCanceledAction()public boolean cancelEvent(String sEvent)
sEvent - the name of the eventtrue if the event should be executed.public boolean isAction(String sOperation)
public String getClassAtom()
ObjgetClassAtom in class Objpublic String getClassName()
ObjgetClassName in class PseudoModelpublic ScriptTable getScriptTable()
getScriptTable in class PseudoModelpublic void sendMessenge(ExFull error, int eSeverity)
ObjsendMessenge in class Objerror - contains message Id and texteSeverity - the message severityObj.sendMessenge(ExFull, int)public boolean validateUsage(int nVersion,
int nAvailability,
boolean bUpdateVersion)
ObjvalidateUsage in class ObjnVersion - The target XFA VersionnAvailability - The target Availability flags, this indicates for what clients
the script is availablebUpdateVersion - indicates if the model version can be updated by the calling
codeObj.validateUsage(int, int, boolean)public boolean validateUsageFailedIsFatal(int nVersion,
int nAvailability)
Obj
This method is called after calling
Obj.validateUsage(int, int, boolean) when that method returns false.
validateUsageFailedIsFatal in class ObjnVersion - The target XFA VersionnAvailability - The target Availability flags, this indicates for what clients
the script is availableObj.validateUsageFailedIsFatal(int, int)Copyright © 2010 - 2020 Adobe. All Rights Reserved