Class PendingImage

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Component, ImageComponent, PendingImageComponent, Displayable, ImageModel, InfoModel, LabelModel, Model, PendingImageModel, PresentationModel, DepictedObject

public class PendingImage extends Image implements PendingImageComponent
A simple image component with an indication when the image is pending. If a PendingImageModel is used, the image reflects the value of the model's PendingImageModel.isImagePending() value. Otherwise, the pending status will reflect whether AbstractImageComponent.getImageURI() is non-null.
Author:
Garret Wilson
  • Constructor Details

    • PendingImage

      public PendingImage()
      Default constructor.
    • PendingImage

      public PendingImage(ImageModel imageModel)
      Image model constructor.
      Parameters:
      imageModel - The component image model.
      Throws:
      NullPointerException - if the given image model is null.
    • PendingImage

      public PendingImage(InfoModel infoModel, ImageModel imageModel)
      Info model and image model constructor.
      Parameters:
      infoModel - The component info model.
      imageModel - The component image model.
      Throws:
      NullPointerException - if the given info model and/or image model is null.
  • Method Details