public class JRDesignComponentElement extends JRDesignElement implements JRComponentElement
JRComponentElement implementation which is to be used at report
design time.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_COMPONENT |
static String |
PROPERTY_COMPONENT_KEY |
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, yPROPERTY_COMPONENT_NAME| Constructor and Description |
|---|
JRDesignComponentElement()
Creates an empty component element.
|
JRDesignComponentElement(JRDefaultStyleProvider defaultStyleProvider)
Creates an empty component element.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
collectExpressions(JRExpressionCollector collector) |
Component |
getComponent()
Returns the component instance wrapped by this element.
|
ComponentKey |
getComponentKey()
Returns the component type key for this element.
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
void |
setComponent(Component component)
Sets the component instance wrapped by this element.
|
protected void |
setComponentContext() |
void |
setComponentKey(ComponentKey componentKey)
Sets the component type key that corresponds to the component instance.
|
void |
visit(JRVisitor visitor) |
addPropertyExpression, getPropertyExpressions, getPropertyExpressionsList, removePropertyExpression, removePropertyExpression, setElementGroup, setHeight, setKey, setPrintWhenExpression, setPrintWhenGroupChanges, setStyle, setStyleNameReference, setUUID, setYclone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getForecolor, getHeight, getKey, getModeValue, 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, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDpublic static final String PROPERTY_COMPONENT
public static final String PROPERTY_COMPONENT_KEY
public JRDesignComponentElement()
public JRDesignComponentElement(JRDefaultStyleProvider defaultStyleProvider)
defaultStyleProvider - the default style provide to use for this
elementpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportgetEventSupport in class JRBaseElementpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic void visit(JRVisitor visitor)
visit in interface JRVisitablepublic Component getComponent()
JRComponentElementgetComponent in interface JRComponentElementpublic void setComponent(Component component)
component - the component instancegetComponent()protected void setComponentContext()
public ComponentKey getComponentKey()
JRComponentElementThe component type key needs to be set in order to locate the component manager.
getComponentKey in interface JRComponentElementpublic void setComponentKey(ComponentKey componentKey)
componentKey - the component type keygetComponentKey()public Object clone()
clone in interface JRCloneableclone in class JRDesignElementCopyright © 2017. All rights reserved.