Package com.adobe.xfa
Class ListBase
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.ListBase
- All Implemented Interfaces:
Peer
A base class for all lists that are used in the XFA scripting object model.
That includes primarily node lists, but also lists of deltas.
This class combined with XFAList correspond to the C++ XFAListImpl class.
-
Field Summary
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
Modifier and TypeMethodDescriptionabstract voidAppends an object to the end of this list.Returns the atomic name of this element's class.Gets the name of this object's class.abstract voidInserts an object before a specific node in this list.booleanvoidisReadOnly(boolean bReadOnly) abstract Objitem(int n) Gets this list's n'th object.abstract intlength()Returns the number of objects in this list.abstract voidRemoves an object from this list.Methods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer, validateUsage, validateUsageFailedIsFatal
-
Method Details
-
append
Appends an object to the end of this list.- Parameters:
oObj- the node to be appended.
-
getClassAtom
Description copied from class:ObjReturns the atomic name of this element's class.- Overrides:
getClassAtomin classObj- Returns:
- the class name as an interned string.
- See Also:
-
getClassName
Description copied from class:ObjGets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.- Overrides:
getClassNamein classObj- Returns:
- the class name.
- See Also:
-
getScriptTable
- Overrides:
getScriptTablein classObj
-
insert
Inserts an object before a specific node in this list.- Parameters:
newObj- the object to be inserted.refObj- the object to insert before.
-
isReadOnly
public boolean isReadOnly() -
isReadOnly
public void isReadOnly(boolean bReadOnly) -
item
Gets this list's n'th object.- Parameters:
n- the 0-based index of the node within this list.- Returns:
- the n'th node.
-
length
public abstract int length()Returns the number of objects in this list.- Returns:
- the length of this list.
-
remove
Removes an object from this list.- Parameters:
obj- the object to be removed.
-