|
||||||||||
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 Group
public int getChildCount()
getChildCount
in interface Group
public boolean remove(Object child)
remove
in interface Group
public TableRow remove(int index)
remove
in interface RowsGroup
public TableRow getFirstGroupRow()
getFirstGroupRow
in interface Group
public TableRow getLastGroupRow()
public int getType()
getType
in interface Group
public String getTypeName()
getTypeName
in interface Group
public Object getHeaderValue()
getHeaderValue
in interface RowsGroup
public int getRowCount()
Group
getRowCount
in interface Group
public void addRow(int index, TableRow row)
addRow
in interface RowsGroup
public boolean addRow(TableRow row)
addRow
in interface RowsGroup
public int getHeight()
Group
getHeight
in interface Group
protected TableRow getRow(int row)
public void updateCellChild(int row, int column)
public Iterator<TableRow> iterator()
Group
iterator
in interface Iterable<TableRow>
iterator
in interface Group
public Iterator<TableRow> getVisibleRowIterator()
Group
getVisibleRowIterator
in interface Group
public TableRow getChild(int index)
getChild
in interface Group
getChild
in interface RowsGroup
public RowsGroup getGroup(TableRow row)
getGroup
in interface Group
public void clear()
Group
clear
in interface Group
public double getTotalResult(int func, int column)
Group
getTotalResult
in interface Group
func
- -
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 |