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
public class TextNode extends Chars
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, 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 Node
clone(Element parent)
TextNode
createProto(Element oParent, java.lang.String text, boolean bFull)
Creates a proto'ed TextNode.void
getDeltas(TextNode delta, XFAList list)
This is logically the equivalent ofElement.getDeltas(Element, XFAList)
, but it does not override it because TextNode does not derive from Element in XFA4J.ScriptTable
getScriptTable()
java.lang.String
getValue()
Gets this node's text value.boolean
isFragment()
Is this TextNode here as a result of a fragment relationship?void
isFragment(boolean bFragment)
Set the fragment state of this nodevoid
makeNonDefault(boolean bRecursive)
Mark this element to indicate it is not a default propertyvoid
setValue(java.lang.String value, boolean bNotify, boolean bDefault)
Gets this node's text value.-
Methods inherited from class com.adobe.xfa.Chars
getData, getName, getText, isLeaf, isXMLSpace, isXMLSpace, postSave, preSave, serialize, setScriptProperty, setText
-
Methods 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, validateUsageFailedIsFatal
-
Methods 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 Detail
-
TextNode
public TextNode(Element parent, Node prevSibling, java.lang.String text)
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
public TextNode(Element parent, Node prevSibling, char[] text, int start, int length)
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 Detail
-
createProto
public TextNode createProto(Element oParent, java.lang.String text, boolean bFull)
Creates a proto'ed TextNode. Modeled on Protoable.createProto().
-
getDeltas
public void getDeltas(TextNode delta, XFAList list)
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:
Element.getDeltas(Element, XFAList)
-
getScriptTable
public ScriptTable getScriptTable()
- Overrides:
getScriptTable
in classNode
-
getValue
public java.lang.String getValue()
Gets this node's text value.- Returns:
- the text value.
-
setValue
public void setValue(java.lang.String value, boolean bNotify, boolean bDefault)
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:Node
Mark this element to indicate it is not a default property- Overrides:
makeNonDefault
in classNode
- See Also:
Node.makeNonDefault(boolean)
-
-