Package com.adobe.xfa.content
Class ImageValue
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.Node
-
- com.adobe.xfa.Element
-
- com.adobe.xfa.ProtoableNode
-
- com.adobe.xfa.content.Content
-
- com.adobe.xfa.content.ImageValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adobe.xfa.Element
Element.DualDomNode, Element.ReplaceContent
-
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ImageValue(Element parent, Node prevSibling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtoableNode
createProto(Element parent, boolean bFull)
Attribute
defaultAttribute(int eTag)
boolean
equals(java.lang.Object object)
Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).boolean
getIsNull()
Determine if this node contains a null value.ScriptTable
getScriptTable()
java.lang.String
getValue()
int
hashCode()
Returns a hash code value for the object.void
setAttribute(Attribute oAttr, int eTag)
Sets an attribute of this element.void
setValue(byte[] pImageBuffer, java.lang.String sContentType)
Set the value for this image
This function will set the value of the #text child to the base64 encoded value of the image.void
setValue(java.lang.String sB64, java.lang.String sContentType)
Set the base64 encoded value for this image
This function will set the value of the #text child to the base64 encoded value of the image.java.lang.String
toString()
Return the value of the content as a string-
Methods inherited from class com.adobe.xfa.content.Content
appendChild, couldBeNull, getStrValue, insertChild, resetPostLoadXML, sameText, setIsNull, setStrValue, setValue
-
Methods inherited from class com.adobe.xfa.ProtoableNode
clone, elementGetAttribute, externalProtoFailed, fetchIDValues, getAttribute, 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, 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, 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, isContainer, 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, 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, locateChildByClass, 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
-
createProto
public ProtoableNode createProto(Element parent, boolean bFull)
- Overrides:
createProto
in classProtoableNode
-
equals
public boolean equals(java.lang.Object object)
Description copied from class:Content
Equals is a helper function that returns whether two Contents are equal (case-sensitive, and considering the null state of both nodes).- Overrides:
equals
in classContent
- Parameters:
object
- the content node to compare.- Returns:
- true if the content nodes are equal.
- See Also:
Content.equals(Object)
-
hashCode
public int hashCode()
Description copied from class:Content
Returns a hash code value for the object. This method is unsupported.
-
getIsNull
public boolean getIsNull()
Description copied from class:Element
Determine if this node contains a null value.
-
getScriptTable
public ScriptTable getScriptTable()
- Overrides:
getScriptTable
in classContent
-
getValue
public java.lang.String getValue()
-
setAttribute
public void setAttribute(Attribute oAttr, int eTag)
Description copied from class:ProtoableNode
Sets an attribute of this element.- Overrides:
setAttribute
in classProtoableNode
- Parameters:
oAttr
- the attribute.eTag
- The XFA tag name of the attribute being set.- See Also:
Element.setAttribute(Attribute, int)
-
setValue
public void setValue(byte[] pImageBuffer, java.lang.String sContentType)
Set the value for this image
This function will set the value of the #text child to the base64 encoded value of the image. It will also set the contentType and tranferEncoding attributes on the image element- Parameters:
pImageBuffer
- - the raw image value.sContentType
- - the content type of the image
-
setValue
public void setValue(java.lang.String sB64, java.lang.String sContentType)
Set the base64 encoded value for this image
This function will set the value of the #text child to the base64 encoded value of the image. It will also set the contentType and tranferEncoding attributes on the image element- Parameters:
sB64
- - base 64 encoded datasContentType
- - the content type of the image
-
-