|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport net.sf.basedb.clients.web.taglib.Help
public class Help
This tag is used to make it easier to add help features on a BASE web page.
Example:
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
<base:help help_id="required_helpexternalID" />
Syntax:
<base:help helpid=... tabcontrol=... clazz=... style=... image=... tooltip=... onclick=... visible=... >
Attribute | Default value | Required | Description |
helpid | no |
The keyword of the help topic to display. Each help topic has a one-word key
to be identified with. If not specified then the tabcontrol
attribute must be specified.
|
|
tabcontrol | no |
The ID of the TabControl to get the
help id from. Each Tab in a tabcontrol
should specify it's own helpid attribute.
|
|
clazz | help | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different helps.
|
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 | - | no |
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 help icon should be visible or not. |
Field Summary | |
---|---|
private String |
clazz
Optional class attribute |
private String |
helpid
The keyword of the helptopic |
private String |
image
The path to the help icon |
private String |
onClick
Optional JavaScript statement. |
private Page |
page
The parent <base:page> tag. |
private static long |
serialVersionUID
|
private String |
style
Optional style attribute |
private String |
tabcontrol
The tabcontrol ID to get the help id from. |
private String |
tooltip
Optional tooltip. |
private boolean |
visible
If the help 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 | |
---|---|
Help()
|
Method Summary | |
---|---|
int |
doStartTag()
|
String |
getClazz()
|
String |
getHelpid()
|
String |
getImage()
|
String |
getOnClick()
|
String |
getStyle()
|
String |
getTabcontrol()
|
String |
getTooltip()
|
boolean |
isVisible()
|
void |
setClazz(String clazz)
|
void |
setHelpid(String helpid)
|
void |
setImage(String image)
|
void |
setOnClick(String onclick)
|
void |
setStyle(String style)
|
void |
setTabcontrol(String tabcontrol)
|
void |
setTooltip(String tooltip)
|
void |
setVisible(boolean visible)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, 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 helpid
private String tabcontrol
private String clazz
class
attribute
private String style
style
attribute
private String image
private String tooltip
private String onClick
private boolean visible
Constructor Detail |
---|
public Help()
Method Detail |
---|
public void setHelpid(String helpid)
public String getHelpid()
public void setTabcontrol(String tabcontrol)
public String getTabcontrol()
public void setClazz(String clazz)
public String getClazz()
public void setStyle(String style)
public String getStyle()
public void setImage(String image)
public String getImage()
public void setTooltip(String tooltip)
public String getTooltip()
public void setOnClick(String onclick)
public String getOnClick()
public void setVisible(boolean visible)
public boolean isVisible()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |