XFA4J

com.adobe.xfa
Class ListBase

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.ListBase
Direct Known Subclasses:
NodeList

public abstract class ListBase
extends Obj

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.


Method Summary
abstract  void append(Obj oObj)
          Appends an object to the end of this list.
abstract  void insert(Obj newObj, Obj refObj)
          Inserts an object before a specific node in this list.
abstract  Obj item(int n)
          Gets this list's n'th object.
abstract  int length()
          Returns the number of objects in this list.
abstract  void remove(Obj obj)
          Removes an object from this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

append

public abstract void append(Obj oObj)
Appends an object to the end of this list.

Parameters:
oObj - the node to be appended.

insert

public abstract void insert(Obj newObj,
                            Obj refObj)
Inserts an object before a specific node in this list.

Parameters:
newObj - the object to be inserted.
refObj - the object to insert before.

item

public abstract Obj item(int n)
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

public abstract void remove(Obj obj)
Removes an object from this list.

Parameters:
obj - the object to be removed.

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.