Class PageArea
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.Node
-
- com.adobe.xfa.Element
-
- com.adobe.xfa.ProtoableNode
-
- com.adobe.xfa.template.containers.Container
-
- com.adobe.xfa.template.containers.PageArea
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adobe.xfa.template.containers.Container
Container.ChangeLogger, Container.FormInfo, Container.ValidationState
-
Nested classes/interfaces inherited from class com.adobe.xfa.Element
Element.DualDomNode, Element.ReplaceContent
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.Element
AttrIsDefault, AttrIsFragment, AttrIsTransient, CREATEACTION
-
Fields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefix
-
Fields inherited from interface com.adobe.xfa.ut.Peer
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
defaultAttribute(int eTag)
int
getContentAreaCount()
Get the number of contentArea children.UnitSpan
getContentAreaHeight(int nCA)
Return the height of the contentArea at given indexContentArea
getContentAreaNode(int nCA)
Get the contentArea child given an index.java.util.List<Node>
getContentAreaNodes()
Returns a list of all the contentArea child nodes.UnitSpan
getContentAreaWidth(int nCA)
Return the width of the contentArea at given indexUnitSpan
getHeight()
Get the height of a pageAreaContentArea
getNextContentAreaNode(ContentArea oCA)
Return the next contentArea specified given a contentAreaEnumAttr
getOrientation()
Get the orientation of a pageAreajava.util.List<Node>
getPageContentNodes()
Access the page content nodes - subforms,fields,draws,areas.UnitSpan
getWidth()
Get the width of a pageAreaboolean
hasPageContent()
Query whether the pageArea has any content children.boolean
isHeightGrowSupported()
Returns whether or not this container support growable heights.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.-
Methods inherited from class com.adobe.xfa.template.containers.Container
getAttribute, getConnectNode, getErrorText, getFormInfo, getInvalidObjects, getRuntimeAccess, getRuntimePresence, getScriptTable, getValidationState, isConnectSupported, isContainer, isHeightGrowable, isWidthGrowable, locateChildByClass, setAttribute, setErrorText, setFormInfo, setValidationState
-
Methods inherited from class com.adobe.xfa.ProtoableNode
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, updateIDValues
-
Methods inherited from class com.adobe.xfa.Element
appendChild, appendChild, appendPI, appendPI, assignNode, clone, connectPeerToDocument, constructKey, constructKeys, copyContent, 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, updateFromPeer
-
Methods inherited from class com.adobe.xfa.Node
checkAncestorPerms, 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, validateUsageFailedIsFatal
-
Methods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassTag, getPeer, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute
-
-
-
-
Method Detail
-
defaultAttribute
public Attribute defaultAttribute(int eTag)
- Overrides:
defaultAttribute
in classElement
-
getContentAreaCount
public int getContentAreaCount()
Get the number of contentArea children.- Returns:
- the number of contentArea children
-
getContentAreaHeight
public UnitSpan getContentAreaHeight(int nCA)
Return the height of the contentArea at given index- Parameters:
nCA
- - the zero based index of contentArea- Returns:
- the height as specified in contentArea
-
getContentAreaNode
public ContentArea getContentAreaNode(int nCA)
Get the contentArea child given an index.- Parameters:
nCA
- - zero based index of child to return- Returns:
- ContentAreanode at given index. A null node is returned if index is out of range.
-
getContentAreaNodes
public java.util.List<Node> getContentAreaNodes()
Returns a list of all the contentArea child nodes.- Returns:
- list of contentArea child nodes
-
getContentAreaWidth
public UnitSpan getContentAreaWidth(int nCA)
Return the width of the contentArea at given index- Parameters:
nCA
- - the zero based index of contentArea- Returns:
- the width as specified in contentArea
-
getHeight
public UnitSpan getHeight()
Get the height of a pageArea- Returns:
- the value of the 'h' attribute
-
getNextContentAreaNode
public ContentArea getNextContentAreaNode(ContentArea oCA)
Return the next contentArea specified given a contentArea
-
getOrientation
public EnumAttr getOrientation()
Get the orientation of a pageArea- Returns:
- the value of the 'orientation' attribute of the medium element, defaults to Portrait.
-
getPageContentNodes
public java.util.List<Node> getPageContentNodes()
Access the page content nodes - subforms,fields,draws,areas.- Returns:
- a list of the page content nodes
-
getWidth
public UnitSpan getWidth()
Get the width of a pageArea- Returns:
- the value of the 'w' attribute
-
hasPageContent
public boolean hasPageContent()
Query whether the pageArea has any content children.- Returns:
- true if it does and false otherwise.
-
isHeightGrowSupported
public boolean isHeightGrowSupported()
Description copied from class:Container
Returns whether or not this container support growable heights. This does not indicate whether the container height is currently growable, just whether it's supported by this container type.- Overrides:
isHeightGrowSupported
in classContainer
-
isWidthGrowSupported
public boolean isWidthGrowSupported()
Description copied from class:Container
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.Comments Helps distinguish - ie text draws supporting growing but arc draws do not.
- Overrides:
isWidthGrowSupported
in classContainer
-
-