jdbreport.model
Class TreeRowGroup
java.lang.Object
jdbreport.model.AbstractGroup
jdbreport.model.TreeRowGroup
- All Implemented Interfaces:
- Iterable<TableRow>, Group, GroupsGroup
- Direct Known Subclasses:
- DetailGroup, RootGroup
public abstract class TreeRowGroup
- extends AbstractGroup
- implements GroupsGroup
- Version:
- 2.0 11.05.2011
- Author:
- Andrey Kholmanskih
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeRowGroup
public TreeRowGroup(GroupsGroup parent)
getGroup
public RowsGroup getGroup(TableRow row)
- Specified by:
getGroup
in interface Group
addGroup
public abstract int addGroup(int index,
Group group)
findGroup
protected Group findGroup(int type)
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface Group
remove
public boolean remove(Object child)
- Specified by:
remove
in interface Group
getRowCount
public int getRowCount()
- Description copied from interface:
Group
- Returns all TableRow objects in group
- Specified by:
getRowCount
in interface Group
- Returns:
- all TableRow objects
getChild
public Group getChild(int index)
- Specified by:
getChild
in interface Group
- Specified by:
getChild
in interface GroupsGroup
getFirstGroupRow
public TableRow getFirstGroupRow()
- Specified by:
getFirstGroupRow
in interface Group
getGroup
public Group getGroup(int type)
- Specified by:
getGroup
in interface GroupsGroup
getHeight
public int getHeight()
- Description copied from interface:
Group
- Returns group's height in pixels
- Specified by:
getHeight
in interface Group
- Returns:
- the group's height in pixels
createRowGroup
protected RowsGroup createRowGroup(int type)
getChildList
protected List<Group> getChildList()
getChildIndex
public int getChildIndex(Object child)
- Specified by:
getChildIndex
in interface Group
iterator
public Iterator<TableRow> iterator()
- Description copied from interface:
Group
- Returns all rows
- Specified by:
iterator
in interface Iterable<TableRow>
- Specified by:
iterator
in interface Group
getVisibleRowIterator
public Iterator<TableRow> getVisibleRowIterator()
- Description copied from interface:
Group
- Returns all visible rows
- Specified by:
getVisibleRowIterator
in interface Group
- Returns:
- all visible rows
getGroupIterator
public Iterator<Group> getGroupIterator()
- Specified by:
getGroupIterator
in interface GroupsGroup
getAllGroupIterator
public Iterator<RowsGroup> getAllGroupIterator()
- Description copied from interface:
GroupsGroup
- Returns all RowsGroup
- Specified by:
getAllGroupIterator
in interface GroupsGroup
- Returns:
- iterator
getTotalResult
public double getTotalResult(int func,
int column)
- Description copied from interface:
Group
- Calculates the grand total by column and all rows
- Specified by:
getTotalResult
in interface Group
- Parameters:
func
- -
the total functions (sum, min, max, avg)column
- -
the column's number
- Returns:
- the grand total by column