Package net.sf.basedb.clients.web.taglib
Class Zoom
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.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=... >
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 Summary
Fields Modifier and Type Field Description private String
image
The path to the help iconprivate 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.Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors Constructor Description Zoom()
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.sf.basedb.clients.web.taglib.StylableTag
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, initDefaultAttributes, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
page
The parent <base:page> tag. -
image
The path to the help icon -
tooltip
Optional tooltip. -
visible
private boolean visibleIf the zoom icon should be visible or not. -
tabIndex
private int tabIndex -
textarea
-
title
-
-
Constructor Details
-
Zoom
public Zoom()
-
-
Method Details
-
setImage
-
getImage
-
setTextarea
-
getTextarea
-
setTitle
-
getTitle
-
setTooltip
-
getTooltip
-
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
setTabindex
public void setTabindex(int tabIndex) -
getTabindex
public int getTabindex() -
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-