|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the PivotRange field API.
| Method Summary | |
Item |
addCalculatedItem(java.lang.String name,
java.lang.String formula)
Creates a new calculated item with the given name and formula in US English. |
Item |
addCalculatedItemLocal(java.lang.String name,
java.lang.String formula)
Creates a new calculated item with the given name and formula in user's language. |
void |
applyFieldGroupDef(FieldGroupDef definition)
Applies the specified group definition to this field. |
boolean |
canAddToArea(Area area)
Indicates if this field can be added to the specified area. |
void |
checkCanAddCalculatedItem()
Throws a DataConflictException if calculated items are not allowed. |
void |
checkCanShowDateGroupDialog()
Throws a DataConflictException if the Date Group Dialog is not allowed. |
void |
checkCanShowFieldSettings()
Throws a DataConflictException if the Field Settings Dialog is not allowed. |
void |
checkCanShowItemFilterDlg()
Throws a DataConflictException if the Item Filter Dialog is not allowed. |
void |
checkCanShowNumericGroupDialog()
Throws a SelectionException if the Numeric Group Dialog is not allowed. |
FieldGroupDef |
createFieldGroupDef()
Creates a default grouping definition for this field. |
void |
deleteCalculatedItem(java.lang.String name)
Deletes the calculated item with the given name. |
Item |
getCalculatedItem(int index)
Returns the calculated item in this field at the given index. |
int |
getCalculatedItemCount()
Returns the number of calculated items in this field. |
RowColumnFieldSettings |
getDataFieldSettings()
Returns a field settings object for the data field. |
FieldGroupDef |
getFieldGroupDef()
If this field is grouped, then the definition of the group is returned. |
FieldSettings |
getFieldSettings()
Returns a field settings object for the current field. |
java.lang.String |
getFormula()
Returns the formula for a calculated field in US English. |
java.lang.String |
getFormulaLocal()
Returns the formula for a calculated field in the user's language. |
Item |
getItem(int index)
Returns the Item in this field located at the given index. |
Item |
getItem(java.lang.String name)
Returns the Item in this field with the specified name. |
int |
getItemCount()
Returns the number of items in this field. |
java.lang.String |
getName()
Returns the name of the field. |
PivotRange.EArea |
getOrientation()
Returns the orientation of this field as an enumeration of PivotRange.EArea. |
Item |
getPage()
Returns the name of the page item that this field is filtering on. |
Item[] |
getPageItems()
Returns an array of the items in the field. |
int |
getPosition()
Returns the position of this field in the containing Area. |
java.lang.String |
getSourceName()
Returns the field’s name as it appears in the original source data for this PivotRange report. |
Field |
getSummary(int index)
Returns the summary field located at the given index. |
int |
getSummaryCount()
Returns the number of summary fields in this field. |
SummaryFieldSettings |
getSummaryFieldSettings()
Returns a field settings object for the summary field. |
boolean |
hasCalculatedItem()
Returns the presence of calculated items in this field. |
void |
hide()
Causes this Field to become hidden. |
boolean |
isCalculated()
Indicates if this field is a calculated field. |
boolean |
isDataField()
Indicates if this field is the Data Field. |
boolean |
isDeleted()
Indicates if this field is no longer part of the PivotRange. |
boolean |
isGrouped()
Indicates if this field is grouped. |
boolean |
isInner()
Indicates if this field is the inner field of the Row or Column Area. |
boolean |
isNumeric()
Indicates if this field contains all numeric data. |
boolean |
isSummary()
Indicates if this field is a summary field. |
void |
setDataFieldSettings(RowColumnFieldSettings settings)
Sets the field settings for the data field. |
void |
setFieldSettings(FieldSettings settings)
Sets the field settings for this field. |
void |
setFormula(java.lang.String formula)
Sets the formula for a calculated field in US English. |
void |
setFormulaLocal(java.lang.String formula)
Sets the formula for a calculated field in the user's language. |
void |
setName(java.lang.String name)
Sets the name of the field. |
void |
setPage(Item page)
Sets the page item that this field should filter on. |
void |
setPage(java.lang.String page)
Sets the page item that this field should filter on. |
void |
setPosition(int position)
Sets the position of this field in the containing Area. |
void |
setSummaryFieldSettings(SummaryFieldSettings settings)
Sets the field settings for this field. |
void |
ungroup()
Removes any grouping that has been applied to this field. |
| Methods inherited from interface com.f1j.util.Lockable |
getLock,
releaseLock |
| Method Detail |
public Item addCalculatedItem(java.lang.String name,
java.lang.String formula)
throws DataConflictException,
DuplicateNameException,
InvalidPivotRangeException,
F1Exception
name - The name of the calculated item.formula - The formula for the calculated item.Item
public Item addCalculatedItemLocal(java.lang.String name,
java.lang.String formula)
throws InvalidPivotRangeException,
F1Exception
name - The name of the calculated item.formula - The formula for the calculated item.Item
public void applyFieldGroupDef(FieldGroupDef definition)
throws InvalidPivotRangeException,
DataConflictException,
SelectionException,
F1Exception
definition - The group definition for this field.FieldGroupDefpublic boolean canAddToArea(Area area)
area - The desired area for adding the field.
public void checkCanAddCalculatedItem()
throws DataConflictException,
InvalidPivotRangeException,
F1Exception
public void checkCanShowDateGroupDialog()
throws InvalidPivotRangeException,
F1Exception
public void checkCanShowFieldSettings()
throws InvalidPivotRangeException,
F1Exception
public void checkCanShowItemFilterDlg()
throws InvalidPivotRangeException,
F1Exception
public void checkCanShowNumericGroupDialog()
throws InvalidPivotRangeException,
F1Exception
public FieldGroupDef createFieldGroupDef()
throws InvalidPivotRangeException,
F1Exception
FieldGroupDef
public void deleteCalculatedItem(java.lang.String name)
throws InvalidPivotRangeException,
F1Exception
name - The name of the calculated item.Itempublic Item getCalculatedItem(int index)
Itempublic int getCalculatedItemCount()
Itempublic boolean hasCalculatedItem()
Itempublic RowColumnFieldSettings getDataFieldSettings()
RowColumnFieldSettingspublic FieldGroupDef getFieldGroupDef()
FieldGroupDefpublic FieldSettings getFieldSettings()
FieldSettingspublic java.lang.String getFormula()
public java.lang.String getFormulaLocal()
public Item getItem(int index)
throws com.f1j.util.InvalidIndexException,
F1Exception
index - The index of the desired item within this field.Itempublic Item getItem(java.lang.String name)
name - The name of the desired item within this field.Itempublic int getItemCount()
Itempublic java.lang.String getName()
public PivotRange.EArea getOrientation()
PivotRange.EArea
public Item getPage()
throws DataConflictException,
F1Exception
Item
public Item[] getPageItems()
throws DataConflictException,
F1Exception
Itempublic int getPosition()
Areapublic java.lang.String getSourceName()
public Field getSummary(int index)
throws DataConflictException,
com.f1j.util.InvalidIndexException,
F1Exception
index - The index of the desired summary in the data field.Itempublic int getSummaryCount()
Itempublic SummaryFieldSettings getSummaryFieldSettings()
SummaryFieldSettings
public void hide()
throws AccessDeniedException,
InvalidPivotRangeException,
SelectionException,
F1Exception
public boolean isCalculated()
true = if field is a calculated field.public boolean isDataField()
true = if field is data field.public boolean isDeleted()
true if the field is no longer part of the PivotRange.public boolean isGrouped()
true = if field is grouped.public boolean isInner()
true = if field is inner field.public boolean isNumeric()
true = if field contains numeric data.public boolean isSummary()
true = if field is a summary.
public void setDataFieldSettings(RowColumnFieldSettings settings)
throws DataConflictException,
InvalidPivotRangeException,
F1Exception
settings - Field settings object for this field.RowColumnFieldSettings
public void setFieldSettings(FieldSettings settings)
throws InvalidPivotRangeException,
F1Exception
settings - Field settings object for this field.FieldSettings
public void setFormula(java.lang.String formula)
throws AccessDeniedException,
DataConflictException,
DuplicateNameException,
InvalidPivotRangeException,
F1Exception
formula - The formula to use in the calculated field.
public void setFormulaLocal(java.lang.String formula)
throws AccessDeniedException,
DataConflictException,
DuplicateNameException,
InvalidPivotRangeException,
F1Exception
formula - The formula to use in the calculated field.
public void setName(java.lang.String name)
throws InvalidPivotRangeException,
com.f1j.ss.pivot.InvalidNameException,
DuplicateNameException,
F1Exception
name - The name of the field.
public void setPage(java.lang.String page)
throws InvalidPivotRangeException,
DataConflictException,
F1Exception
page - The name of the item on which to filter.
public void setPage(Item page)
throws InvalidPivotRangeException,
DataConflictException,
F1Exception
page - The item on which to filter.Item
public void setPosition(int position)
throws AccessDeniedException,
InvalidPivotRangeException,
DataConflictException,
SelectionException,
F1Exception
position - The position of field in the containing Area.Area
public void setSummaryFieldSettings(SummaryFieldSettings settings)
throws InvalidPivotRangeException,
F1Exception
settings - Field settings object for this field.SummaryFieldSettings
public void ungroup()
throws F1Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||