Class AbstractImageComponent

    • Field Detail

      • DEFAULT_EXPORT_STRATEGY

        protected static final ExportStrategy<ImageComponent> DEFAULT_EXPORT_STRATEGY
        The default export strategy for this component type.
    • Constructor Detail

      • AbstractImageComponent

        public AbstractImageComponent​(InfoModel infoModel,
                                      ImageModel imageModel)
        Info model and image model constructor.
        Parameters:
        infoModel - The component info model.
        imageModel - The component image model.
        Throws:
        java.lang.NullPointerException - if the given info model and/or iamge model is null.
    • Method Detail

      • getImageModel

        protected ImageModel getImageModel()
        Returns:
        The image model used by this component.
      • getImageURI

        public java.net.URI getImageURI()
        Specified by:
        getImageURI in interface ImageModel
        Returns:
        The image URI, which may be a resource URI, or null if there is no image URI.
      • setImageURI

        public void setImageURI​(java.net.URI newImageURI)
        Description copied from interface: ImageModel
        Sets the URI of the image. This is a bound property.
        Specified by:
        setImageURI in interface ImageModel
        Parameters:
        newImageURI - The new URI of the image, which may be a resource URI.
        See Also:
        ImageModel.IMAGE_URI_PROPERTY