|
|||||||||
| Home >> All >> com >> RuntimeCollective >> bboard >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.bboard.tag
Class IconTag

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.BaseHandlerTag
com.RuntimeCollective.bboard.tag.IconTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class IconTag
- extends org.apache.struts.taglib.html.BaseHandlerTag
A JSP tag that displays the emoticon ("gremlin") icon for a Topic or Message, or the blank emoticon ("blank.gif") if none is set.
Uses the bboard.icons global-forward to find the path to preface the icons with.
This tag takes either name, property (optional) and scope (optional),
or icon.
-
name-- The name of the bean that holds the value. [Optional] -
property-- The property on the bean that holds the value. [Optional - defaults to 'flag'] -
scope-- The scope of the bean that holds the value. [Optional] -
value-- The actual filename of an icon to display, in the icon directory [Optional] - Version:
- $Id: IconTag.java,v 1.7 2003/09/30 15:12:44 joe Exp $
| Field Summary | |
protected java.lang.String |
name
The form bean name. |
protected java.lang.String |
property
The property name |
protected java.lang.String |
scope
The scope of the bean. |
protected java.lang.String |
value
The actual filename of an icon. |
| Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag |
accesskey, defaultLocale, doDisabled, doReadonly, indexed, messages, tabindex |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 | |
IconTag()
|
|
| Method Summary | |
int |
doStartTag()
Default processing of the start tag returning EVAL_BODY_BUFFERED. |
java.lang.String |
getName()
Get the form bean name. |
java.lang.String |
getProperty()
Get the property name. |
java.lang.String |
getScope()
Get the scope of the bean. |
java.lang.String |
getValue()
Get the actual filename of an icon. |
static java.lang.String |
linkForFlag(java.lang.String flag,
javax.servlet.jsp.PageContext pageContext)
Return an icon for the given flag string |
void |
release()
Release any acquired resources. |
void |
setName(java.lang.String name)
Set the form bean name. |
void |
setProperty(java.lang.String property)
Set the property name. |
void |
setScope(java.lang.String scope)
Set the scope of the bean. |
void |
setValue(java.lang.String value)
Set the actual filename of an icon. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doEndTag, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Field Detail |
property
protected java.lang.String property
- The property name
name
protected java.lang.String name
- The form bean name.
scope
protected java.lang.String scope
- The scope of the bean.
value
protected java.lang.String value
- The actual filename of an icon.
| Constructor Detail |
IconTag
public IconTag()
| Method Detail |
getProperty
public java.lang.String getProperty()
- Get the property name.
setProperty
public void setProperty(java.lang.String property)
- Set the property name.
getName
public java.lang.String getName()
- Get the form bean name.
setName
public void setName(java.lang.String name)
- Set the form bean name.
getScope
public java.lang.String getScope()
- Get the scope of the bean.
setScope
public void setScope(java.lang.String scope)
- Set the scope of the bean.
getValue
public java.lang.String getValue()
- Get the actual filename of an icon.
setValue
public void setValue(java.lang.String value)
- Set the actual filename of an icon.
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.BodyTagSupport - Default processing of the start tag returning EVAL_BODY_BUFFERED.
release
public void release()
- Description copied from class:
org.apache.struts.taglib.html.BaseHandlerTag - Release any acquired resources.
linkForFlag
public static java.lang.String linkForFlag(java.lang.String flag, javax.servlet.jsp.PageContext pageContext) throws java.net.MalformedURLException
- Return an icon for the given flag string
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> bboard >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC