|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.crystaldecisions.sdk.occa.report.gridcontent.GridColumnCollection
The GridColumnCollection class provides the ability
to form a collection of GridColumn objects.
The collection can then be used in conjunction with the GridViewer.
| Constructor Summary | |
GridColumnCollection()
|
|
| Method Summary | |
void |
add(GridColumn newGridColumn)
Adds an existing grid column to the GridColumnCollection. |
GridColumn |
add(java.lang.String fieldName)
Adds a new grid column to the GridColumnCollection. |
void |
clear()
Clears the GridColumns in the GridColumnCollection. |
GridColumn |
get(int index)
Returns the GridColumn at the specified index in the collection. |
void |
remove(int index)
Removes the GridColumn identified by the given index
from the collection. |
void |
remove(java.lang.String fieldName)
Removes the GridColumn identified by the given field name
from the collection. |
int |
size()
Returns the size of the collection (in number of columns). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridColumnCollection()
| Method Detail |
public GridColumn add(java.lang.String fieldName)
Adds a new grid column to the GridColumnCollection.
Note:The AddGridColumn method accepts a String representing the Field name of the GridColumn Object to add to the collection. Every GridColumn Object has a FieldName property, the value of which is the String passed to the AddGridColumn method.
fieldName - a String that specifies the name of the
field for the column to be added to the collection
GridColumn objectpublic void add(GridColumn newGridColumn)
Adds an existing grid column to the GridColumnCollection.
newGridColumn - an existing GridColumn object to be
added to the collectionpublic void clear()
Clears the GridColumns in the GridColumnCollection.
public GridColumn get(int index)
Returns the GridColumn at the specified index in the collection.
index - an int that specifies the 0-based index to use to
identify the GridColumn to retrieve
GridColumn objectpublic void remove(java.lang.String fieldName)
Removes the GridColumn identified by the given field name
from the collection.
fieldName - a String that identifies the GridColumn
to be removed from the collection
public void remove(int index)
throws java.lang.IndexOutOfBoundsException
Removes the GridColumn identified by the given index
from the collection.
index - an int that specifies the 0-based index to use
to identify the GridColumn to remove
java.lang.IndexOutOfBoundsException - this exception is thrown if the given index
is out of bounds for the collectionpublic int size()
Returns the size of the collection (in number of columns).
int
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||