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
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The path to the help iconprivate Page
The parent <base:page> tag.private static final long
private int
private String
private String
private String
Optional tooltip.private boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionint
getImage()
int
getTitle()
boolean
void
void
setTabindex
(int tabIndex) void
setTextarea
(String textarea) void
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:
-
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
-