Class ContentElementFactory


  • public class ContentElementFactory
    extends AbstractContentElementFactory
    The drawable field element factory can be used to create elements that display Drawable elements.

    A drawable field expects the named datasource to contain Drawable objects.

    Once the desired properties are set, the factory can be reused to create similiar elements.

    Author:
    Thomas Morgner
    • Constructor Detail

      • ContentElementFactory

        public ContentElementFactory()
        DefaultConstructor.
    • Method Detail

      • getBaseURL

        public URL getBaseURL()
        Returns the base url. The BaseURL is used to resolve relative URLs found in the datasource.
        Returns:
        the base url.
      • setBaseURL

        public void setBaseURL​(URL baseURL)
        Defines a BaseURL for the new element. The BaseURL is used to resolve relative URLs found in the datasource.
        Parameters:
        baseURL - the base URL.
      • getContent

        public Object getContent()
      • setContent

        public void setContent​(Object content)