public class JRDesignFrame extends JRDesignElement implements JRFrame
JRFrame to be used at design time.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_BORDER_SPLIT_TYPE |
static String |
PROPERTY_CHILDREN |
PROPERTY_ELEMENT_GROUP, PROPERTY_HEIGHT, PROPERTY_KEY, PROPERTY_PARENT_STYLE, PROPERTY_PARENT_STYLE_NAME_REFERENCE, PROPERTY_PRINT_WHEN_EXPRESSION, PROPERTY_PRINT_WHEN_GROUP_CHANGES, PROPERTY_PROPERTY_EXPRESSIONS, PROPERTY_Ybackcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, modeValue, parentStyle, parentStyleNameReference, positionTypeValue, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchTypeValue, uuid, width, x, y| Constructor and Description |
|---|
JRDesignFrame()
Creates a new frame object.
|
JRDesignFrame(JRDefaultStyleProvider defaultStyleProvider)
Creates a new frame object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(int index,
JRElement element)
Inserts a sub element at specified position into the frame.
|
void |
addElement(JRElement element)
Adds a sub element to the frame.
|
void |
addElementGroup(int index,
JRElementGroup group)
Inserts an element group at specified position into the frame.
|
void |
addElementGroup(JRElementGroup group)
Adds an element group to the frame.
|
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
void |
copyBox(JRLineBox lineBox) |
BorderSplitType |
getBorderSplitType()
Determines how should the frames borders behave when the frame splits on two pages.
|
List<JRChild> |
getChildren()
Gets a list of all direct children elements or elements groups.
|
Color |
getDefaultLineColor() |
JRElement |
getElementByKey(String elementKey)
Gets an element from this group, based on its element key.
|
JRElement[] |
getElements()
Gets an array containing all the elements and element groups in the hierarchy.
|
JRLineBox |
getLineBox() |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
boolean |
removeElement(JRElement element)
Removes a sub element from the frame.
|
boolean |
removeElementGroup(JRElementGroup group)
Removes a group element from the frame.
|
void |
setBorderSplitType(BorderSplitType borderSplitType)
Sets the border split type for the frame.
|
void |
visit(JRVisitor visitor) |
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setYclone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXgetBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetElementGrouppublic static final String PROPERTY_CHILDREN
public static final String PROPERTY_BORDER_SPLIT_TYPE
public JRDesignFrame(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider - default style provider instancepublic JRDesignFrame()
public void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void visit(JRVisitor visitor)
visit in interface JRVisitablepublic JRElement[] getElements()
JRElementGroupgetElements in interface JRElementGrouppublic void addElement(JRElement element)
element - the element to addpublic void addElement(int index,
JRElement element)
index - the element positionelement - the element to addpublic boolean removeElement(JRElement element)
element - the element to removepublic void addElementGroup(JRElementGroup group)
group - the element group to addpublic void addElementGroup(int index,
JRElementGroup group)
index - the element group positiongroup - the element group to addpublic boolean removeElementGroup(JRElementGroup group)
group - the group to removepublic List<JRChild> getChildren()
JRElementGroupgetChildren in interface JRElementGrouppublic JRElement getElementByKey(String elementKey)
JRElementGroupgetElementByKey in interface JRElementGrouppublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRBaseElementpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic void copyBox(JRLineBox lineBox)
public Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic BorderSplitType getBorderSplitType()
JRFramegetBorderSplitType in interface JRFrameJRFrame.PROPERTY_BORDER_SPLIT_TYPE,
setBorderSplitType(BorderSplitType)public void setBorderSplitType(BorderSplitType borderSplitType)
borderSplitType - the border split typeJRFrame.getBorderSplitType()public Object clone()
clone in interface JRCloneableclone in class JRDesignElementCopyright © 2017. All rights reserved.