Package net.sf.jasperreports.engine.base
Class JRBaseGroup
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseGroup
-
- All Implemented Interfaces:
Serializable,Cloneable,JRChangeEventsSupport,JRCloneable,JRGroup,StoreCloneable<JRBaseGroup>
- Direct Known Subclasses:
JRDesignGroup
public class JRBaseGroup extends Object implements JRGroup, Serializable, JRChangeEventsSupport, StoreCloneable<JRBaseGroup>
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseGroup()protectedJRBaseGroup(JRGroup group, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()JRBaseGroupclone(CloneStore cloneStore)JRVariablegetCountVariable()JRPropertyChangeSupportgetEventSupport()Returns the property change support object for this instance.JRExpressiongetExpression()Gets the expression that defines what records in the group have in common.FooterPositionEnumgetFooterPositionValue()Specifies how the group footer section behaves with regards to its position on the current page.JRSectiongetGroupFooterSection()Gets the footer section created for this group.JRSectiongetGroupHeaderSection()Gets the header section created for this group.intgetMinDetailsToStartFromTop()Gets the minimum number of details to be rendered on the current column, to avoid starting the group on a new column.intgetMinHeightToStartNewPage()Gets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.StringgetName()Gets the group namebooleanisKeepTogether()Gets the flag that signals if the group should be prevented from splitting on first break attempt.booleanisPreventOrphanFooter()Gets the flag that signals if the group footer should be prevented from appearing without a detail at the top of a new page/column.booleanisReprintHeaderOnEachColumn()Gets the flag that signals if the group header should be reprinted at the beginning of each column, in vertically filled reports only.booleanisReprintHeaderOnEachPage()Gets the flag that signals if the group header should be reprinted at the beginning of each page.booleanisResetPageNumber()Gets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.booleanisStartNewColumn()Gets the flag that signals if the group header should be printed always on a new column.booleanisStartNewPage()Gets the flag that signals if the group header should be printed always on a new page.voidsetFooterPosition(FooterPositionEnum footerPositionValue)Specifies the group footer section behavior with regards to its position on the current page.voidsetKeepTogether(boolean keepTogether)Sets the flag that signals if the group should be prevented from splitting on first break attempt.voidsetMinDetailsToStartFromTop(int minDetails)Sets the minimum number of details to be rendered on the current column, to avoid starting the group on a new column.voidsetMinHeightToStartNewPage(int minHeight)Sets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.voidsetPreventOrphanFooter(boolean preventOrphanFooter)Sets the flag that signals if the group should be prevented from appearing without a detail at the top of a new page/column.voidsetReprintHeaderOnEachColumn(boolean isReprint)Sets the flag that signals if the group header should be reprinted at the beginning of each column, in vertically filled reports only.voidsetReprintHeaderOnEachPage(boolean isReprint)Sets the flag that signals if the group header should be reprinted at the beginning of each page.voidsetResetPageNumber(boolean isReset)Sets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.voidsetStartNewColumn(boolean isStart)Sets the flag that signals if the group header should be printed always on a new column.voidsetStartNewPage(boolean isStart)Sets the flag that signals if the group header should be printed always on a new page.
-
-
-
Field Detail
-
PROPERTY_MIN_HEIGHT_TO_START_NEW_PAGE
public static final String PROPERTY_MIN_HEIGHT_TO_START_NEW_PAGE
- See Also:
- Constant Field Values
-
PROPERTY_MIN_DETAILS_TO_START_FROM_TOP
public static final String PROPERTY_MIN_DETAILS_TO_START_FROM_TOP
- See Also:
- Constant Field Values
-
PROPERTY_FOOTER_POSITION
public static final String PROPERTY_FOOTER_POSITION
- See Also:
- Constant Field Values
-
PROPERTY_KEEP_TOGETHER
public static final String PROPERTY_KEEP_TOGETHER
- See Also:
- Constant Field Values
-
PROPERTY_PREVENT_ORPHAN_FOOTER
public static final String PROPERTY_PREVENT_ORPHAN_FOOTER
- See Also:
- Constant Field Values
-
PROPERTY_RESET_PAGE_NUMBER
public static final String PROPERTY_RESET_PAGE_NUMBER
- See Also:
- Constant Field Values
-
PROPERTY_REPRINT_HEADER_ON_EACH_PAGE
public static final String PROPERTY_REPRINT_HEADER_ON_EACH_PAGE
- See Also:
- Constant Field Values
-
PROPERTY_REPRINT_HEADER_ON_EACH_COLUMN
public static final String PROPERTY_REPRINT_HEADER_ON_EACH_COLUMN
- See Also:
- Constant Field Values
-
PROPERTY_START_NEW_COLUMN
public static final String PROPERTY_START_NEW_COLUMN
- See Also:
- Constant Field Values
-
PROPERTY_START_NEW_PAGE
public static final String PROPERTY_START_NEW_PAGE
- See Also:
- Constant Field Values
-
name
protected String name
-
isStartNewColumn
protected boolean isStartNewColumn
-
isStartNewPage
protected boolean isStartNewPage
-
isResetPageNumber
protected boolean isResetPageNumber
-
isReprintHeaderOnEachPage
protected boolean isReprintHeaderOnEachPage
-
isReprintHeaderOnEachColumn
protected boolean isReprintHeaderOnEachColumn
-
minHeightToStartNewPage
protected int minHeightToStartNewPage
-
minDetailsToStartFromTop
protected int minDetailsToStartFromTop
-
footerPositionValue
protected FooterPositionEnum footerPositionValue
-
keepTogether
protected boolean keepTogether
-
preventOrphanFooter
protected boolean preventOrphanFooter
-
expression
protected JRExpression expression
-
groupHeaderSection
protected JRSection groupHeaderSection
-
groupFooterSection
protected JRSection groupFooterSection
-
countVariable
protected JRVariable countVariable
-
-
Constructor Detail
-
JRBaseGroup
protected JRBaseGroup()
-
JRBaseGroup
protected JRBaseGroup(JRGroup group, JRBaseObjectFactory factory)
-
-
Method Detail
-
isStartNewColumn
public boolean isStartNewColumn()
Description copied from interface:JRGroupGets the flag that signals if the group header should be printed always on a new column.- Specified by:
isStartNewColumnin interfaceJRGroup
-
setStartNewColumn
public void setStartNewColumn(boolean isStart)
Description copied from interface:JRGroupSets the flag that signals if the group header should be printed always on a new column.- Specified by:
setStartNewColumnin interfaceJRGroup
-
isStartNewPage
public boolean isStartNewPage()
Description copied from interface:JRGroupGets the flag that signals if the group header should be printed always on a new page.- Specified by:
isStartNewPagein interfaceJRGroup
-
setStartNewPage
public void setStartNewPage(boolean isStart)
Description copied from interface:JRGroupSets the flag that signals if the group header should be printed always on a new page.- Specified by:
setStartNewPagein interfaceJRGroup
-
isResetPageNumber
public boolean isResetPageNumber()
Description copied from interface:JRGroupGets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.- Specified by:
isResetPageNumberin interfaceJRGroup
-
setResetPageNumber
public void setResetPageNumber(boolean isReset)
Description copied from interface:JRGroupSets the flag that signals if the group header should be printed always on a new page, along with the re-initialization of the page number.- Specified by:
setResetPageNumberin interfaceJRGroup
-
isReprintHeaderOnEachPage
public boolean isReprintHeaderOnEachPage()
Description copied from interface:JRGroupGets the flag that signals if the group header should be reprinted at the beginning of each page.- Specified by:
isReprintHeaderOnEachPagein interfaceJRGroup
-
setReprintHeaderOnEachPage
public void setReprintHeaderOnEachPage(boolean isReprint)
Description copied from interface:JRGroupSets the flag that signals if the group header should be reprinted at the beginning of each page.- Specified by:
setReprintHeaderOnEachPagein interfaceJRGroup
-
isReprintHeaderOnEachColumn
public boolean isReprintHeaderOnEachColumn()
Description copied from interface:JRGroupGets the flag that signals if the group header should be reprinted at the beginning of each column, in vertically filled reports only.- Specified by:
isReprintHeaderOnEachColumnin interfaceJRGroup
-
setReprintHeaderOnEachColumn
public void setReprintHeaderOnEachColumn(boolean isReprint)
Description copied from interface:JRGroupSets the flag that signals if the group header should be reprinted at the beginning of each column, in vertically filled reports only.- Specified by:
setReprintHeaderOnEachColumnin interfaceJRGroup
-
getMinHeightToStartNewPage
public int getMinHeightToStartNewPage()
Description copied from interface:JRGroupGets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.- Specified by:
getMinHeightToStartNewPagein interfaceJRGroup
-
setMinHeightToStartNewPage
public void setMinHeightToStartNewPage(int minHeight)
Description copied from interface:JRGroupSets the minimum amount of vertical space needed at the bottom of the column in order to place the group header on the current column.- Specified by:
setMinHeightToStartNewPagein interfaceJRGroup
-
getMinDetailsToStartFromTop
public int getMinDetailsToStartFromTop()
Description copied from interface:JRGroupGets the minimum number of details to be rendered on the current column, to avoid starting the group on a new column.- Specified by:
getMinDetailsToStartFromTopin interfaceJRGroup
-
setMinDetailsToStartFromTop
public void setMinDetailsToStartFromTop(int minDetails)
Description copied from interface:JRGroupSets the minimum number of details to be rendered on the current column, to avoid starting the group on a new column.- Specified by:
setMinDetailsToStartFromTopin interfaceJRGroup
-
getFooterPositionValue
public FooterPositionEnum getFooterPositionValue()
Description copied from interface:JRGroupSpecifies how the group footer section behaves with regards to its position on the current page.- Specified by:
getFooterPositionValuein interfaceJRGroup
-
setFooterPosition
public void setFooterPosition(FooterPositionEnum footerPositionValue)
Description copied from interface:JRGroupSpecifies the group footer section behavior with regards to its position on the current page.- Specified by:
setFooterPositionin interfaceJRGroup
-
isKeepTogether
public boolean isKeepTogether()
Description copied from interface:JRGroupGets the flag that signals if the group should be prevented from splitting on first break attempt.- Specified by:
isKeepTogetherin interfaceJRGroup
-
setKeepTogether
public void setKeepTogether(boolean keepTogether)
Description copied from interface:JRGroupSets the flag that signals if the group should be prevented from splitting on first break attempt.- Specified by:
setKeepTogetherin interfaceJRGroup
-
isPreventOrphanFooter
public boolean isPreventOrphanFooter()
Description copied from interface:JRGroupGets the flag that signals if the group footer should be prevented from appearing without a detail at the top of a new page/column.- Specified by:
isPreventOrphanFooterin interfaceJRGroup
-
setPreventOrphanFooter
public void setPreventOrphanFooter(boolean preventOrphanFooter)
Description copied from interface:JRGroupSets the flag that signals if the group should be prevented from appearing without a detail at the top of a new page/column.- Specified by:
setPreventOrphanFooterin interfaceJRGroup
-
getExpression
public JRExpression getExpression()
Description copied from interface:JRGroupGets the expression that defines what records in the group have in common.- Specified by:
getExpressionin interfaceJRGroup
-
getGroupHeaderSection
public JRSection getGroupHeaderSection()
Description copied from interface:JRGroupGets the header section created for this group.- Specified by:
getGroupHeaderSectionin interfaceJRGroup
-
getGroupFooterSection
public JRSection getGroupFooterSection()
Description copied from interface:JRGroupGets the footer section created for this group.- Specified by:
getGroupFooterSectionin interfaceJRGroup
-
getCountVariable
public JRVariable getCountVariable()
- Specified by:
getCountVariablein interfaceJRGroup
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
public JRBaseGroup clone(CloneStore cloneStore)
- Specified by:
clonein interfaceStoreCloneable<JRBaseGroup>
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
-