Class JRDesignStyle

    • Field Detail

      • PROPERTY_DEFAULT

        public static final java.lang.String PROPERTY_DEFAULT
        See Also:
        Constant Field Values
      • PROPERTY_PARENT_STYLE

        public static final java.lang.String PROPERTY_PARENT_STYLE
        See Also:
        Constant Field Values
      • PROPERTY_PARENT_STYLE_NAME_REFERENCE

        public static final java.lang.String PROPERTY_PARENT_STYLE_NAME_REFERENCE
        See Also:
        Constant Field Values
      • PROPERTY_CONDITIONAL_STYLES

        public static final java.lang.String PROPERTY_CONDITIONAL_STYLES
        See Also:
        Constant Field Values
    • Constructor Detail

      • JRDesignStyle

        public JRDesignStyle()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • setDefault

        public void setDefault​(boolean isDefault)
      • addConditionalStyle

        public void addConditionalStyle​(JRConditionalStyle conditionalStyle)
      • addConditionalStyle

        public void addConditionalStyle​(int index,
                                        JRConditionalStyle conditionalStyle)
      • removeConditionalStyle

        public boolean removeConditionalStyle​(JRConditionalStyle conditionalStyle)
      • getConditionalStyleList

        public java.util.List<JRConditionalStyle> getConditionalStyleList()
      • setParentStyleNameReference

        public void setParentStyleNameReference​(java.lang.String styleName)
        Set the name of the external style to be used as parent style.

        An external style is only effective when there is no internal parent style set, i.e. getStyle() returns null The external style will be resolved at fill time from the templates used in the report.

        Parameters:
        styleName - the name of the external style
        See Also:
        JRBaseStyle.getStyleNameReference()