org.infolayer.templates.html
Class TE_image

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.html.TE_image

public class TE_image
extends TemplateElement

Displays an image that is contained in the field determined by the name attribute. The field must be of type Binary or File. The image is scaled to the given width or maxWidth automatically. Clicking on the image will zoom in the image, and a "zoom out" region will be marked on the zoomed image.

Attributes

name
Name of the field holding the image data.
width
If present, the image is always scaled to the given width.
maxWidth
If present, and the image is wider than the value, the image is scaled down accordingly.
zoomable
Decides whether zooming via clicking the image is enabled. Default is true.

See Also:
Serialized Form

Constructor Summary
TE_image()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
 void init()
           
 
Methods inherited from class org.infolayer.templates.TemplateElement
applyChildren, assertNoChildren, assertNoChildren, getAttributeValue, getVarDefs, readTextContent, setVarDefs, writeAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TE_image

public TE_image()
Method Detail

init

public void init()
Overrides:
init in class TemplateElement

apply

public void apply(XmlSerializer xw,
                  IlRequest context,
                  Bindings bindings)
           throws java.io.IOException
Description copied from class: TemplateElement
Applies the template mechanism. Must be overwritten in the

Overrides:
apply in class TemplateElement
Throws:
java.io.IOException