|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.crystaldecisions.sdk.occa.report.lib.ClonableList
com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
com.crystaldecisions.sdk.occa.report.lib.ReportSDKVectorInternal
com.crystaldecisions.sdk.occa.report.data.Fields
com.crystaldecisions.sdk.occa.report.data.SummaryFields
public class SummaryFields
This object defines a collection of SummaryField objects.
| Method Summary | |
|---|---|
boolean |
add(ISummaryField o)
Appends the specified element to the end of this list. |
void |
add(int index,
ISummaryField element)
Inserts the specified element at the specified position in this list. |
boolean |
addAll(java.util.Collection c)
Appends all of the elements in the specified Collection object to the end of this list, in the order that they
are returned by the specified Collection object's Iterator. |
boolean |
addAll(int index,
java.util.Collection c)
Inserts all of the elements in the specified Collection object into this list, starting at the specified
position. |
void |
clear()
Removes all of the elements from this list. |
java.lang.Object |
clone(boolean deepClone)
|
boolean |
contains(java.lang.Object o)
Returns true if this list contains the specified element. |
boolean |
containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
Copies the object. |
int |
find(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
Searches for a field with a particular name and returns its index. |
ISummaryField |
get(int index)
Returns the element at the specified position in this list. |
IField |
getField(int index)
Returns the field at the specified index. |
boolean |
hasContent(java.lang.Object object)
|
int |
indexOf(java.lang.Object o)
Searches for the first occurrence of the given argument, testing for equality using the equals method |
int |
indexOf(java.lang.Object o,
int index)
Tests the given Object against the specified index for equality using the
equals method. -1 is returned if the element is not found. |
boolean |
isEmpty()
Tests if this list has no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
int |
lastIndexOf(java.lang.Object o)
Returns the index of the last occurrence of the specified object in this list. |
java.util.ListIterator |
listIterator()
Returns an iterator of the elements in this list (in proper sequence). |
java.util.ListIterator |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list. |
ISummaryField |
remove(int index)
Removes the element at the specified position in this list. |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(java.util.Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection c)
Not implemented. |
ISummaryField |
set(int index,
ISummaryField element)
Replaces the element at the specified position in this collection with the specified element. |
int |
size()
Returns the number of elements in this collection. |
java.util.List |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between fromIndex, inclusive, and toIndex,
exclusive. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this list in the correct order. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this list in the correct order. |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.data.Fields |
|---|
createMember, endElement, findField, isOwner, readElement, save, save, saveContents, startElement |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVectorInternal |
|---|
addElement, addEventListener, removeAllElements |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector |
|---|
addNullElement, elementAt, insertElementAt |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList |
|---|
copyTo, findIndexOf |
| Methods inherited from class java.util.ArrayList |
|---|
clone, ensureCapacity, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Method Detail |
|---|
public void add(int index,
ISummaryField element)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
add in interface java.util.Listadd in class ReportSDKVectorInternalindex - The index at which the specified element is to be inserted.element - The element to be inserted.public boolean add(ISummaryField o)
Appends the specified element to the end of this list.
add in interface java.util.Collectionadd in interface java.util.Listadd in class ReportSDKVectorInternalo - The element to be appended to this list.
true if the specified element was added successfully.
public boolean addAll(int index,
java.util.Collection c)
Inserts all of the elements in the specified Collection object into this list, starting at the specified
position. Shifts the element currently at that position (if any) and any subsequent elements to the
right (increases their indices). The new elements will appear in the list in the order that they are
returned by the specified Collection object's iterator.
addAll in interface java.util.ListaddAll in class ReportSDKVectorInternalindex - The index at which to insert the first element from the specified collection.c - The elements to be inserted into this list.
true if the specified elements were added successfully.public boolean addAll(java.util.Collection c)
Appends all of the elements in the specified Collection object to the end of this list, in the order that they
are returned by the specified Collection object's Iterator. The behavior of this
operation is undefined if the specified Collection object is modified while the operation is in
progress. (This implies that the behavior of this call is undefined if the specified Collection object
is this list, and this list is not empty.)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in class ReportSDKVectorInternalc - The elements to be inserted into this list.
true if the specified elements were added successfully.public void clear()
Removes all of the elements from this list. The list will be empty after this call returns.
clear in interface java.util.Collectionclear in interface java.util.Listclear in class ReportSDKVectorInternalpublic java.lang.Object clone(boolean deepClone)
clone in class ClonableListpublic boolean contains(java.lang.Object o)
Returns true if this list contains the specified element.
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in class java.util.ArrayListo - The element whose presence in this List is to be tested.
true if this list contains the specified element.public boolean containsAll(java.util.Collection c)
Returns true if this collection contains all of the elements in the specified collection.
This implementation iterates over the specified Collection object, checking each element returned by the
iterator in turn to see if it's contained in this collection. If all elements are so contained true
is returned, otherwise false.
containsAll in interface java.util.CollectioncontainsAll in interface java.util.ListcontainsAll in class java.util.AbstractCollectionc - The collection to be checked for containment in this collection.
true if this collection contains all of the elements in the specified collection.
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
Copies the object. Note that an instance of SummaryFields
cannot be created as the constructor is not visible. Therefore, a
destObject must be created by cloning another SummaryFields
collection.
copyTo in class ClonableListdestObject - The destination object to copy to as a
SummaryFields object.deepCopy - true to use deep copy,
false to use shallow.
public int find(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
FieldsSearches for a field with a particular name and returns its index. If the item is not found, -1 is returned. The field's display name is used in the search.
find in class FieldsfieldName - The name of field you want to find.displayType - Indicates the form in which fieldName appears. It may be one of the
values in FieldDisplayNameType.locale - The locale of the field.
public ISummaryField get(int index)
Returns the element at the specified position in this list.
get in interface java.util.Listget in class java.util.ArrayListindex - The index of element to return.
public IField getField(int index)
FieldsReturns the field at the specified index.
getField in class Fieldsindex - The index of the desired field.
IField object at the specified index.public boolean hasContent(java.lang.Object object)
hasContent in class ClonableListpublic int indexOf(java.lang.Object o)
Searches for the first occurrence of the given argument, testing for equality using the equals method. -1 is returned if the element is not found.
indexOf in interface java.util.ListindexOf in class java.util.ArrayListo - The object to search for.
public int indexOf(java.lang.Object o,
int index)
Tests the given Object against the specified index for equality using the
equals method. -1 is returned if the element is not found.
o - The Object to compare against.index - The index at which to start searching.
public boolean isEmpty()
Tests if this list has no elements.
isEmpty in interface java.util.CollectionisEmpty in interface java.util.ListisEmpty in class java.util.ArrayListtrue if this list has no elements, false otherwise.public java.util.Iterator iterator()
Returns an iterator over the elements in this list in proper sequence.
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class java.util.AbstractListpublic int lastIndexOf(java.lang.Object o)
Returns the index of the last occurrence of the specified object in this list.
lastIndexOf in interface java.util.ListlastIndexOf in class java.util.ArrayListo - The desired element.
public java.util.ListIterator listIterator()
Returns an iterator of the elements in this list (in proper sequence). This method returns
listIterator(0).
listIterator in interface java.util.ListlistIterator in class java.util.AbstractListpublic java.util.ListIterator listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified
position in the list. The specified index indicates the first element that would be returned by an
initial call to the next method. An initial call to the previous method would return the element with
the specified index minus one.
listIterator in interface java.util.ListlistIterator in class java.util.AbstractListindex - The index of the first element to be returned from the list iterator (by a call to the
nextmethod).
public ISummaryField remove(int index)
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).
remove in interface java.util.Listremove in class ReportSDKVectorInternalindex - The index of the element to removed.
public boolean remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present (optional
operation). More formally, removes an element e such that (o==null ? e==null : o.equals(e)),
if the collection contains one or more such elements. Returns true if the collection contained
the specified element (or equivalently, if the collection changed as a result of the call).
This implementation iterates over the collection looking for the specified element. If it finds the element, it removes the element from the collection using the iterator's remove method.
remove in interface java.util.Collectionremove in interface java.util.Listremove in class ReportSDKVectorInternalo - The element to be removed from this collection, if present.
true if the collection contained the specified element.public boolean removeAll(java.util.Collection c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation).
This implementation iterates over this collection, checking each element returned by the iterator in turn to see if it's contained in the specified collection. If it's so contained, it's removed from this collection with the iterator's remove method.
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in class ReportSDKVectorInternalc - The elements to be removed from this collection.
true if this collection changed as a result of the call.public boolean retainAll(java.util.Collection c)
Not implemented.
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in class ReportSDKVectorInternal
public ISummaryField set(int index,
ISummaryField element)
Replaces the element at the specified position in this collection with the specified element.
set in interface java.util.Listset in class ReportSDKVectorInternalindex - The index of element to replace.element - The element to be stored at the specified position.
public int size()
Returns the number of elements in this collection.
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.ArrayList
public java.util.List subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between fromIndex, inclusive, and toIndex,
exclusive. (If fromIndex and toIndex are equal, the returned list is empty.)
The returned list is backed by this list, so changes in the returned list are reflected in this list,
and vice-versa. The returned list supports all of the optional list operations supported by this list.
subList in interface java.util.ListsubList in class java.util.AbstractListfromIndex - The low endpoint (inclusive) of the sub list.toIndex - The high endpoint (exclusive) of the sub list.
public java.lang.Object[] toArray()
Returns an array containing all of the elements in this list in the correct order.
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.ArrayListpublic java.lang.Object[] toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this list in the correct order. The runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list.
If the list fits in the specified array with room to spare (For example, the array has more elements
than the list), the element in the array immediately following the end of the collection is set to
null. This is useful in determining the length of the list only if the caller knows that
the list does not contain any null elements.
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class java.util.ArrayLista - The array into which the elements of the list are to be stored, if it is big enough; otherwise,
a new array of the same runtime type is allocated for this purpose.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||