Class WEditableImage

    • Constructor Detail

      • WEditableImage

        public WEditableImage​(WMultiFileWidget editUploader)
        Creates a WEditableImage associated with the file widget used to upload edited results. The filename of the uploaded image will be the ID of the WImage.
        Parameters:
        editUploader - The file upload widget that will receive edited images.
    • Method Detail

      • getEditUploader

        public WMultiFileWidget getEditUploader()
        Return the WMultiFileWidget associated with this editable image.
        Returns:
        The file upload widget.
      • getComponentModel

        protected WEditableImage.EditableImageModel getComponentModel()
        Returns the effective component model for this component. Subclass may override this method to narrow the return type to their specific model type.
        Overrides:
        getComponentModel in class WImage
        Returns:
        the effective component model
      • getOrCreateComponentModel

        protected WEditableImage.EditableImageModel getOrCreateComponentModel()
        Retrieves the model for this component so that it can be modified. If this method is called during request processing, and a session specific model does not yet exist, then a new model is created. Subclasses may override this method to narrow the return type to their specific model type.
        Overrides:
        getOrCreateComponentModel in class WImage
        Returns:
        the model for this component