|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.totals.OLAPTotalsSelectorAdapter
public class OLAPTotalsSelectorAdapter
Totals Selector adapter for multidimensional data.
Field Summary | |
---|---|
protected boolean |
columnSubtotals
Flag to indicate if the column subtotals have to be applied. |
protected boolean |
expandedTotals
Flag to indicate if the totals are 'expanded'. |
protected int |
percentOfTotalsApplied
An integer indicating the combination of percent of totals/subtotals that is currently applied to the BusinessQuery. |
protected boolean |
rowSubtotals
Flag to indicate if the row subtotals have to be applied. |
protected boolean |
rowTotals
Flag to indicate if the row totals have to be applied. |
java.lang.String |
totalsPosition
Indicates the totals position. |
java.lang.String |
totalsType
Indicates the totals type. |
Fields inherited from class com.sas.dataselectors.totals.BaseTotalsSelectorAdapter |
---|
columnTotals, dataModel, valuesFromDataModel |
Fields inherited from interface com.sas.dataselectors.totals.OLAPTotalsSelectorInterface |
---|
NO_PERCENT_OF_TOTAL_SUBTOTAL, PERCENT_OF_SUBTOTAL_FOR_COLUMNS, PERCENT_OF_SUBTOTAL_FOR_ROWS, PERCENT_OF_TOTAL_FOR_COLUMNS, PERCENT_OF_TOTAL_FOR_ROWS |
Fields inherited from interface com.sas.dataselectors.totals.TotalsSelectorInterface |
---|
BOTTOM, COLUMN_SUBTOTALS, COLUMN_TOTALS, EXPANDED_TOTALS, NO_COLUMN_SUBTOTALS, NO_COLUMN_TOTALS, NO_EXPANDED_TOTALS, NO_ROW_SUBTOTALS, NO_ROW_TOTALS, ROW_SUBTOTALS, ROW_TOTALS, TOP, UNFILTERED_TOTALS, VISUAL_TOTALS |
Constructor Summary | |
---|---|
OLAPTotalsSelectorAdapter()
|
Method Summary | |
---|---|
boolean |
columnSubtotals()
Returns true if the column subtotals must be applyed, false otherwise. |
void |
columnSubtotals(boolean columnSubtotals)
Sets if the column subtotals must be applyed. |
int |
getAppliedPercentOfTotals()
Returns an integer indicating what combination of percent of totals/subtotals is currently applied to the BusinessQuery. |
java.lang.String |
getTotalsPosition()
Returns the totals position. |
java.lang.String |
getTotalsType()
Returns the totals type. |
boolean |
isExpandedTotals()
Returns true if the totals are expanded, false otherwise. |
boolean |
isGoingToRemovePercentOfTotal()
Returns true if some applied percent of totals/subtotals are going to be removed because the corresponding totals/subtotals are going to be turned off, flase otherwise |
boolean |
rowSubtotals()
Returns true if the row subtotals must be applied, false otherwise. |
void |
rowSubtotals(boolean rowSubtotals)
Sets if the row subtotals must be applyed. |
boolean |
rowTotals()
Returns true if the row totals must be applyed, false otherwise. |
void |
rowTotals(boolean rowTotals)
Sets if the row totals must be applyed. |
void |
setExpandedTotals(boolean expanded)
Sets if the totals are expanded. |
void |
setTotalsPosition(java.lang.String position)
Sets the totals position. |
void |
setTotalsType(java.lang.String type)
Sets the totals type. |
Methods inherited from class com.sas.dataselectors.totals.BaseTotalsSelectorAdapter |
---|
columnTotals, columnTotals, dataModel, dataModel, hasSummarizeableItems, valuesFromDataModel, valuesFromDataModel |
Methods inherited from interface com.sas.dataselectors.totals.TotalsSelectorInterface |
---|
columnTotals, columnTotals, hasSummarizeableItems, valuesFromDataModel, valuesFromDataModel |
Field Detail |
---|
protected boolean rowSubtotals
protected boolean rowTotals
protected boolean columnSubtotals
public java.lang.String totalsType
TotalsSelectorInterface.UNFILTERED_TOTALS
,
TotalsSelectorInterface.VISUAL_TOTALS
public java.lang.String totalsPosition
TotalsSelectorInterface.TOP
,
TotalsSelectorInterface.BOTTOM
protected boolean expandedTotals
protected int percentOfTotalsApplied
OLAPTotalsSelectorInterface.getAppliedPercentOfTotals()
Constructor Detail |
---|
public OLAPTotalsSelectorAdapter()
Method Detail |
---|
public boolean rowSubtotals()
OLAPTotalsSelectorInterface
rowSubtotals
in interface OLAPTotalsSelectorInterface
public void rowSubtotals(boolean rowSubtotals)
OLAPTotalsSelectorInterface
rowSubtotals
in interface OLAPTotalsSelectorInterface
rowSubtotals
- true if the row subtotals must be applyed, false otherwise.public boolean rowTotals()
OLAPTotalsSelectorInterface
rowTotals
in interface OLAPTotalsSelectorInterface
public void rowTotals(boolean rowTotals)
OLAPTotalsSelectorInterface
rowTotals
in interface OLAPTotalsSelectorInterface
rowTotals
- true if the row totals must be applyed, false otherwise.public boolean columnSubtotals()
OLAPTotalsSelectorInterface
columnSubtotals
in interface OLAPTotalsSelectorInterface
public void columnSubtotals(boolean columnSubtotals)
OLAPTotalsSelectorInterface
columnSubtotals
in interface OLAPTotalsSelectorInterface
columnSubtotals
- true if the column subtotals must be applyed, false otherwise.public boolean isExpandedTotals()
OLAPTotalsSelectorInterface
isExpandedTotals
in interface OLAPTotalsSelectorInterface
public void setExpandedTotals(boolean expanded)
OLAPTotalsSelectorInterface
setExpandedTotals
in interface OLAPTotalsSelectorInterface
expanded
- true if the totals are expanded, false otherwise.public java.lang.String getTotalsPosition()
OLAPTotalsSelectorInterface
getTotalsPosition
in interface OLAPTotalsSelectorInterface
TotalsSelectorInterface.TOP
,
TotalsSelectorInterface.BOTTOM
public void setTotalsPosition(java.lang.String position)
OLAPTotalsSelectorInterface
setTotalsPosition
in interface OLAPTotalsSelectorInterface
position
- the totals position.
The valid values are in the 'see' section. No position is set if an invalid value is received.TotalsSelectorInterface.TOP
,
TotalsSelectorInterface.BOTTOM
public java.lang.String getTotalsType()
OLAPTotalsSelectorInterface
getTotalsType
in interface OLAPTotalsSelectorInterface
TotalsSelectorInterface.UNFILTERED_TOTALS
,
TotalsSelectorInterface.VISUAL_TOTALS
public void setTotalsType(java.lang.String type)
OLAPTotalsSelectorInterface
setTotalsType
in interface OLAPTotalsSelectorInterface
TotalsSelectorInterface.UNFILTERED_TOTALS
,
TotalsSelectorInterface.VISUAL_TOTALS
public int getAppliedPercentOfTotals()
OLAPTotalsSelectorInterface
getAppliedPercentOfTotals
in interface OLAPTotalsSelectorInterface
0 (0000) no percent of totals/subtotals is applied
1 (0001) percent of totals for columns is applied
2 (0010) percent of subtotals for columns is applied
3 (0011) percent of subtotals for columns and percent of totals for columns are applied
4 (0100) percent of totals for rows is applied
5 (0101) percent of totals for rows and percent of totals for columns are applied
6 (0110) percent of totals for rows and percent of subtotals for columns are applied
7 (0111) percent of totals for rows and percent of subtotals for columns and percent of totals for columns are applied
8 (1000) percent of subtotals for rows is applied
9 (1001) percent of subtotals for rows and percent of totals for columns are applied
10 (1010) percent of subtotals for rows and percent of subtotals for columns are applied
11 (1011) percent of subtotals for rows and percent of subtotals for columns and percent of totals for columns are applied
12 (1100) percent of subtotals for rows and percent of totals for rows are applied
13 (1101) percent of subtotals for rows and percent of totals for rows and percent of totals for columns are applied
14 (1110) percent of subtotals for rows and percent of totals for rows and percent of subtotals for columns are applied
15 (1111) percent of subtotals for rows percent of totals for rows and percent of subtotals for columns and percent of totals for columns are applied
public boolean isGoingToRemovePercentOfTotal()
OLAPTotalsSelectorInterface
isGoingToRemovePercentOfTotal
in interface OLAPTotalsSelectorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |