net.sf.jasperreports.engine.design
Class JRDesignBand

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBaseElementGroup
      extended by net.sf.jasperreports.engine.design.JRDesignElementGroup
          extended by net.sf.jasperreports.engine.design.JRDesignBand
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, JRChangeEventsSupport, JRBand, JRChild, JRCloneable, JRElementGroup, JRVisitable

public class JRDesignBand
extends JRDesignElementGroup
implements JRBand

Version:
$Id: JRDesignBand.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  int height
           
protected  JRExpression printWhenExpression
           
static java.lang.String PROPERTY_HEIGHT
           
static java.lang.String PROPERTY_PRINT_WHEN_EXPRESSION
           
protected  SplitTypeEnum splitTypeValue
           
 
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUP
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroup
 
Fields inherited from interface net.sf.jasperreports.engine.JRBand
PROPERTY_SPLIT_TYPE
 
Constructor Summary
JRDesignBand()
           
 
Method Summary
 java.lang.Object clone()
           
 int getHeight()
           
 JROrigin getOrigin()
          Returns the band origin, i.e. its location/role within the report (e.g. detail/title/group header/etc).
 JRExpression getPrintWhenExpression()
          Returns the boolean expression that specifies if the band will be displayed.
 SplitTypeEnum getSplitTypeValue()
          Specifies the band split behavior.
 void setHeight(int height)
           
 void setPrintWhenExpression(JRExpression expression)
           
 void setSplitType(SplitTypeEnum splitTypeValue)
           
 
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroup
 
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
clone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visit
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
 
Methods inherited from interface net.sf.jasperreports.engine.JRChild
clone
 
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
 

Field Detail

PROPERTY_HEIGHT

public static final java.lang.String PROPERTY_HEIGHT
See Also:
Constant Field Values

PROPERTY_PRINT_WHEN_EXPRESSION

public static final java.lang.String PROPERTY_PRINT_WHEN_EXPRESSION
See Also:
Constant Field Values

height

protected int height

splitTypeValue

protected SplitTypeEnum splitTypeValue

printWhenExpression

protected JRExpression printWhenExpression
Constructor Detail

JRDesignBand

public JRDesignBand()
Method Detail

getHeight

public int getHeight()
Specified by:
getHeight in interface JRBand

setHeight

public void setHeight(int height)

getSplitTypeValue

public SplitTypeEnum getSplitTypeValue()
Description copied from interface: JRBand
Specifies the band split behavior.

Specified by:
getSplitTypeValue in interface JRBand

setSplitType

public void setSplitType(SplitTypeEnum splitTypeValue)
Specified by:
setSplitType in interface JRBand

getPrintWhenExpression

public JRExpression getPrintWhenExpression()
Description copied from interface: JRBand
Returns the boolean expression that specifies if the band will be displayed.

Specified by:
getPrintWhenExpression in interface JRBand

setPrintWhenExpression

public void setPrintWhenExpression(JRExpression expression)

getOrigin

public JROrigin getOrigin()
Returns the band origin, i.e. its location/role within the report (e.g. detail/title/group header/etc). The location is automatically set when the band is inserted into the report (via one of the setTitle / setPageHeader methods).

Returns:
the band origin

clone

public java.lang.Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class JRDesignElementGroup


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com