Class WebImageDepictor<C extends ImageComponent>

    • Constructor Detail

      • WebImageDepictor

        public WebImageDepictor()
        Default constructor using the XHTML <label> element.
    • Method Detail

      • installed

        public void installed​(C component)
        Called when the depictor is installed in a depicted object.

        This version listens for property changes of a PropertyBindable object.

        This version listens for list changes of a ListListenable object.

        If the component is a container, this version listens for container events and marks the view as needing updated.

        This version requests a poll interval if the image is pending.

        Specified by:
        installed in interface Depictor<C extends ImageComponent>
        Overrides:
        installed in class AbstractComponentDepictor<C extends ImageComponent>
        Parameters:
        component - The depictedObject into which this depictor is being installed.
        See Also:
        AbstractDepictor.depictedPropertyChangeListener
      • depictedObjectPropertyChange

        protected void depictedObjectPropertyChange​(java.beans.PropertyChangeEvent propertyChangeEvent)
        Called when a depicted object bound property is changed.

        This method may also be called for objects related to the depicted object, so if specific properties are checked the event source should be verified to be the depicted object.

        This implementation marks the property as being modified if the property is not an ignored property.

        This implementation marks the property as being modified if the property is not an ignored property.

        This implementation requests or discontinues a poll interval when the pending state changes.

        Overrides:
        depictedObjectPropertyChange in class AbstractComponentDepictor<C extends ImageComponent>
        Parameters:
        propertyChangeEvent - An event object describing the event source and the property that has changed.
        See Also:
        PendingImageModel.isImagePending()
      • getBodyStyles

        protected java.util.Map<java.lang.String,​java.lang.Object> getBodyStyles()
        Retrieves the styles for the body element of the component.

        This version returns the style for background color.

        This adds layout fixes for images within tables.

        Overrides:
        getBodyStyles in class AbstractWebComponentDepictor<C extends ImageComponent>
        Returns:
        The styles for the body element of the component, mapped to CSS property names.