public class Zoom extends StylableTag
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=... >
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. |
Modifier and Type | Field and Description |
---|---|
private String |
image
The path to the help icon
|
private Page |
page
The parent <base:page> tag.
|
private static long |
serialVersionUID |
private int |
tabIndex |
private String |
textarea |
private String |
title |
private String |
tooltip
Optional tooltip.
|
private boolean |
visible
If the zoom icon should be visible or not.
|
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Zoom() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
String |
getImage() |
int |
getTabindex() |
String |
getTextarea() |
String |
getTitle() |
String |
getTooltip() |
boolean |
isVisible() |
void |
setImage(String image) |
void |
setTabindex(int tabIndex) |
void |
setTextarea(String textarea) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setVisible(boolean visible) |
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, initDefaultAttributes, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private Page page
private String image
private String tooltip
private boolean visible
private int tabIndex
private String textarea
private String title
public void setImage(String image)
public String getImage()
public void setTextarea(String textarea)
public String getTextarea()
public void setTitle(String title)
public String getTitle()
public void setTooltip(String tooltip)
public String getTooltip()
public void setVisible(boolean visible)
public boolean isVisible()
public void setTabindex(int tabIndex)
public int getTabindex()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException