Package com.adobe.xfa
Class TextNode
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Chars
com.adobe.xfa.TextNode
- All Implemented Interfaces:
Peer
- Direct Known Subclasses:
SVGTextData
A class to represent the textual content of an XFA element in the DOM.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger -
Field Summary
Fields 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 TypeMethodDescriptioncreateProto(Element oParent, String text, boolean bFull) Creates a proto'ed TextNode.voidThis is logically the equivalent ofElement.getDeltas(Element, XFAList), but it does not override it because TextNode does not derive from Element in XFA4J.getValue()Gets this node's text value.booleanIs this TextNode here as a result of a fragment relationship?voidisFragment(boolean bFragment) Set the fragment state of this nodevoidmakeNonDefault(boolean bRecursive) Mark this element to indicate it is not a default propertyvoidGets this node's text value.Methods inherited from class com.adobe.xfa.Chars
getData, getName, getText, isLeaf, isXMLSpace, isXMLSpace, postSave, preSave, serialize, setScriptProperty, setTextMethods inherited from class com.adobe.xfa.Node
assignNode, checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getAll, getFirstXFAChild, getFirstXMLChild, getFirstXMLChildElement, getIndex, getLastXMLChild, getLocked, getModel, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getNodes, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getProperty, getProperty, getPropName, getSibling, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isContainer, isDefault, isDirty, isMapped, isPermsLockSet, isPropertySpecified, isSpecified, isTransient, isTransient, isTransparent, locateChildByClass, locateChildByName, logValueChangeHelper, makeDefault, notifyPeers, peekOneOfChild, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setName, setPermsLock, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFatalMethods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassName, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer
-
Constructor Details
-
TextNode
Instantiates a text node with the given text.- Parameters:
parent- the node's parent, if any.prevSibling- the node's previous sibling, if any.text- the node's text.
-
TextNode
Instantiates a text node.- Parameters:
parent- the node's parent, if any.prevSibling- the node's previous sibling, if any.text- the char array that contains our text.start- offset into the char array to start at.length- the number of characters to take.
-
-
Method Details
-
clone
-
createProto
Creates a proto'ed TextNode. Modeled on Protoable.createProto(). -
getDeltas
This is logically the equivalent ofElement.getDeltas(Element, XFAList), but it does not override it because TextNode does not derive from Element in XFA4J.- See Also:
-
getScriptTable
- Overrides:
getScriptTablein classNode
-
getValue
Gets this node's text value.- Returns:
- the text value.
-
setValue
Gets this node's text value.- Parameters:
value- the text value.
-
isFragment
public boolean isFragment()Is this TextNode here as a result of a fragment relationship?- Returns:
- fragment state
-
isFragment
public void isFragment(boolean bFragment) Set the fragment state of this node- Parameters:
bFragment- the fragment state
-
makeNonDefault
public void makeNonDefault(boolean bRecursive) Description copied from class:NodeMark this element to indicate it is not a default property- Overrides:
makeNonDefaultin classNode- See Also:
-