Package net.sf.jasperreports.engine.base
Class JRBaseConditionalStyle
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseStyle
-
- net.sf.jasperreports.engine.base.JRBaseConditionalStyle
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Deduplicable
,JRChangeEventsSupport
,JRBoxContainer
,JRCloneable
,JRConditionalStyle
,JRParagraphContainer
,JRPenContainer
,JRStyle
,JRStyleContainer
- Direct Known Subclasses:
JRDesignConditionalStyle
public class JRBaseConditionalStyle extends JRBaseStyle implements JRConditionalStyle
- Author:
- Ionut Nedelcu (ionutned@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpression
conditionExpression
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseStyle
backcolor, conditionalStyles, defaultStyleProvider, EXCEPTION_MESSAGE_KEY_CIRCULAR_DEPENDENCY, fill, fontName, fontSize, forecolor, horizontalImageAlign, horizontalTextAlign, isBlankWhenNull, isBold, isDefault, isItalic, isPdfEmbedded, isStrikeThrough, isUnderline, lineBox, linePen, markup, mode, name, paragraph, parentStyle, parentStyleNameReference, pattern, pdfEncoding, pdfFontName, PROPERTY_BACKCOLOR, PROPERTY_BLANK_WHEN_NULL, PROPERTY_BOLD, PROPERTY_FILL, PROPERTY_FONT_NAME, PROPERTY_FONT_SIZE, PROPERTY_FORECOLOR, PROPERTY_HORIZONTAL_IMAGE_ALIGNMENT, PROPERTY_HORIZONTAL_TEXT_ALIGNMENT, PROPERTY_ITALIC, PROPERTY_MARKUP, PROPERTY_MODE, PROPERTY_PATTERN, PROPERTY_PDF_EMBEDDED, PROPERTY_PDF_ENCODING, PROPERTY_PDF_FONT_NAME, PROPERTY_RADIUS, PROPERTY_ROTATION, PROPERTY_SCALE_IMAGE, PROPERTY_STRIKE_THROUGH, PROPERTY_UNDERLINE, PROPERTY_VERTICAL_IMAGE_ALIGNMENT, PROPERTY_VERTICAL_TEXT_ALIGNMENT, radius, rotation, scaleImage, verticalImageAlign, verticalTextAlign
-
Fields inherited from interface net.sf.jasperreports.engine.JRStyle
PROPERTY_EVALUATION_TIME_ENABLED
-
-
Constructor Summary
Constructors Constructor Description JRBaseConditionalStyle()
JRBaseConditionalStyle(JRConditionalStyle style, JRStyle parentStyle, JRAbstractObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
JRExpression
getConditionExpression()
int
getHashCode()
Returns a hash code to be used for the deduplicate map.String
getStyleName()
boolean
isIdentical(Object object)
Determines if this instance is identical to another object.-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseStyle
addStyleHash, checkCircularParent, getBackcolor, getConditionalStyles, getDefaultLineColor, getDefaultLineWidth, getDefaultStyleProvider, getEventSupport, getFill, getFontName, getFontSize, getForecolor, getHorizontalImageAlign, getHorizontalTextAlign, getLineBox, getLinePen, getMarkup, getMode, getName, getOwnBackcolor, getOwnFill, getOwnFontName, getOwnFontSize, getOwnForecolor, getOwnHorizontalImageAlign, getOwnHorizontalTextAlign, getOwnMarkup, getOwnMode, getOwnPattern, getOwnPdfEncoding, getOwnPdfFontName, getOwnRadius, getOwnRotation, getOwnScaleImage, getOwnVerticalImageAlign, getOwnVerticalTextAlign, getParagraph, getPattern, getPdfEncoding, getPdfFontName, getRadius, getRotation, getScaleImage, getStyle, getStyleNameReference, getStyleResolver, getVerticalImageAlign, getVerticalTextAlign, identicalStyle, isBlankWhenNull, isBold, isDefault, isItalic, isOwnBlankWhenNull, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, rename, setBackcolor, setBlankWhenNull, setBold, setFill, setFontName, setFontSize, setForecolor, setHorizontalImageAlign, setHorizontalTextAlign, setItalic, setMarkup, setMode, setParentStyle, setPattern, setPdfEmbedded, setPdfEncoding, setPdfFontName, setRadius, setRotation, setScaleImage, setStrikeThrough, setUnderline, setVerticalImageAlign, setVerticalTextAlign
-
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.JRBoxContainer
getDefaultLineColor, getLineBox
-
Methods inherited from interface net.sf.jasperreports.engine.JRConditionalStyle
isDefault
-
Methods inherited from interface net.sf.jasperreports.engine.JRParagraphContainer
getParagraph
-
Methods inherited from interface net.sf.jasperreports.engine.JRPenContainer
getDefaultLineColor, getDefaultLineWidth
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyle
getBackcolor, getConditionalStyles, getFill, getFontName, getFontSize, getForecolor, getHorizontalImageAlign, getHorizontalTextAlign, getLinePen, getMarkup, getMode, getName, getOwnBackcolor, getOwnFill, getOwnFontName, getOwnFontSize, getOwnForecolor, getOwnHorizontalImageAlign, getOwnHorizontalTextAlign, getOwnMarkup, getOwnMode, getOwnPattern, getOwnPdfEncoding, getOwnPdfFontName, getOwnRadius, getOwnRotation, getOwnScaleImage, getOwnVerticalImageAlign, getOwnVerticalTextAlign, getPattern, getPdfEncoding, getPdfFontName, getRadius, getRotation, getScaleImage, getVerticalImageAlign, getVerticalTextAlign, isBlankWhenNull, isBold, isItalic, isOwnBlankWhenNull, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, setBackcolor, setBlankWhenNull, setBold, setFill, setFontName, setFontSize, setForecolor, setHorizontalImageAlign, setHorizontalTextAlign, setItalic, setMarkup, setMode, setPattern, setPdfEmbedded, setPdfEncoding, setPdfFontName, setRadius, setRotation, setScaleImage, setStrikeThrough, setUnderline, setVerticalImageAlign, setVerticalTextAlign
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
-
-
-
-
Field Detail
-
conditionExpression
protected JRExpression conditionExpression
-
-
Constructor Detail
-
JRBaseConditionalStyle
public JRBaseConditionalStyle()
-
JRBaseConditionalStyle
public JRBaseConditionalStyle(JRConditionalStyle style, JRStyle parentStyle, JRAbstractObjectFactory factory)
-
-
Method Detail
-
getStyleName
public String getStyleName()
- Specified by:
getStyleName
in interfaceJRStyleContainer
-
getConditionExpression
public JRExpression getConditionExpression()
- Specified by:
getConditionExpression
in interfaceJRConditionalStyle
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseStyle
-
getHashCode
public int getHashCode()
Description copied from interface:Deduplicable
Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object)
, i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCode
in interfaceDeduplicable
- Overrides:
getHashCode
in classJRBaseStyle
- Returns:
- deduplication hash code
-
isIdentical
public boolean isIdentical(Object object)
Description copied from interface:Deduplicable
Determines if this instance is identical to another object.- Specified by:
isIdentical
in interfaceDeduplicable
- Overrides:
isIdentical
in classJRBaseStyle
- Parameters:
object
- the object to compare with this instance- Returns:
true
if the two objects are identical and can be deduplicated
-
-