Package com.adobe.xfa

Class XFAList

  • All Implemented Interfaces:
    Peer

    public final class XFAList
    extends ListBase
    This class is used to implement script-able list objects that are not node lists. This class combined with ListBase are the equivalent of the C++ XFAListImpl
    • Constructor Detail

      • XFAList

        public XFAList()
        default constructor
      • XFAList

        public XFAList​(java.util.List<? extends Obj> list,
                       boolean bReadOnly)
        Create a new XFAList
        Parameters:
        list - to clone
    • Method Detail

      • append

        public void append​(Obj listObj)
        Description copied from class: ListBase
        Appends an object to the end of this list.
        Specified by:
        append in class ListBase
        Parameters:
        listObj - the node to be appended.
        See Also:
        ListBase.append(Obj)
      • insert

        public void insert​(Obj newNode,
                           Obj refNode)
        Description copied from class: ListBase
        Inserts an object before a specific node in this list.
        Specified by:
        insert in class ListBase
        Parameters:
        newNode - the object to be inserted.
        refNode - the object to insert before.
        See Also:
        ListBase.insert(Obj, Obj)
      • item

        public Obj item​(int index)
        Description copied from class: ListBase
        Gets this list's n'th object.
        Specified by:
        item in class ListBase
        Parameters:
        index - the 0-based index of the node within this list.
        Returns:
        the n'th node.
        See Also:
        ListBase.item(int)
      • length

        public int length()
        Description copied from class: ListBase
        Returns the number of objects in this list.
        Specified by:
        length in class ListBase
        Returns:
        the length of this list.
        See Also:
        ListBase.length()
      • remove

        public void remove​(Obj removeNode)
        Description copied from class: ListBase
        Removes an object from this list.
        Specified by:
        remove in class ListBase
        Parameters:
        removeNode - the object to be removed.
        See Also:
        ListBase.remove(Obj)