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 JRElement
bottomElementInGroup
protected List<JRChild>
children
protected JRElementGroup
elementGroup
protected JRFillElement[]
elements
protected JRElement
topElementInGroup
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRFillElementGroup(JRFillElementGroup elementGrp, JRFillCloneFactory factory)
protected
JRFillElementGroup(JRElementGroup elementGrp, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Object
clone(JRElementGroup parentGroup)
JRFillCloneable
createClone(JRFillCloneFactory factory)
Creates a working clone of itself.List<JRChild>
getChildren()
Gets a list of all direct children elements or elements groups.JRElement
getElementByKey(String key)
Gets an element from this group, based on its element key.JRElementGroup
getElementGroup()
Gets the parent element group.JRElement[]
getElements()
Gets an array containing all the elements and element groups in the hierarchy.protected int
getStretchHeightDiff()
protected void
reset()
void
visit(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:JRElementGroup
Gets a list of all direct children elements or elements groups.- Specified by:
getChildren
in interfaceJRElementGroup
-
getElementGroup
public JRElementGroup getElementGroup()
Description copied from interface:JRElementGroup
Gets the parent element group.- Specified by:
getElementGroup
in interfaceJRElementGroup
- Returns:
- an instance of this class, or null if this is the root group.
-
getElements
public JRElement[] getElements()
Description copied from interface:JRElementGroup
Gets an array containing all the elements and element groups in the hierarchy.- Specified by:
getElements
in interfaceJRElementGroup
-
getElementByKey
public JRElement getElementByKey(String key)
Description copied from interface:JRElementGroup
Gets an element from this group, based on its element key.- Specified by:
getElementByKey
in interfaceJRElementGroup
-
reset
protected void reset()
-
getStretchHeightDiff
protected int getStretchHeightDiff()
-
visit
public void visit(JRVisitor visitor)
- Specified by:
visit
in interfaceJRVisitable
-
createClone
public JRFillCloneable createClone(JRFillCloneFactory factory)
Description copied from interface:JRFillCloneable
Creates a working clone of itself.- Specified by:
createClone
in interfaceJRFillCloneable
- Parameters:
factory
- the clone factory to use while creating the clone- Returns:
- a working clone of itself
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
clone
public Object clone(JRElementGroup parentGroup)
-
-