com.jrefinery.report
Class GroupHeader

java.lang.Object
  |
  +--com.jrefinery.report.Element
        |
        +--com.jrefinery.report.Band
              |
              +--com.jrefinery.report.GroupHeader
All Implemented Interfaces:
java.lang.Cloneable, DataTarget, java.io.Serializable

public class GroupHeader
extends Band

A report band that appears at the beginning of each instance of a group.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jrefinery.report.Band
CONTENT_TYPE
 
Fields inherited from class com.jrefinery.report.Element
BOTTOM, CENTER, LEFT, MIDDLE, RIGHT, TOP
 
Constructor Summary
GroupHeader()
          Constructs a group header band, containing no elements.
 
Method Summary
 boolean hasPageBreakBeforePrint()
          Deprecated. use the ElementStyleSheet to access this property as every band is able to request such a pageBreak
 void setPageBreakBeforePrint(boolean pageBreakBefore)
          Deprecated. use the ElementStyleSheet to access this property as every band is able to request such a pageBreak
 
Methods inherited from class com.jrefinery.report.Band
addElement, addElement, addElements, clone, getBandDefaults, getContentType, getElement, getElement, getElementArray, getElementCount, getElements, getHeight, getLayout, invalidateLayout, registerStyleSheetCollection, removeElement, setHeight, setLayout, toString, unregisterStyleSheetCollection
 
Methods inherited from class com.jrefinery.report.Element
getDataSource, getName, getPaint, getParent, getStyle, getStyleSheetCollection, getValue, isVisible, setDataSource, setName, setPaint, setParent, setStyleSheetCollection, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupHeader

public GroupHeader()
Constructs a group header band, containing no elements.

Method Detail

hasPageBreakBeforePrint

public boolean hasPageBreakBeforePrint()
Deprecated. use the ElementStyleSheet to access this property as every band is able to request such a pageBreak

Checks whether a pagebreak should be triggered before the group header is printed. This is a local and deprecated method to define the PAGEBREAK_BEFORE attribute of an Band.

Returns:
true if this group should trigger a pagebreak before its header is printed, false otherwise

setPageBreakBeforePrint

public void setPageBreakBeforePrint(boolean pageBreakBefore)
Deprecated. use the ElementStyleSheet to access this property as every band is able to request such a pageBreak

Defines whether this group should trigger a pagebreak before its header is printed.

Parameters:
pageBreakBefore - the new trigger state