Class ImageInfoDto

java.lang.Object
at.letto.tools.dto.ImageInfoDto

public class ImageInfoDto extends Object
Information of an Image which is stored in the Image-Service or returned from other service.
It consists any Data about the source of then image and the properties to view in LeTTo.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    alternative text used for a handicapped accessible html-site
    private String
    filename of then image file
    private int
    orogin height of then image in pixel
    private int
    image-width to display in percent of the screen or with the defined unit
    private long
    lifetime of the image file in milliseconds since 1.1.1970
    file can be deleted if lifetime is reached
    default lifetime is one year from now
    if lifetime is equal or less then zero there is no lifetime defined
    private String
    pugin-type of the plugin if image was built in a plugin
    private String
    CSS style definition to display on a browser with HTML
    private String
    title of the image
    private IMAGEUNIT
    the unit of imageWidth to display image in HTML
    private String
    open URL of the image or stringlength=0 if it is not an open image
    private String
    version of the plugin if image was built in a plugin
    private int
    origin width of then image in pixel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

      private String version
      version of the plugin if image was built in a plugin
    • pluginTyp

      private String pluginTyp
      pugin-type of the plugin if image was built in a plugin
    • filename

      private String filename
      filename of then image file
    • url

      private String url
      open URL of the image or stringlength=0 if it is not an open image
    • width

      private int width
      origin width of then image in pixel
    • height

      private int height
      orogin height of then image in pixel
    • unit

      private IMAGEUNIT unit
      the unit of imageWidth to display image in HTML
    • imageWidth

      private int imageWidth
      image-width to display in percent of the screen or with the defined unit
    • style

      private String style
      CSS style definition to display on a browser with HTML
    • alternate

      private String alternate
      alternative text used for a handicapped accessible html-site
    • title

      private String title
      title of the image
    • lifetime

      private long lifetime
      lifetime of the image file in milliseconds since 1.1.1970
      file can be deleted if lifetime is reached
      default lifetime is one year from now
      if lifetime is equal or less then zero there is no lifetime defined
  • Constructor Details

    • ImageInfoDto

      public ImageInfoDto()
  • Method Details

    • lifetimeOutdated

      public boolean lifetimeOutdated()
      Returns:
      true if actual time is greater then lifetime