|
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.Note
public class Note
This tag is used to display small notes on a BASE web page.
Example:
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> <base:note type="info" title="Some information"> Here is some important information... </base:note>
Syntax:
<base:note id=... clazz=... style=... messagestyle=... type=info|information|warning|question|error title=... icon=... visible=... >
Attribute | Default value | Required | Description |
id | - | no | The ID of the note. 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 | note | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different notes.
|
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different notes.
|
messagestyle | - | no |
The value if this attribute goes directly into the standard HTML
style attribute of the message part. This allows you to apply different styles
to different notes.
|
type | error | yes | The type of note to display. Four types are pre-defined:
icon
unless it is specified.
|
title | no | The title of the note. | |
icon | no |
The filename of an icon to display together with the message. If
not specified a default icon matching the type attribute is
automatically selected. The icon file must be located
in the /images directory.
|
|
visible | true | no | If the note should be visible or not. |
Field Summary | |
---|---|
private String |
clazz
Optional class attribute |
private String |
icon
The filename of an optional icon that should be displayed with the error message. |
private String |
messageStyle
Optional style attribute for the message section |
private static int |
NOTE_TYPE_ERROR
|
private static int |
NOTE_TYPE_INFORMATION
|
private static int |
NOTE_TYPE_QUESTION
|
private static int |
NOTE_TYPE_WARNING
|
private Page |
page
The parent <base:page> tag. |
private static long |
serialVersionUID
|
private String |
style
Optional style attribute |
private String |
title
The title of the note. |
private int |
type
The type of note. |
private boolean |
visible
If the note 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 | |
---|---|
Note()
|
Method Summary | |
---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getClazz()
|
String |
getIcon()
|
String |
getMessagestyle()
|
String |
getStyle()
|
String |
getTitle()
|
boolean |
isVisible()
|
void |
setClazz(String clazz)
|
void |
setIcon(String icon)
|
void |
setMessagestyle(String messageStyle)
|
void |
setStyle(String style)
|
void |
setTitle(String title)
|
void |
setType(String type)
|
void |
setVisible(boolean visible)
|
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 static final int NOTE_TYPE_ERROR
private static final int NOTE_TYPE_INFORMATION
private static final int NOTE_TYPE_WARNING
private static final int NOTE_TYPE_QUESTION
private Page page
private String clazz
class
attribute
private String style
style
attribute
private String messageStyle
style
attribute for the message section
private int type
private String title
private String icon
private boolean visible
Constructor Detail |
---|
public Note()
Method Detail |
---|
public void setClazz(String clazz)
public String getClazz()
public void setStyle(String style)
public String getStyle()
public void setMessagestyle(String messageStyle)
public String getMessagestyle()
public void setType(String type)
public void setTitle(String title)
public String getTitle()
public void setIcon(String icon)
public String getIcon()
public void setVisible(boolean visible)
public boolean isVisible()
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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |