|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.standard.tag.common.fmt.MessageSupport
org.apache.taglibs.standard.tag.el.fmt.MessageTag
edu.internet2.middleware.grouper.ui.tags.GrouperMessageTag
public class GrouperMessageTag
A handler for <message> that accepts attributes as Strings and evaluates them as expressions at runtime. Substitutes keywords into underlined tooltips. The default bundle is "${nav}". If the value is provided, use that instead of looking up in a properties file, and perhaps do a tooltip lookup
Field Summary | |
---|---|
static String |
TOOLTIP_PREFIX
in the nav.properties, tooltips must start with this prefix. |
static String |
TOOLTIP_TARGETTED_PREFIX
target a tooltip on a certain message |
static String |
TOOLTIP_TARGETTED_REF_PREFIX
target a tooltip on a certain message, and make the value of the tooltip a reference to another tooltip |
Fields inherited from class org.apache.taglibs.standard.tag.common.fmt.MessageSupport |
---|
UNDEFINED_KEY |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
GrouperMessageTag()
|
Method Summary | |
---|---|
int |
doEndTag()
this is overridden to put the tooltips in the text |
int |
doStartTag()
|
String |
getTooltipDisable()
if we should not do tooltips for this tag |
void |
release()
|
void |
setEscapeHtml(boolean escapeHtml1)
|
void |
setEscapeSingleQuotes(String escapeSingleQuotes1)
if we should escape single quotes with \' for javascript |
void |
setIgnoreTooltipStyle(String ignoreTooltipStyle1)
|
void |
setTooltipDisable(String tooltipDisable1)
if we should not do tooltips for this tag |
void |
setTooltipRef(String tooltipRef1)
for a tooltip on this message (similar to a targetted tooltip), this is name from nav.properties |
void |
setUseNewTermContext(String useNewTermContext1)
terms only display once per page. |
void |
setValue(String value1)
if specified use this value and not lookup in resource file |
void |
setValueTooltip(String valueTooltip1)
if directly putting in the tooltip, do so here |
void |
setValueTooltipKey(String valueTooltipKey1)
set value tooltip |
String |
substituteTooltips(String message,
boolean isIgnoreTooltipStyle)
substitute tooltips |
boolean |
tooltipDisable()
see if disabled (and validate the boolean, default to false if not set) |
boolean |
useNewTermContext()
see if use new term context (and validate the boolean, default to false if not set) |
Methods inherited from class org.apache.taglibs.standard.tag.el.fmt.MessageTag |
---|
setBundle, setKey |
Methods inherited from class org.apache.taglibs.standard.tag.common.fmt.MessageSupport |
---|
addParam, setScope, setVar |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
public static final String TOOLTIP_PREFIX
public static final String TOOLTIP_TARGETTED_PREFIX
public static final String TOOLTIP_TARGETTED_REF_PREFIX
Constructor Detail |
---|
public GrouperMessageTag()
Method Detail |
---|
public void release()
release
in interface Tag
release
in class org.apache.taglibs.standard.tag.el.fmt.MessageTag
MessageTag.release()
public void setValueTooltip(String valueTooltip1)
valueTooltip1
- public boolean useNewTermContext()
public void setEscapeHtml(boolean escapeHtml1)
escapeHtml1
- the escapeHtml to setpublic boolean tooltipDisable()
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class org.apache.taglibs.standard.tag.common.fmt.MessageSupport
JspException
public String substituteTooltips(String message, boolean isIgnoreTooltipStyle)
message
- isIgnoreTooltipStyle
- true if should ignore tooltip style
public String getTooltipDisable()
public void setTooltipDisable(String tooltipDisable1)
tooltipDisable1
- the tooltipDisable to setpublic void setUseNewTermContext(String useNewTermContext1)
useNewTermContext1
- the useNewTermContext to setpublic int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class org.apache.taglibs.standard.tag.el.fmt.MessageTag
JspException
MessageTag.doStartTag()
public void setEscapeSingleQuotes(String escapeSingleQuotes1)
escapeSingleQuotes1
- the escapeSingleQuotes to setpublic void setTooltipRef(String tooltipRef1)
tooltipRef1
- the tooltipRef to setpublic void setIgnoreTooltipStyle(String ignoreTooltipStyle1)
ignoreTooltipStyle1
- the ignoreTooltipStyle to setpublic void setValue(String value1)
value1
- public void setValueTooltipKey(String valueTooltipKey1)
valueTooltipKey1
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |