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_Y
backcolor, 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, setY
clone, 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, setX
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
getParentProperties, getPropertiesMap, hasProperties
getUUID
getElementGroup
public 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 JRElement
public void visit(JRVisitor visitor)
visit
in interface JRVisitable
public JRElement[] getElements()
JRElementGroup
getElements
in interface JRElementGroup
public 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()
JRElementGroup
getChildren
in interface JRElementGroup
public JRElement getElementByKey(String elementKey)
JRElementGroup
getElementByKey
in interface JRElementGroup
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBaseElement
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public void copyBox(JRLineBox lineBox)
public Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public BorderSplitType getBorderSplitType()
JRFrame
getBorderSplitType
in interface JRFrame
JRFrame.PROPERTY_BORDER_SPLIT_TYPE
,
setBorderSplitType(BorderSplitType)
public void setBorderSplitType(BorderSplitType borderSplitType)
borderSplitType
- the border split typeJRFrame.getBorderSplitType()
public Object clone()
clone
in interface JRCloneable
clone
in class JRDesignElement
Copyright © 2019 TIBCO Software Inc.. All rights reserved.