|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines a range for a PivotRange. You can use this class to act upon areas within a PivotRange.
| Inner Class Summary | |
static class |
Range.EMoveType
Enumeration class for defining types of moves. |
| Method Summary | |
boolean |
canMove(Range.EMoveType move,
Field field)
If this range contains a field title, indicates if the field can be moved as specified. |
boolean |
canShowHideDetail(int row,
int col)
Indicates if the cell can show or hide detail. |
boolean |
containsBlankLine()
Indicates whether this range includes a blank line. |
boolean |
containsDataLine()
Indicates whether this range includes any line of data, including subtotals, grand totals, and blank lines. |
boolean |
containsFieldTitle()
Indicates whether this range includes a field title. |
boolean |
containsGrandTotal()
Indicates whether this range includes a grand total. |
boolean |
containsSubtotal()
Indicates whether this range includes a subtotal. |
Field |
getField()
Returns the field associated with this range. |
Item[] |
getItems(Field field)
Returns the items within this range for the specified field. |
void |
group(Field field)
Group the items within this range for the specified field. |
void |
hide()
Hides PivotRange elements within this range. |
void |
hideDetail(Field field)
Hides detail for the items within this range for the specified field. |
boolean |
isPivotDataSelection()
Indicates that this range includes data from the Data area. |
boolean |
isPivotLabelSelection()
Indicates that this range includes a data label from the Row, Column, or Page area. |
boolean |
isPivotSelection()
Returns true if the range is is a PivotRange selection. |
void |
move(Range.EMoveType move,
Field field)
If this range contains a field title, then moves the field. |
void |
setPivotSelectionType(boolean labels,
boolean data)
Sets the PivotRange selection type for this range. |
void |
showDetail(Field field)
Shows detail for the items of the specified field within this range. |
Sheet |
showDetail(int activeRow,
int activeCol)
Shows detail for the items at the specified cell within this range. |
void |
showInnerDetail(Field field,
Field detailField)
Uses detailField to show detail for the items within this range for the specified field. |
void |
ungroup(Field field)
Ungroups the selected items within this range for the specified field. |
| Method Detail |
public boolean canMove(Range.EMoveType move,
Field field)
throws InvalidPivotRangeException,
F1Exception
move - Indicates how to move the field/item.field - The field to move.move(com.f1j.ss.pivot.Range.EMoveType, com.f1j.ss.pivot.Field),
Field,
Item
public boolean canShowHideDetail(int row,
int col)
row - The row.col - The col.public boolean containsBlankLine()
true = if range contains a blank line.Fieldpublic boolean containsDataLine()
true = if range contains a data line.Fieldpublic boolean containsFieldTitle()
true = if range contains field's title.Fieldpublic boolean containsGrandTotal()
true = if range contains a grand total.Fieldpublic boolean containsSubtotal()
true = if range contains a subtotal.Field
public Field getField()
throws SelectionException,
F1Exception
Field
public Item[] getItems(Field field)
throws SelectionException,
F1Exception
field - The field from which the items should be retrieved.Field
public void group(Field field)
throws InvalidPivotRangeException,
SelectionException,
F1Exception
field - The field to be grouped.Field
public void hide()
throws AccessDeniedException,
InvalidPivotRangeException,
SelectionException,
F1Exception
Field
public void hideDetail(Field field)
throws InvalidPivotRangeException,
SelectionException,
F1Exception
field - The field for which detail should be hidden.Fieldpublic boolean isPivotDataSelection()
setPivotSelectionType(boolean, boolean)public boolean isPivotLabelSelection()
setPivotSelectionType(boolean, boolean)public boolean isPivotSelection()
true if the range is is a PivotRange selection.
public void move(Range.EMoveType move,
Field field)
throws AccessDeniedException,
DataConflictException,
InvalidPivotRangeException,
SelectionException,
F1Exception
move - Indicates how to move the field/item.field - The field to move.canMove(com.f1j.ss.pivot.Range.EMoveType, com.f1j.ss.pivot.Field),
Field,
Item
public void setPivotSelectionType(boolean labels,
boolean data)
throws SelectionException
labels - Specifies whether data labels in the Row, Column, or Page areas are selected.data - Specifies whether data in the the Data area is selected.isPivotDataSelection(),
isPivotLabelSelection()
public void showDetail(Field field)
throws InvalidPivotRangeException,
SelectionException,
F1Exception
field - The field for which detail should be shown.Field
public Sheet showDetail(int activeRow,
int activeCol)
throws InvalidPivotRangeException,
SelectionException,
F1Exception
activeRow - The active row.activeCol - The active column.Field
public void showInnerDetail(Field field,
Field detailField)
throws AccessDeniedException,
DataConflictException,
InvalidPivotRangeException,
SelectionException,
F1Exception
field - The field for which detail should be shown.detailField - The field to use as the detail.Field
public void ungroup(Field field)
throws InvalidPivotRangeException,
SelectionException,
F1Exception
field - The field to ungroup.Field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||