|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
this interface defines the PivotRange API.
| Inner Class Summary | |
static class |
PivotRange.EArea
|
static class |
PivotRange.EAutoFormat
|
| Method Summary | |
Field |
addCalculatedField(java.lang.String name,
java.lang.String formula)
Creates a new calculated field with the given name and formula in US English. |
Field |
addCalculatedFieldLocal(java.lang.String name,
java.lang.String formula)
Creates a new calculated field with the given name and formula in user's language. |
PivotRange |
applyDefinition(PivotRangeDef definition)
Applies the specified definition to this PivotRange and returns a reference to a new PivotRange if the definition causes the PivotRange to move to a new sheet. |
void |
checkCanAddCalculatedField()
throws exception if calculated fields are not allowed. |
void |
checkIsValidPivotRange()
Check for valid PivotRange and signals if invalid. |
void |
deleteCalculatedField(java.lang.String name)
Deletes the calculated field with the given name. |
void |
deleteFormula(int index)
Deletes the formula at the specified index. |
void |
deleteFormula(int index,
boolean updatePivotRanges)
Deletes the formula at the specified index. |
Area |
getArea(PivotRange.EArea eArea)
Returns the Area object associated with the specified EArea enumeration. |
PivotRange.EAutoFormat |
getAutoFormat()
Returns which AutoFormat is currently applied. |
Book |
getBook()
Returns the book that contains this PivotRange. |
Range |
getBounds()
Returns the bounds of this PivotRange. |
Field |
getCalculatedField(int index)
Returns the calculated field at the specified index. |
int |
getCalculatedFieldCount()
Returns the number of calculated fields in the PivotRange. |
Field |
getDataField()
Returns the Data Field or null if data field not present. |
PivotRangeDef |
getDefinition()
Returns the definition for this PivotRange. |
Field |
getField(int index)
Returns the Field located at the specified index. |
Field |
getField(java.lang.String name)
Returns the Field with the specified name. |
int |
getFieldCount()
Returns the number of Fields in the PivotRange. |
java.lang.String |
getFormula(int index)
Returns the formula located at the specified index in the user's language. |
int |
getFormulaCount()
Returns the number of formulas in the PivotRange. |
java.lang.String |
getFormulaLocal(int index)
Returns the formula located at the specified index in US English. |
java.lang.String |
getFormulaName(int index)
Returns the name of the formula located at the specified index. |
java.lang.String |
getName()
Returns the name of the PivotRange. |
boolean |
isDrillDownEnabled()
Indicates if detail about summary fields can be shown. |
Sheet |
listFormulas()
Creates a list of calculated PivotRange items and fields on a separate worksheet. |
void |
moveFormula(int currentIndex,
int newIndex)
Moves the specified formula to a new index. |
void |
moveFormula(int currentIndex,
int newIndex,
boolean updatePivotRanges)
Moves the specified formula to a new index. |
void |
refresh()
this will update the PivotRange with the latest information from the data source. |
void |
setAutoFormat(PivotRange.EAutoFormat format)
Updates the PivotRange to use the specified AutoFormat. |
| Methods inherited from interface com.f1j.util.Lockable |
getLock,
releaseLock |
| Method Detail |
public Field addCalculatedField(java.lang.String name,
java.lang.String formula)
throws DataConflictException,
DuplicateNameException,
InvalidPivotRangeException,
F1Exception
name - The name of the calculated field.formula - The formula for the calculated field.Field
public Field addCalculatedFieldLocal(java.lang.String name,
java.lang.String formula)
throws AccessDeniedException,
DataConflictException,
DuplicateNameException,
InvalidPivotRangeException,
F1Exception
name - The name of the calculated field.formula - The formula for the calculated field.Field
public PivotRange applyDefinition(PivotRangeDef definition)
throws DuplicateNameException,
InvalidPivotRangeException,
InvalidArgumentException,
InvalidDataException,
F1Exception
definition - The definition that should be applied
to the PivotRange.PivotRangeDef
public void checkCanAddCalculatedField()
throws InvalidPivotRangeException,
F1Exception
public void checkIsValidPivotRange()
throws InvalidPivotRangeException,
F1Exception
public void deleteCalculatedField(java.lang.String name)
throws InvalidPivotRangeException,
F1Exception
name - The name of the calculated field.Field
public void deleteFormula(int index)
throws InvalidPivotRangeException,
F1Exception
index - Index to formula to be deleted.
the formula is deleted.
public void deleteFormula(int index,
boolean updatePivotRanges)
throws InvalidPivotRangeException,
F1Exception
index - Index to formula to be deleted.updatePivotRanges - true = if wants all related PivotRanges to be updated immediately
upon completion.public Area getArea(PivotRange.EArea eArea)
eArea - An EArea enumeration.Area,
PivotRange.EAreapublic PivotRange.EAutoFormat getAutoFormat()
PivotRange.EAutoFormatpublic Book getBook()
Bookpublic Range getBounds()
Bookpublic Field getCalculatedField(int index)
index - Index to the calculated field.Fieldpublic int getCalculatedFieldCount()
Fieldpublic Field getDataField()
Fieldpublic PivotRangeDef getDefinition()
PivotRangeDefpublic Field getField(int index)
index - Index to the desired Field.Fieldpublic Field getField(java.lang.String name)
name - Name of the desired Field.Fieldpublic int getFieldCount()
Field
public java.lang.String getFormula(int index)
throws InvalidArgumentException,
F1Exception
index - Index to the desired formula.public java.lang.String getFormulaLocal(int index)
index - Index to the desired formula.public int getFormulaCount()
public java.lang.String getFormulaName(int index)
index - Index to the desired formula.public java.lang.String getName()
public boolean isDrillDownEnabled()
true = if can show detail on summary
fields.
public Sheet listFormulas()
throws F1Exception
public void refresh()
throws AccessDeniedException,
DataConflictException,
InvalidDataException,
F1Exception
public void moveFormula(int currentIndex,
int newIndex)
throws InvalidArgumentException,
InvalidPivotRangeException,
F1Exception
currentIndex - Index to the formula to be moved.newIndex - The new location for the specified formula.
public void moveFormula(int currentIndex,
int newIndex,
boolean updatePivotRanges)
throws InvalidArgumentException,
InvalidPivotRangeException,
F1Exception
currentIndex - Index to the formula to be moved.newIndex - The new location for the specified formula.updatePivotRanges - true = if wants all related PivotRanges to be updated upon completion.
public void setAutoFormat(PivotRange.EAutoFormat format)
throws AccessDeniedException,
DataConflictException,
F1Exception
format - The AutoFormat to be applied.PivotRange.EAutoFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||