Class DesignBaseCell
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementGroup
-
- net.sf.jasperreports.engine.design.JRDesignElementGroup
-
- net.sf.jasperreports.components.table.DesignBaseCell
-
- All Implemented Interfaces:
Serializable,Cloneable,BaseCell,DesignStyleContainer,JRChangeEventsSupport,JRBoxContainer,JRChild,JRCloneable,JRElementGroup,JRPropertiesHolder,JRStyleContainer,JRVisitable
- Direct Known Subclasses:
DesignCell
public class DesignBaseCell extends JRDesignElementGroup implements BaseCell, DesignStyleContainer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRLineBoxboxprotected JRDefaultStyleProviderdefaultStyleProviderprotected Integerheightprotected JRPropertiesMappropertiesMapstatic StringPROPERTY_DEFAULT_STYLE_PROVIDERstatic StringPROPERTY_HEIGHTstatic StringPROPERTY_STYLEstatic StringPROPERTY_STYLE_NAME_REFERENCEprotected JRStylestyleprotected StringstyleNameReference-
Fields inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
PROPERTY_CHILDREN, PROPERTY_ELEMENT_GROUP
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
children, elementGroup
-
-
Constructor Summary
Constructors Constructor Description DesignBaseCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()ColorgetDefaultLineColor()JRDefaultStyleProvidergetDefaultStyleProvider()IntegergetHeight()JRLineBoxgetLineBox()JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.JRStylegetStyle()Returns this object's style.StringgetStyleNameReference()Returns the name of an external style which is to be used by this object.booleanhasProperties()Checks whether the object has any properties.voidsetDefaultStyleProvider(JRDefaultStyleProvider defaultStyleProvider)voidsetHeight(Integer height)voidsetStyle(JRStyle style)voidsetStyleNameReference(String styleName)-
Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementGroup
addElement, addElement, addElement, addElementGroup, addElementGroup, getEventSupport, removeElement, removeElementGroup, setElementGroup
-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementGroup
clone, getChildren, getElementByKey, getElementByKey, getElementGroup, getElements, getElements, visit
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRElementGroup
getChildren, getElementByKey, getElementGroup, getElements
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Field Detail
-
PROPERTY_DEFAULT_STYLE_PROVIDER
public static final String PROPERTY_DEFAULT_STYLE_PROVIDER
- See Also:
- Constant Field Values
-
PROPERTY_STYLE
public static final String PROPERTY_STYLE
- See Also:
- Constant Field Values
-
PROPERTY_STYLE_NAME_REFERENCE
public static final String PROPERTY_STYLE_NAME_REFERENCE
- See Also:
- Constant Field Values
-
PROPERTY_HEIGHT
public static final String PROPERTY_HEIGHT
- See Also:
- Constant Field Values
-
defaultStyleProvider
protected JRDefaultStyleProvider defaultStyleProvider
-
style
protected JRStyle style
-
styleNameReference
protected String styleNameReference
-
box
protected JRLineBox box
-
height
protected Integer height
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
-
Method Detail
-
getDefaultLineColor
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColorin interfaceJRBoxContainer
-
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProviderin interfaceJRStyleContainer
-
getStyle
public JRStyle getStyle()
Description copied from interface:JRStyleContainerReturns this object's style.- Specified by:
getStylein interfaceJRStyleContainer- Returns:
- this object's style
-
getStyleNameReference
public String getStyleNameReference()
Description copied from interface:JRStyleContainerReturns the name of an external style which is to be used by this object. External styles are defined intemplatesand are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()is specified for this object.- Specified by:
getStyleNameReferencein interfaceJRStyleContainer- Returns:
- the name of an external style
-
setDefaultStyleProvider
public void setDefaultStyleProvider(JRDefaultStyleProvider defaultStyleProvider)
- Specified by:
setDefaultStyleProviderin interfaceDesignStyleContainer
-
setStyle
public void setStyle(JRStyle style)
- Specified by:
setStylein interfaceDesignStyleContainer
-
setStyleNameReference
public void setStyleNameReference(String styleName)
- Specified by:
setStyleNameReferencein interfaceDesignStyleContainer
-
setHeight
public void setHeight(Integer height)
-
hasProperties
public boolean hasProperties()
Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder getParentProperties()
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
clone
public Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRDesignElementGroup
-
-