Class Field
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.Field
- All Implemented Interfaces:
Peer
- Direct Known Subclasses:
FormField
A class to represent the XFA
field object. A field describes a
container capable of capturing and presenting data content.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.adobe.xfa.template.containers.Container
Container.ChangeLogger, Container.FormInfo, Container.ValidationStateNested 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, CREATEACTIONFields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandeleteItem(int nIndex) Delete an item at an indexvoidbooleangetAttribute(int eTag, boolean bPeek, boolean bValidate) Gets this element's attribute whose attribute tag is given.Gets the formatted value for this field.voidgetItemLists(boolean bPeek, Field.ItemPair items, boolean bEnforceMultiColumn) Get the display and save listsGet the neutral value of this fieldgetNodes()Gets this element's list of children.Get the off value of this fieldGet the on value of this fieldGets the raw value for this field.booleanbooleanReturn whether the container supports connect i.e.booleanReturns whether or not this container support growable heights.booleanReturn 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.resolveAndEnumerateChildren(boolean bAllProperties, boolean bFirstDefaultOnly) Construct a list of element-based properties and children.voidsetFormattedValue(String sValue) Set the formatted value for this field.voidsetIsNull(boolean bNull, boolean bNotify) Set this node to contain a null value.voidsetOn(boolean bOn) Set whether or not this container is 'on' in its ExclGroupvoidsetRawValue(String sString) Set the raw value for this field, no formatting.Methods inherited from class com.adobe.xfa.template.containers.Container
getConnectNode, getErrorText, getFormInfo, getInvalidObjects, getRuntimeAccess, getRuntimePresence, getValidationState, isContainer, isHeightGrowable, isWidthGrowable, locateChildByClass, setAttribute, setErrorText, setFormInfo, setValidationStateMethods 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, updateIDValuesMethods inherited from class com.adobe.xfa.Element
appendChild, 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, 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, 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, updateFromPeerMethods 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, validateUsageFailedIsFatalMethods 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
-
Constructor Details
-
Field
Instantiates a field container.- Parameters:
parent- the field's parent, if any.prevSibling- the field's previous sibling, if any.
-
-
Method Details
-
clearItems
public void clearItems() -
deleteItem
public boolean deleteItem(int nIndex) Delete an item at an index- Parameters:
nIndex- - the index to delete- Returns:
- true if deleted.
-
execEvent
-
execValidate
public boolean execValidate() -
getAttribute
Description copied from class:ElementGets this element's attribute whose attribute tag is given.To 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.
- Overrides:
getAttributein classContainer- Parameters:
eTag- the tag of the attribute.bPeek- whether to peek at the attribute or not.bValidate- whether to validate the attribute or not.- Returns:
- the attribute.
-
getDataNode
-
getFormattedValue
Gets the formatted value for this field. The returned formatted value will be either- the field's format picture representation, or,
- the field's default locale picture representation, or,
- any representation for works-in-progress.
- Returns:
- the formatted value for this field, or null if the content is null.
-
getItemLists
Get the display and save lists- Parameters:
bPeek- - if TRUE return lists that must not be modifieditems- - a structure holding the bound and display elementsbEnforceMultiColumn- -
-
getNeutralValue
Get the neutral value of this field- Returns:
- String for Neutral value, null if undefined. This method is for checkbutton fields only.
-
getNodes
Description copied from class:ElementGets this element's list of children. -
resolveAndEnumerateChildren
Description copied from class:ElementConstruct a list of element-based properties and children. The list is fully resolved (ie: it will have children from any prototypes in it).- Overrides:
resolveAndEnumerateChildrenin classElement- See Also:
-
getOffValue
Get the off value of this field- Returns:
- The Off value. If none, null This method is for checkbutton fields only.
-
getOnValue
Get the on value of this field- Returns:
- The On value, null if there isn't one. This method is for checkbutton fields only.
-
getRawValue
Gets the raw value for this field. The returned unformatted value will be either- the field's canonical representation, or,
- any representation for works-in-progress.
- Returns:
- the unformatted raw value for this field, or null if the content is null.
-
getScriptTable
- Overrides:
getScriptTablein classContainer
-
hasValidFormattedValue
public boolean hasValidFormattedValue() -
isConnectSupported
public boolean isConnectSupported()Description copied from class:ContainerReturn whether the container supports connect i.e. field, exclGroup or subform- Overrides:
isConnectSupportedin classContainer- Returns:
- true if the container supports connect
- See Also:
-
isHeightGrowSupported
public boolean isHeightGrowSupported()Description copied from class:ContainerReturns 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:
isHeightGrowSupportedin classContainer
-
isWidthGrowSupported
public boolean isWidthGrowSupported()Description copied from class:ContainerReturn 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:
isWidthGrowSupportedin classContainer
-
setFormattedValue
Set the formatted value for this field.- Parameters:
sValue- the formatted value for this field.- Throws:
UnsupportedOperationException- if you try and set the value of a boilerplate content. The given formatted value should be in the either- in the field's format picture representation, or,
- in the field's default locale picture representation, or,
- in any representation for works-in-progress.
-
setIsNull
public void setIsNull(boolean bNull, boolean bNotify) Set this node to contain a null value.- Parameters:
bNull- true if the node contains a null value, false otherwise.
-
setOn
public void setOn(boolean bOn) Set whether or not this container is 'on' in its ExclGroup- Parameters:
bOn- true if this container is 'on', false if the is not 'on'.
-
setRawValue
Set the raw value for this field, no formatting.- Parameters:
sString- the unformatted raw value for this field.- Throws:
UnsupportedOperationException- if you try and set the value of a boilerplate content. The given unformatted value should be in the either- in the field's canonical representation, or,
- in any representation for works-in-progress.
-