Class Zoom

All Implemented Interfaces:
Serializable, DynamicAttributes, IterationTag, JspTag, Tag, DynamicActionAttributes

public class Zoom
extends StylableTag
This tag is used to make it easier to add zoom features on a BASE web page.

Example:

        <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
        <base:zoom textarea="required_textarea_ID" title="dialog title" />
  

Syntax:

  <base:zoom
        clazz=...
        subclass=...
        style=...
        image=...
        textarea=...
        title=...
        tooltip=...
        visible=...
        tabindex=...
  >
  
Tag attributes
Attribute Default value Required Description
clazz zoom no The value if this attribute goes directly into the standard HTML class attribute. This allows you to apply different styles to different zoom icons.
subclass - no Additional classes to put in the HTML class attribute. Doesn't replace the main class attribute.
style - no The value if this attribute goes directly into the standard HTML style attribute. This allows you to apply different styles to different icons.
image zoom.png no The name of the image to display.
textarea - yes The ID attribute of a textarea field on the page.
title - no The title of the zoom popup dialog.
tooltip Edit in larger window no A short explanation that will show up as a tooltip.
visible true no If the zoom icon should be visible or not.
tabindex 0 no Tab index value to control the focus order. Use -1 to disable tabbing to the icon.
Since:
3.3
Author:
nicklas
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • page

      private Page page
      The parent <base:page> tag.
    • image

      private String image
      The path to the help icon
    • tooltip

      private String tooltip
      Optional tooltip.
    • visible

      private boolean visible
      If the zoom icon should be visible or not.
    • tabIndex

      private int tabIndex
    • textarea

      private String textarea
    • title

      private String title
  • Constructor Details

    • Zoom

      public Zoom()
  • Method Details

    • setImage

      public void setImage​(String image)
    • getImage

      public String getImage()
    • setTextarea

      public void setTextarea​(String textarea)
    • getTextarea

      public String getTextarea()
    • setTitle

      public void setTitle​(String title)
    • getTitle

      public String getTitle()
    • setTooltip

      public void setTooltip​(String tooltip)
    • getTooltip

      public String getTooltip()
    • setVisible

      public void setVisible​(boolean visible)
    • isVisible

      public boolean isVisible()
    • setTabindex

      public void setTabindex​(int tabIndex)
    • getTabindex

      public int getTabindex()
    • doStartTag

      public int doStartTag() throws JspException
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport
      Throws:
      JspException