|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdbreport.model.AbstractGroup
jdbreport.model.BaseRowGroup
public class BaseRowGroup
| Field Summary |
|---|
| Fields inherited from interface jdbreport.model.Group |
|---|
GROUP_DETAIL, ROW_DETAIL, ROW_FOOTER, ROW_GROUP_FOOTER, ROW_GROUP_HEADER, ROW_NONE, ROW_PAGE_FOOTER, ROW_PAGE_HEADER, ROW_TITLE, typeNames |
| Constructor Summary | |
|---|---|
BaseRowGroup(GroupsGroup parent,
int type)
|
|
| Method Summary | |
|---|---|
void |
addRow(int index,
TableRow row)
|
boolean |
addRow(TableRow row)
|
void |
clear()
Removes all groups and rows from group |
TableRow |
getChild(int index)
|
int |
getChildCount()
|
int |
getChildIndex(Object child)
|
protected List<TableRow> |
getChildList()
|
TableRow |
getFirstGroupRow()
|
RowsGroup |
getGroup(TableRow row)
|
Object |
getHeaderValue()
|
int |
getHeight()
Returns group's height in pixels |
TableRow |
getLastGroupRow()
|
protected TableRow |
getRow(int row)
|
int |
getRowCount()
Returns all TableRow objects in group |
double |
getTotalResult(int func,
int column)
Calculates the grand total by column and all rows |
protected double |
getTotalResult(int func,
Iterator<TableRow> it,
int column)
|
int |
getType()
|
String |
getTypeName()
|
Iterator<TableRow> |
getVisibleRowIterator()
Returns all visible rows |
Iterator<TableRow> |
iterator()
Returns all rows |
TableRow |
remove(int index)
|
boolean |
remove(Object child)
|
void |
updateCellChild(int row,
int column)
|
| Methods inherited from class jdbreport.model.AbstractGroup |
|---|
getIndexPath, getLevel, getParent, getPath, isVisible, rowTypeToString, setParent, setVisible, stringToRowType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jdbreport.model.Group |
|---|
getIndexPath, getLevel, getParent, getPath, isVisible, setVisible |
| Constructor Detail |
|---|
public BaseRowGroup(GroupsGroup parent,
int type)
| Method Detail |
|---|
protected List<TableRow> getChildList()
public int getChildIndex(Object child)
getChildIndex in interface Grouppublic int getChildCount()
getChildCount in interface Grouppublic boolean remove(Object child)
remove in interface Grouppublic TableRow remove(int index)
remove in interface RowsGrouppublic TableRow getFirstGroupRow()
getFirstGroupRow in interface Grouppublic TableRow getLastGroupRow()
public int getType()
getType in interface Grouppublic String getTypeName()
getTypeName in interface Grouppublic Object getHeaderValue()
getHeaderValue in interface RowsGrouppublic int getRowCount()
Group
getRowCount in interface Group
public void addRow(int index,
TableRow row)
addRow in interface RowsGrouppublic boolean addRow(TableRow row)
addRow in interface RowsGrouppublic int getHeight()
Group
getHeight in interface Groupprotected TableRow getRow(int row)
public void updateCellChild(int row,
int column)
public Iterator<TableRow> iterator()
Group
iterator in interface Iterable<TableRow>iterator in interface Grouppublic Iterator<TableRow> getVisibleRowIterator()
Group
getVisibleRowIterator in interface Grouppublic TableRow getChild(int index)
getChild in interface GroupgetChild in interface RowsGrouppublic RowsGroup getGroup(TableRow row)
getGroup in interface Grouppublic void clear()
Group
clear in interface Group
public double getTotalResult(int func,
int column)
Group
getTotalResult in interface Groupfunc - -
the total functions (sum, min, max, avg)column - -
the column's number
protected double getTotalResult(int func,
Iterator<TableRow> it,
int column)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||