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 Detail

      • 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
    • Constructor Detail

      • Zoom

        public Zoom()
    • Method Detail

      • 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()