Logo Search packages:      
Sourcecode: jclic version File versions  Download package

Element org::jdom::Element::addContent ( int  index,
Collection  c 
) [inline]

Inserts the content in a collection into the content list at the given index. In event of an exception the original content will be unchanged and the objects in the supplied collection will be unaltered.

index location for adding the collection
c collection to insert
the parent on which the method was called
IndexOutOfBoundsException if index is negative or beyond the current number of children
IllegalAddException if any item in the collection already has a parent or is of an inappropriate type.

Definition at line 866 of file Element.java.

References org::jdom::ContentList::addAll(), and content.

        content.addAll(index, c);
        return this;

Generated by  Doxygen 1.6.0   Back to index