Package net.sf.jasperreports.engine.fill
Class JRFillElementGroup
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRFillElementGroup
-
- All Implemented Interfaces:
Cloneable,JRFillCloneable,JRChild,JRCloneable,JRElementGroup,JRVisitable
- Direct Known Subclasses:
JRFillElementContainer
public class JRFillElementGroup extends Object implements JRElementGroup, JRFillCloneable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected JRElementbottomElementInGroupprotected List<JRChild>childrenprotected JRElementGroupelementGroupprotected JRFillElement[]elementsprotected JRElementtopElementInGroup
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRFillElementGroup(JRFillElementGroup elementGrp, JRFillCloneFactory factory)protectedJRFillElementGroup(JRElementGroup elementGrp, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Objectclone(JRElementGroup parentGroup)JRFillCloneablecreateClone(JRFillCloneFactory factory)Creates a working clone of itself.List<JRChild>getChildren()Gets a list of all direct children elements or elements groups.JRElementgetElementByKey(String key)Gets an element from this group, based on its element key.JRElementGroupgetElementGroup()Gets the parent element group.JRElement[]getElements()Gets an array containing all the elements and element groups in the hierarchy.protected intgetStretchHeightDiff()protected voidreset()voidvisit(JRVisitor visitor)
-
-
-
Field Detail
-
elementGroup
protected JRElementGroup elementGroup
-
elements
protected JRFillElement[] elements
-
topElementInGroup
protected JRElement topElementInGroup
-
bottomElementInGroup
protected JRElement bottomElementInGroup
-
-
Constructor Detail
-
JRFillElementGroup
protected JRFillElementGroup(JRElementGroup elementGrp, JRFillObjectFactory factory)
-
JRFillElementGroup
protected JRFillElementGroup(JRFillElementGroup elementGrp, JRFillCloneFactory factory)
-
-
Method Detail
-
getChildren
public List<JRChild> getChildren()
Description copied from interface:JRElementGroupGets a list of all direct children elements or elements groups.- Specified by:
getChildrenin interfaceJRElementGroup
-
getElementGroup
public JRElementGroup getElementGroup()
Description copied from interface:JRElementGroupGets the parent element group.- Specified by:
getElementGroupin interfaceJRElementGroup- Returns:
- an instance of this class, or null if this is the root group.
-
getElements
public JRElement[] getElements()
Description copied from interface:JRElementGroupGets an array containing all the elements and element groups in the hierarchy.- Specified by:
getElementsin interfaceJRElementGroup
-
getElementByKey
public JRElement getElementByKey(String key)
Description copied from interface:JRElementGroupGets an element from this group, based on its element key.- Specified by:
getElementByKeyin interfaceJRElementGroup
-
reset
protected void reset()
-
getStretchHeightDiff
protected int getStretchHeightDiff()
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visitin interfaceJRVisitable
-
createClone
public JRFillCloneable createClone(JRFillCloneFactory factory)
Description copied from interface:JRFillCloneableCreates a working clone of itself.- Specified by:
createClonein interfaceJRFillCloneable- Parameters:
factory- the clone factory to use while creating the clone- Returns:
- a working clone of itself
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
clone
public Object clone(JRElementGroup parentGroup)
-
-