|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.Icon
public class Icon
This tag is used to make it easier to display icons on a BASE web page.
Example:
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> <base:icon image="required.png" />
Syntax:
<base:icon id=... clazz=... style=... image=... tooltip=... onclick=... visible=... tabindex=... >
Attribute | Default value | Required | Description |
id | - | no | The ID of the icon. The value of this attribute
goes directly into the standard id attribute.
This means that if you need a reference to the note object in your own
JavaScript code, you may for example use the following code:
|
clazz | icon | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different icons.
|
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 | yes |
The name of the image to display. The image must be in the /images
directory. Only include the filename, not the path.
This taglib will find the correct path from the current jsp page.
|
|
tooltip | no | A short explanation that will show up as a tooltip. | |
onclick | no | An optional JavaScript statement that will exceute when the user clicks on the icon. | |
visible | true | no | If the note should be visible or not. |
tabindex | 0 | no | Tab index value to control the focus order. Use -1 to disable tabbing to the icon. |
Field Summary | |
---|---|
private boolean |
enabled
If the icon should be enabled or not (if an onclick has been set). |
private String |
image
The filename of the image. |
private String |
onClick
An optional JavaScript statement. |
private Page |
page
The parent <base:page> tag. |
private static long |
serialVersionUID
|
private boolean |
setEnabledIsCalled
|
private int |
tabIndex
|
private String |
tooltip
An optional tooltip. |
private boolean |
visible
If the 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 | |
---|---|
Icon()
|
Method Summary | |
---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getImage()
|
String |
getOnclick()
|
int |
getTabindex()
|
String |
getTooltip()
|
boolean |
isEnabled()
|
boolean |
isVisible()
|
void |
setEnabled(boolean enabled)
|
void |
setImage(String image)
|
void |
setOnclick(String onClick)
|
void |
setTabindex(int tabIndex)
|
void |
setTooltip(String tooltip)
|
void |
setVisible(boolean visible)
|
Methods inherited from class net.sf.basedb.clients.web.taglib.StylableTag |
---|
addIdAndStyles, getClazz, getFullClass, getStyle, getSubclass, setClazz, setStyle, setSubclass |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private Page page
private String image
private String tooltip
private String onClick
private boolean visible
private boolean enabled
private boolean setEnabledIsCalled
private int tabIndex
Constructor Detail |
---|
public Icon()
Method Detail |
---|
public void setImage(String image)
public String getImage()
public void setVisible(boolean visible)
public boolean isVisible()
public void setEnabled(boolean enabled)
public boolean isEnabled()
public void setTooltip(String tooltip)
public String getTooltip()
public void setOnclick(String onClick)
public String getOnclick()
public void setTabindex(int tabIndex)
public int getTabindex()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |