|
|||||||||
| 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
public class Fields
This object stores an array of fields. The fields may be one of the following types:
DBField objectFormulaField objectParameterField objectSummaryField objectGroupNameField objectSpecialField object
| Constructor Summary | |
|---|---|
Fields()
|
|
Fields(Fields src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
int |
find(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
Searches for a field with a particular name and returns its index. |
IField |
findField(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
Searches for a field with a particular name in the Fields collection and returns a reference to the field. |
IField |
getField(int index)
Returns the field at the specified index. |
boolean |
isOwner(AncestorLink listAncestor,
java.lang.Object element)
For internal use only. |
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
| Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVectorInternal |
|---|
add, add, addAll, addAll, addElement, addEventListener, clear, remove, remove, removeAll, removeAllElements, retainAll, set |
| 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 |
|---|
clone, copyTo, copyTo, findIndexOf, hasContent |
| Methods inherited from class java.util.ArrayList |
|---|
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, subList |
| Constructor Detail |
|---|
public Fields(Fields src)
public Fields()
| Method Detail |
|---|
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
ClonableList
createMember in class ClonableList
public void endElement(java.lang.String eleName,
java.util.Map objState)
ClonableList
endElement in class ClonableList
public int find(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
Searches 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.
fieldName - 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 IField findField(java.lang.String fieldName,
FieldDisplayNameType displayType,
java.util.Locale locale)
Searches for a field with a particular name in the Fields collection and returns a reference to the field.
Example:
This sample shows how to search the Fields collection for a field with a specific display name and to return its index. The display name property specifies how the name of the field has been formatted. The FieldDisplayNameType provides the different ways a display name can be formatted.
DatabaseController databaseController = clientDoc.getDatabaseController();
IDatabase database = databaseController.getDatabase();
Tables tables = database.getTables();
ITable table = (Table)tables.getTable(0);
Fields fields = table.getDataFields();
IField field = (Field)fields.findField("{Customer.Region}", FieldDisplayNameType.fieldName, java.util.Locale.CANADA);
fieldName - the name of the field you want to finddisplayType - the form in which the fieldName appears as defined by FieldDisplayNameType.locale - the locale of the field as defined by Locale.
IField objectFieldDisplayNameTypepublic IField getField(int index)
Returns the field at the specified index.
index - The index of the desired field.
IField object at the specified index.
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
ClonableList
readElement in class ClonableList
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
ClonableList
save in class ClonableListjava.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
ClonableList
save in class ClonableListjava.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
ClonableList
saveContents in class ClonableListjava.io.IOException
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
ClonableList
startElement in class ClonableList
public boolean isOwner(AncestorLink listAncestor,
java.lang.Object element)
ClonableList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||