public class Container extends ProtoableNode
| Modifier and Type | Class and Description |
|---|---|
static interface |
Container.ChangeLogger
Pure-virtual interface for clients of XFANode::compareVersions() which want changes
reported in terms of containers & properties instead of elements & attributes.
|
static class |
Container.FormInfo |
static class |
Container.ValidationState |
Element.DualDomNode, Element.ReplaceContentAttrIsDefault, 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 |
|---|
Container() |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute(int eTag,
boolean bPeek,
boolean bValidate)
Gets this element's attribute whose attribute tag is given.
|
Element |
getConnectNode(String sConnectionName,
int eUsage,
boolean bCreate)
Get the connect node of this container (if the container supports connect) for a
given connection and usage.
|
String |
getErrorText()
The errorText property contains the validation error message for the
last validation that failed.
|
Container.FormInfo |
getFormInfo() |
void |
getInvalidObjects(NodeList invalidObjects) |
int |
getRuntimeAccess(int eParentAccess) |
int |
getRuntimePresence(int eParentPresence)
Return an int for this containers presence property.
|
ScriptTable |
getScriptTable() |
Container.ValidationState |
getValidationState() |
boolean |
isConnectSupported()
Return whether the container supports connect i.e.
|
boolean |
isContainer()
Check to see if this is a container object.
|
boolean |
isHeightGrowable()
Returns whether or not this container's height is growable.
|
boolean |
isHeightGrowSupported()
Returns whether or not this container support growable heights.
|
boolean |
isWidthGrowable()
Returns whether or not this container's width is growable.
|
boolean |
isWidthGrowSupported()
Return whether or not this container support growable widths This does
not indicate whether the container height is currently growable, just
whether it's supported by this container type.
|
Node |
locateChildByClass(int eChildTag,
int nIndex) |
void |
setAttribute(Attribute attr,
int eTag)
Sets an attribute of this element.
|
void |
setErrorText(String sErrorText) |
void |
setFormInfo(Container.FormInfo formInfo) |
void |
setValidationState(Container.ValidationState eValidationState) |
clone, createProto, elementGetAttribute, externalProtoFailed, fetchIDValues, getAttributeByName, getElement, getExternalProtoSource, getOneOfChild, getPI, getPI, getProto, getProtoed, getText, hasExternalProto, hasProto, isContextSensitiveAttribute, isDefault, isSpecified, notifyPeers, performResolveProtos, preSave, releaseExternalProtos, reResolveProto, resolveProto, setElement, setOneOfChild, setPermsLock, setProto, updateIDValuesappendChild, appendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, defaultAttribute, defaultElement, 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, 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, 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 Attribute getAttribute(int eTag, boolean bPeek, boolean bValidate)
ElementTo peek at an attribute, set the peek argument to true. If the attribute is present, it is returned; otherwise null is returned.
To create an attribute, set the peek argument to false. If the attribute is absent, a default attribute is created and returned; for attributes with no default, null is returned.
If validation argument is true, and the validation fails, this method throws.
getAttribute in class ProtoableNodeeTag - the tag of the attribute.bPeek - whether to peek at the attribute or not.bValidate - whether to validate the attribute or not.public Container.FormInfo getFormInfo()
public int getRuntimePresence(int eParentPresence)
public int getRuntimeAccess(int eParentAccess)
public ScriptTable getScriptTable()
getScriptTable in class ProtoableNodepublic String getErrorText()
public void setErrorText(String sErrorText)
public Container.ValidationState getValidationState()
public void setValidationState(Container.ValidationState eValidationState)
public void getInvalidObjects(NodeList invalidObjects)
public boolean isConnectSupported()
public Element getConnectNode(String sConnectionName, int eUsage, boolean bCreate)
sConnectionName - the name of the connection.eUsage - the value of the usage property.bCreate - if TRUE create the connection if it doens't existpublic boolean isContainer()
NodeisContainer in class ElementElement.isContainer()public boolean isHeightGrowable()
public boolean isHeightGrowSupported()
public boolean isWidthGrowable()
public boolean isWidthGrowSupported()
Comments Helps distinguish - ie text draws supporting growing but arc draws do not.
public void setAttribute(Attribute attr, int eTag)
In addition, there are clear rules to resolve conflicts:
In terms of setting min/max values, this method will guard against setting min > max.
setAttribute in class ProtoableNodeattr - the attribute.eTag - The XFA tag name of the attribute being set.ProtoableNode.setAttribute(Attribute, int),
isWidthGrowable(),
isHeightGrowable()public void setFormInfo(Container.FormInfo formInfo)
public Node locateChildByClass(int eChildTag, int nIndex)
locateChildByClass in class NodeCopyright © 2010 - 2020 Adobe. All Rights Reserved