jdbreport.model
Class DetailGroup

java.lang.Object
  extended by jdbreport.model.AbstractGroup
      extended by jdbreport.model.TreeRowGroup
          extended by jdbreport.model.DetailGroup
All Implemented Interfaces:
Iterable<TableRow>, Group, GroupsGroup

public class DetailGroup
extends TreeRowGroup

Version:
2.0 11.05.2011
Author:
Andrey Kholmanskih

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
DetailGroup(GroupsGroup parent)
           
 
Method Summary
 Group addGroup(int type)
           
 int addGroup(int index, Group group)
           
 boolean addKey(GroupKey groupKey)
           
 void addRow(int index, TableRow row)
           
 boolean changeGroupKey(KeyComparator keyComparator)
           
 void clear()
          Removes all groups and rows from group
 void clearKeys()
           
 Integer getCurrentRow()
          Number of current row in current group of detailing Current value VAR_ROW.
 Map<String,BufferedDataSet> getDsList()
           
 int getFirstDetailGroup()
           
 RowsGroup getFooterGroup()
           
 RowsGroup getHeaderGroup()
           
 GroupKey getKey(int index)
           
 int getKeyCount()
           
 int getLastDetailGroup()
           
 int getMaxRowCount()
          Returns the maximum number of rows in the group
 int getMinRowCount()
           
 int getType()
           
 String getTypeName()
           
 void incGenRowCount()
           
 void initGroupKey(KeyComparator keyComparator)
           
 boolean isEof()
           
 boolean isRepeateHeader()
           
 boolean maxRowLimit()
          Tests for the maximum number of rows
 boolean minRowLimit()
          Tests for the minimum number of rows
 void replaceDataSet(BufferedDataSet ds)
           
 void setMaxRowCount(int count)
          Sets the maximum number of rows in the group
 void setMinRowCount(int count)
          Sets the minimum number of rows in the group
 void setRepeateHeader(boolean repeate)
           
 void updateDataSet(Map<String,BufferedDataSet> map)
           
 
Methods inherited from class jdbreport.model.TreeRowGroup
createRowGroup, findGroup, getAllGroupIterator, getChild, getChildCount, getChildIndex, getChildList, getFirstGroupRow, getGroup, getGroup, getGroupIterator, getHeight, getRowCount, getTotalResult, getVisibleRowIterator, iterator, remove
 
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

DetailGroup

public DetailGroup(GroupsGroup parent)
Method Detail

isRepeateHeader

public boolean isRepeateHeader()

setRepeateHeader

public void setRepeateHeader(boolean repeate)

addGroup

public Group addGroup(int type)

addGroup

public int addGroup(int index,
                    Group group)
Specified by:
addGroup in class TreeRowGroup

addRow

public void addRow(int index,
                   TableRow row)

addKey

public boolean addKey(GroupKey groupKey)

clearKeys

public void clearKeys()

getKey

public GroupKey getKey(int index)

getKeyCount

public int getKeyCount()

getType

public int getType()

getFirstDetailGroup

public int getFirstDetailGroup()

getLastDetailGroup

public int getLastDetailGroup()

getHeaderGroup

public RowsGroup getHeaderGroup()

getFooterGroup

public RowsGroup getFooterGroup()

isEof

public boolean isEof()

replaceDataSet

public void replaceDataSet(BufferedDataSet ds)
                    throws ReportException
Throws:
ReportException

updateDataSet

public void updateDataSet(Map<String,BufferedDataSet> map)
                   throws ReportException
Throws:
ReportException

getTypeName

public String getTypeName()

changeGroupKey

public boolean changeGroupKey(KeyComparator keyComparator)
                       throws ReportException
Throws:
ReportException

initGroupKey

public void initGroupKey(KeyComparator keyComparator)
                  throws ReportException
Throws:
ReportException

getDsList

public Map<String,BufferedDataSet> getDsList()

clear

public void clear()
Description copied from interface: Group
Removes all groups and rows from group


getCurrentRow

public Integer getCurrentRow()
Number of current row in current group of detailing Current value VAR_ROW.

Returns:
current row
Since:
1.3

incGenRowCount

public void incGenRowCount()
Since:
1.3

getMaxRowCount

public int getMaxRowCount()
Returns the maximum number of rows in the group

Returns:
maximum number of rows
Since:
1.3

setMaxRowCount

public void setMaxRowCount(int count)
Sets the maximum number of rows in the group

Parameters:
count - maximum number of rows
Since:
1.3

getMinRowCount

public int getMinRowCount()
Returns:
minimum number of rows
Since:
1.3

setMinRowCount

public void setMinRowCount(int count)
Sets the minimum number of rows in the group

Parameters:
count -
Since:
1.3

maxRowLimit

public boolean maxRowLimit()
Tests for the maximum number of rows

Returns:
true if the number of rows is equal to or greater than the maximum
Since:
1.3

minRowLimit

public boolean minRowLimit()
Tests for the minimum number of rows

Returns:
true if the number of rows is less than the minimum
Since:
1.3