|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.table.ReportGroup
public class ReportGroup
Name: ReportGroup
Description: A class describing and managing report groups.
| Constructor Summary | |
|---|---|
ReportGroup(String columnName)
Constructs a ReportGroup instance with specific attributes. |
|
ReportGroup(String columnName,
boolean viewTitleRow,
boolean resultsInTitleRow,
boolean hideAtSucceedingRows,
boolean startNewPage)
Constructs a ReportGroup instance with specific attributes. |
|
ReportGroup(String columnName,
boolean viewTitleRow,
boolean resultsInTitleRow,
boolean hideAtSucceedingRows,
boolean startNewPage,
boolean keepTogether)
Constructs a ReportGroup instance with specific attributes. |
|
| Method Summary | |
|---|---|
protected void |
applyFunction(int columnId,
FunctionExecutor executor,
Object operand)
Applies the given report function executor on the given column. |
protected Object |
clone()
|
int |
getColumnIdx()
Getter method for the the property columnIdx. |
String |
getColumnName()
Gets the column name. |
double |
getGroupResult(int columnId)
Getter method for the the property groupResult. |
double[] |
getGroupResults()
Getter method for the the property groupResult. |
protected Row |
getTitleRow()
Getter method for the the property titleRow. |
protected void |
init(ReportTable report)
Initializes the report group. |
boolean |
isEnforceResultRow()
Getter method for the the property enforceResultRow. |
protected boolean |
isFunctionsApplied()
Getter method for the the property functionsApplied. |
protected boolean |
isFunctionsApplied(int columnId)
Getter method for the the property functionsApplied. |
boolean |
isHideAtSucceedingRows()
Getter method for the the property hideAtSucceedingRows. |
boolean |
isKeepTogether()
Getter method for the the property keepTogether. |
boolean |
isResultsInTitleRow()
Getter method for the the property resultsInTitleRow. |
boolean |
isStartNewPage()
Getter method for the the property startNewPage. |
boolean |
isViewTitleRow()
Getter method for the the property viewTitleRow. |
protected void |
reset()
Resets the report group. |
protected ReportGroup |
setColumnIdx(int columnIdx)
Setter method for the the property columnIdx. |
ReportGroup |
setEnforceResultRow(boolean enforceResultRow)
Setter method for the the property enforceResultRow. |
ReportGroup |
setHideAtSucceedingRows(boolean hideAtSucceedingRows)
Setter method for the the property hideAtSucceedingRows. |
ReportGroup |
setKeepTogether(boolean keepTogether)
Setter method for the the property keepTogether. |
ReportGroup |
setResultsInTitleRow(boolean resultsInTitleRow)
Setter method for the the property resultsInTitleRow. |
ReportGroup |
setStartNewPage(boolean startNewPage)
Setter method for the the property startNewPage. |
protected void |
setTitleRow(Row titleRow)
Setter method for the the property titleRow. |
ReportGroup |
setViewTitleRow(boolean viewTitleRow)
Setter method for the the property viewTitleRow. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReportGroup(String columnName)
columnName - The column name.
public ReportGroup(String columnName,
boolean viewTitleRow,
boolean resultsInTitleRow,
boolean hideAtSucceedingRows,
boolean startNewPage)
columnName - The column name.viewTitleRow - The view title row flag.resultsInTitleRow - The results in title row flag.hideAtSucceedingRows - Tells whether or not to hide the grouped column at
succeeding rows. If true, only the first row is shown the succeeding ones are
hidden.startNewPage - Tells whether or not to start a new page if a change of the
value at the grouping column is detected.
public ReportGroup(String columnName,
boolean viewTitleRow,
boolean resultsInTitleRow,
boolean hideAtSucceedingRows,
boolean startNewPage,
boolean keepTogether)
columnName - The column name.viewTitleRow - The view title row flag.resultsInTitleRow - The results in title row flag.hideAtSucceedingRows - Tells whether or not to hide the grouped column at
succeeding rows. If true, only the first row is shown the succeeding ones are
hidden.startNewPage - Tells whether or not to start a new page if a change of the
value at the grouping column is detected.keepTogether - Tells whether or not to try to keep the grouped rows
together on one page.| Method Detail |
|---|
public String getColumnName()
public boolean isViewTitleRow()
public ReportGroup setViewTitleRow(boolean viewTitleRow)
viewTitleRow - The value to set for the property viewTitleRow.
public boolean isResultsInTitleRow()
public ReportGroup setResultsInTitleRow(boolean resultsInTitleRow)
resultsInTitleRow - The value to set for the property resultsInTitleRow.
public boolean isHideAtSucceedingRows()
public ReportGroup setHideAtSucceedingRows(boolean hideAtSucceedingRows)
hideAtSucceedingRows - The value to set for the property hideAtSucceedingRows.
public boolean isStartNewPage()
public ReportGroup setStartNewPage(boolean startNewPage)
startNewPage - The value to set for the property startNewPage.
public boolean isKeepTogether()
public ReportGroup setKeepTogether(boolean keepTogether)
keepTogether - The value to set for the property keepTogether.
public boolean isEnforceResultRow()
public ReportGroup setEnforceResultRow(boolean enforceResultRow)
enforceResultRow - The value to set for the property enforceResultRow.
public int getColumnIdx()
protected ReportGroup setColumnIdx(int columnIdx)
columnIdx - The value to set for the property columnIdx.
public double[] getGroupResults()
public double getGroupResult(int columnId)
columnId - The column ID for which to retrieve the result.
protected boolean isFunctionsApplied()
protected boolean isFunctionsApplied(int columnId)
columnId - The column ID for which to set the result.
protected void applyFunction(int columnId,
FunctionExecutor executor,
Object operand)
throws TypeMismatchException
columnId - The column ID for which to set the result.executor - The report function executor to apply.operand - The value to set for the property groupResult.
TypeMismatchException - In case the given operand type was invalid.protected Row getTitleRow()
protected void setTitleRow(Row titleRow)
titleRow - The value to set for the property titleRow.protected void init(ReportTable report)
report - The report to set.protected void reset()
protected Object clone()
clone in class ObjectObject.clone()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||