Package at.letto.tools.dto
Class ImageInfoDto
java.lang.Object
at.letto.tools.dto.ImageInfoDto
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.
It consists any Data about the source of then image and the properties to view in LeTTo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringalternative text used for a handicapped accessible html-siteprivate Stringfilename of then image fileprivate intorogin height of then image in pixelprivate intimage-width to display in percent of the screen or with the defined unitprivate longlifetime 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 definedprivate Stringpugin-type of the plugin if image was built in a pluginprivate StringCSS style definition to display on a browser with HTMLprivate Stringtitle of the imageprivate IMAGEUNITthe unit of imageWidth to display image in HTMLprivate Stringopen URL of the image or stringlength=0 if it is not an open imageprivate Stringversion of the plugin if image was built in a pluginprivate intorigin width of then image in pixel -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
version
version of the plugin if image was built in a plugin -
pluginTyp
pugin-type of the plugin if image was built in a plugin -
filename
filename of then image file -
url
open URL of the image or stringlength=0 if it is not an open image -
width
private int widthorigin width of then image in pixel -
height
private int heightorogin height of then image in pixel -
unit
the unit of imageWidth to display image in HTML -
imageWidth
private int imageWidthimage-width to display in percent of the screen or with the defined unit -
style
CSS style definition to display on a browser with HTML -
alternate
alternative text used for a handicapped accessible html-site -
title
title of the image -
lifetime
private long lifetimelifetime 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
-