public final class EventTag extends ProtoableNode
Element.DualDomNode, Element.ReplaceContentNode.ChangeLoggerAttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTIONCREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixATTR_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 |
|---|
EventTag(Element pParent,
Node prevSibling) |
| Modifier and Type | Method and Description |
|---|---|
static EventTag |
createEvent(Model model,
String sActivity,
String sRef)
Factory method.
|
int |
defaultElement()
Returns the class tag of the default one-of child (if there is one)
|
String |
getActivity()
Get the activity (ie: OnEnter, OnClick, etc.) for this event.
|
String |
getContentType()
Get the contentType for this event's script (eg.
|
String |
getLanguage()
Get the language for this event's script.
|
String |
getRef()
Get the reference of the activity (ie: $form, $layout, etc.) for this
event.
|
String |
getRunAt()
Get the run location (client or server) for this event.
|
Script |
getScript() |
String |
getScriptText()
Get the content of the script for this event.
|
Script |
peekScript()
Get the script for this event.
|
void |
setActivity(String sActivity)
Set the activity (ie: OnEnter, OnClick, etc.) for this event.
|
void |
setContentType(String sContentType)
Set the contentType for this event's script (eg.
|
void |
setLanguage(String sLanguage)
Set the language for this event's script.
|
void |
setRef(String sRef)
Set the reference of the activity (ie: $form, $layout, etc.) for this
event.
|
void |
setRunAt(String sTarget)
Set the run location (client or server) for this event.
|
void |
setScript(Script script)
Set the script for this event.
|
void |
setScriptText(String sScript)
Set the content of the script for this event.
|
clone, createProto, elementGetAttribute, externalProtoFailed, fetchIDValues, getAttribute, getAttributeByName, getElement, getExternalProtoSource, getOneOfChild, getPI, getPI, getProto, getProtoed, getScriptTable, getText, hasExternalProto, hasProto, isContextSensitiveAttribute, isDefault, isSpecified, notifyPeers, performResolveProtos, preSave, releaseExternalProtos, reResolveProto, resolveProto, setAttribute, setElement, setOneOfChild, setPermsLock, setProto, updateIDValuesappendChild, appendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultAttribute, defaultElement, establishID, evaluate, explodeQName, findAttr, findSchemaAttr, foundBadAttribute, foundBadAttribute, getAll, getAppModel, getAtom, getAttr, getAttribute, getAttrIndex, getAttrName, getAttrNS, getAttrProp, getAttrQName, getAttrVal, getChildReln, getClassAll, getClassIndex, getClassName, getDeltas, getElement, getElementClass, getElementLocal, getEnum, getEnum, getEventTable, getFirstXFAChild, getFirstXMLChild, getID, getIndex, getInheritedNS, getInstalledLocale, getIsNull, getLastXMLChild, getLineNumber, getLocalName, getModel, getName, getNode, getNodes, getNodeSchema, getNS, getNumAttrs, getOneOfChild, getPrefix, getProperty, getProperty, getSaveXMLSaveTransient, getSchemaType, getScriptMethodInfo, getSibling, getXFAChild, getXMLChild, getXMLName, getXPath, getXsiNilAttribute, inhibitPrettyPrint, inhibitPrettyPrint, insertChild, isContainer, isFragment, isHidden, isHidden, isIndexed, isInstalledLocaleAmbient, isLeaf, isNameSpaceAttr, isPropertySpecified, isPropertySpecified, isPropertyValid, isSpecified, isSpecified, isTransient, isTransparent, isValidAttr, isValidChild, isValidElement, loadXML, loadXML, makeDefault, makeNonDefault, newAttribute, optimizeNameSpace, peekAttribute, peekElement, peekOneOfChild, peekProperty, peekProperty, postSave, privateSetName, processTextChildrenDuringParse, removeAttr, removeAttr, removeChild, removePI, removePI, removeWhiteSpace, removeXsiNilAttribute, replaceChild, resetPostLoadXML, resolveAndEnumerateChildren, resolveNodeCreate, resolvePrefix, saveFilteredXML, saveXML, saveXML, serialize, setAttribute, setAttribute, setAttribute, setAttrProp, setDefaultFlag, setDOMProperties, setIsDataWindowRoot, setIsIndexed, setLineNumber, setLocalName, setModel, setName, setNS, setProperty, setProperty, setQName, setSaveXMLSaveTransient, setTransparent, setXMLName, setXsiNilAttribute, updateFromPeercheckAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getFirstXMLChildElement, getLocked, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getPropName, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isDirty, isMapped, isPermsLockSet, isTransient, locateChildByClass, locateChildByName, logValueChangeHelper, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFataladdPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMutepublic static EventTag createEvent(Model model, String sActivity, String sRef)
<calculate>,
<validate>, or <event> tag,
depending on the activity.public int defaultElement()
ElementdefaultElement in class Elementpublic String getActivity()
public String getContentType()
public String getLanguage()
public String getRef()
public String getRunAt()
public Script getScript()
public String getScriptText()
public Script peekScript()
public void setActivity(String sActivity)
sActivity - -
the name of the event to set,public void setContentType(String sContentType)
sContentType - -
the content type to set for this element.public void setLanguage(String sLanguage)
While the "language" isn't as well-specified as the contentType, it is a useful shortcut for those clients supporting the primary languages (that is, JavaScript and FormCalc). "FormCalc" -. "application/x-formcalc" "JavaScript" -. "application/x-javascript" Others are copied straight across.
public void setRef(String sRef)
sRef - -
The object this event refers to.public void setRunAt(String sTarget)
sTarget - -
The target: client, server etc.public void setScript(Script script)
public void setScriptText(String sScript)
Copyright © 2010 - 2020 Adobe. All Rights Reserved