Package com.adobe.xfa
Class XMLMultiSelectNode
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.Node
-
- com.adobe.xfa.Element
-
- com.adobe.xfa.ProtoableNode
-
- com.adobe.xfa.XMLMultiSelectNode
-
- All Implemented Interfaces:
Peer
public final class XMLMultiSelectNode extends ProtoableNode
-
-
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 XMLMultiSelectNode(Element parent, Node prevSibling)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(java.lang.String sItem, java.lang.String sItemsName)
Add an item under the top element for this nodevoid
clearValues()
Clear items under the top element for this node.ProtoableNode
createProto(Element pParent, boolean bFull)
void
getDeltas(Element delta, XFAList list)
Gets a collection of deltas to restore.ScriptTable
getScriptTable()
java.lang.String
getValue(boolean bAsFragment, boolean bSuppressPreamble)
Get the pcData for this node.void
getValues(java.util.List<java.lang.String> oSelectionList)
Get the pcData for this node as a list of selected items.void
getValuesFromDom(java.util.List<java.lang.String> xmlTextValues, Node oDomNode, boolean bAsFragment, boolean bSuppressPreamble)
void
setValue(java.lang.String sData)
Set the pcdata for this node.void
setValues(java.util.List<java.lang.String> oSelectionList)
Set the pcdata for this node.void
setValuesToDom(java.util.List<java.lang.String> oSelectionList, Element oDomNode)
java.lang.String
toString()
Cast this node to a string value.-
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, setAttribute, setElement, setOneOfChild, setPermsLock, setProto, updateIDValues
-
Methods 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, 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, 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, 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, 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
-
addValue
public void addValue(java.lang.String sItem, java.lang.String sItemsName)
Add an item under the top element for this node- Parameters:
sItem
- a string containing the new item.sItemsName
- a string containing the name for this new item.
-
clearValues
public void clearValues()
Clear items under the top element for this node.
-
createProto
public ProtoableNode createProto(Element pParent, boolean bFull)
- Overrides:
createProto
in classProtoableNode
- See Also:
ProtoableNode.createProto(Element, boolean)
-
getDeltas
public void getDeltas(Element delta, XFAList list)
Description copied from class:Element
Gets a collection of deltas to restore. The locale attribute is always restored immediately, and is not returned in the list of deltas.- Overrides:
getDeltas
in classElement
- Parameters:
delta
- an Element from the form packet.list
- the list of deltas to be populated.- See Also:
Element.getDeltas(Element, XFAList)
-
getScriptTable
public ScriptTable getScriptTable()
- Overrides:
getScriptTable
in classProtoableNode
-
getValue
public java.lang.String getValue(boolean bAsFragment, boolean bSuppressPreamble)
Get the pcData for this node.- Parameters:
bAsFragment
- if true, it returns a String containing an html fragment, false return only the text content.- Returns:
- the pcData as a string.
-
getValues
public void getValues(java.util.List<java.lang.String> oSelectionList)
Get the pcData for this node as a list of selected items.- Parameters:
oSelectionList
- a list of all items
-
getValuesFromDom
public void getValuesFromDom(java.util.List<java.lang.String> xmlTextValues, Node oDomNode, boolean bAsFragment, boolean bSuppressPreamble)
-
setValue
public void setValue(java.lang.String sData)
Set the pcdata for this node.- Parameters:
sData
- a string containing the new pcdata.
-
setValues
public void setValues(java.util.List<java.lang.String> oSelectionList)
Set the pcdata for this node.- Parameters:
oSelectionList
- a jfStorage of strings containing the new values.
-
setValuesToDom
public void setValuesToDom(java.util.List<java.lang.String> oSelectionList, Element oDomNode)
-
toString
public java.lang.String toString()
Cast this node to a string value.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string representing the pcdata.
-
-