Class AbstractElementType

    • Constructor Detail

      • AbstractElementType

        protected AbstractElementType​(String id)
    • Method Detail

      • hashCode

        public int hashCode()
        hashCode in class Object
      • configureDesignTimeDefaults

        public void configureDesignTimeDefaults​(ReportElement element,
                                                Locale locale)
        Description copied from interface: ElementType
        Compute the design-time defaults that should be applied to an element after it was created by a design-tool. Only declare explicit values. If you assume defaults when an attribute or style is undefined, then there is no need to set it here.

        Any value set here will be treated as user-defined value afterwards and will be explicitly stored in the XML files.

        Specified by:
        configureDesignTimeDefaults in interface ElementType
        element - the element that should be configured.
        locale - the locale.
      • create

        public ReportElement create()
        Description copied from interface: ElementType
        Creates the element implementation. Return a new Element for data-items, Band for compound data items or the appropriate Element implementation for complex element types.
        Specified by:
        create in interface ElementType
        the new element instance.
      • getId

        protected String getId()