public class JRDesignCellContents extends JRDesignElementGroup implements JRCellContents
JRCellContents used for
report design.| Modifier and Type | Field and Description |
|---|---|
protected JRDefaultStyleProvider |
defaultStyleProvider |
protected ModeEnum |
modeValue |
static String |
PROPERTY_BOX |
static String |
PROPERTY_STYLE |
static String |
PROPERTY_STYLE_NAME_REFERENCE |
protected JRStyle |
style |
protected String |
styleNameReference |
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUPchildren, elementGroupNOT_CALCULATED, PROPERTIES_PREFIX, PROPERTY_COLUMN_SPAN, PROPERTY_ROW_SPAN, PROPERTY_TYPE, TYPE_COLUMN_HEADER, TYPE_CROSSTAB_HEADER, TYPE_CROSSTAB_TITLE, TYPE_DATA, TYPE_NO_DATA_CELL, TYPE_ROW_HEADER| Constructor and Description |
|---|
JRDesignCellContents()
Creates an empty cell contents.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Color |
getBackcolor()
Returns the cell background color.
|
Color |
getDefaultLineColor() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
int |
getHeight()
Returns the computed cell height.
|
JRLineBox |
getLineBox() |
ModeEnum |
getModeValue()
Returns the cell transparency mode.
|
JRCrosstabOrigin |
getOrigin() |
JRPropertiesHolder |
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults
for this object.
|
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map.
|
JRStyle |
getStyle()
Returns this object's style.
|
String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object.
|
int |
getWidth()
Returns the computed cell width.
|
boolean |
hasProperties()
Checks whether the object has any properties.
|
void |
setBackcolor(Color color)
Sets the cell background color.
|
void |
setHeight(int height)
Sets the computed cell height.
|
void |
setMode(ModeEnum modeValue)
Sets the cell transparency mode.
|
void |
setOrigin(JRCrosstabOrigin origin) |
void |
setStyle(JRStyle style)
Sets the style used by this cell.
|
void |
setStyleNameReference(String styleName)
Set the name of the external style to be used for this cell.
|
protected void |
setWidth(int width)
Sets the computed cell width.
|
addElement, addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroupclone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visitequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getElementByKey, getElementGroup, getElementsvisitpublic static final String PROPERTY_BOX
public static final String PROPERTY_STYLE
public static final String PROPERTY_STYLE_NAME_REFERENCE
protected JRDefaultStyleProvider defaultStyleProvider
protected JRStyle style
protected String styleNameReference
protected ModeEnum modeValue
public JRDesignCellContents()
public Color getBackcolor()
JRCellContentsThe cell is filled with the background color only if the cell has opaque mode.
getBackcolor in interface JRCellContentspublic void setBackcolor(Color color)
color - the background colorJRCellContents.getBackcolor()public JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic int getHeight()
JRCellContentsgetHeight in interface JRCellContentsJRCellContents.NOT_CALCULATEDpublic void setHeight(int height)
The method should NOT be called by external code.
height - the cell heightJRCellContents.getHeight()public int getWidth()
JRCellContentsgetWidth in interface JRCellContentsJRCellContents.NOT_CALCULATEDprotected void setWidth(int width)
width - the cell widthJRCellContents.getWidth()public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerpublic void setStyle(JRStyle style)
style - the style to be usedpublic ModeEnum getModeValue()
JRCellContentsgetModeValue in interface JRCellContentsModeEnum.OPAQUE
or ModeEnum.TRANSPARENTpublic void setMode(ModeEnum modeValue)
modeValue - the transparency modeJRCellContents.getModeValue()public String getStyleNameReference()
JRStyleContainertemplates and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference in interface JRStyleContainerpublic void setStyleNameReference(String styleName)
getStyle() returns null
The external style will be resolved at fill time from the templates used in the report.styleName - the name of the external stylegetStyleNameReference()public JRCrosstabOrigin getOrigin()
public void setOrigin(JRCrosstabOrigin origin)
public Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic Object clone()
clone in interface JRCloneableclone in class JRDesignElementGrouppublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentCopyright © 2017. All rights reserved.