com.ivata.mask.web.tag.html
Class OptionTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.html.OptionTag
              extended bycom.ivata.mask.web.tag.html.OptionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class OptionTag
extends org.apache.struts.taglib.html.OptionTag

Overrides an HTML <option> tag, by overriding the class from Struts .

Tag attributes:

attribute reqd. param. class description
title false java.lang.String Title or tool-tip to be displayed when the mouse is over this option.
readOnly false boolean Specifies the form elements should be displayed only and cannot be altered.
valueKey true java.lang.String Specifies the localized text to use when the field is read-only.

Note: all the tag attributes from Stuts are also included.

Since:
ivata masks 0.4 (2003-01-15)
Version:
$Revision: 1.3 $ TODO: add titleKey
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.taglib.html.OptionTag
bundle, defaultLocale, disabled, key, locale, messages, styleId, text, value
 
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
OptionTag()
           
 
Method Summary
 int doEndTag()
           Overridden to add the title attribute and set the value in text in the surrounding select tag.
 java.lang.String getTitle()
           Tooltip or title to be displayed when the mouse is over this option.
 void setTitle(java.lang.String titleParam)
           Tooltip or title to be displayed when the mouse is over this option.
 
Methods inherited from class org.apache.struts.taglib.html.OptionTag
doAfterBody, doStartTag, getBundle, getDisabled, getKey, getLocale, getStyle, getStyleClass, getStyleId, getValue, release, renderOptionElement, setBundle, setDisabled, setKey, setLocale, setStyle, setStyleClass, setStyleId, setValue, text
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
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
 

Constructor Detail

OptionTag

public OptionTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException

Overridden to add the title attribute and set the value in text in the surrounding select tag.

Returns:
EVAL_PAGE since we always want to evaluate the page after this tag.
Throws:
javax.servlet.jsp.JspException - if there is an error wrting to out.print()

getTitle

public java.lang.String getTitle()

Tooltip or title to be displayed when the mouse is over this option.

Returns:
the current value of title.

setTitle

public final void setTitle(java.lang.String titleParam)

Tooltip or title to be displayed when the mouse is over this option.

Parameters:
titleParam - the new value of title.


Copyright © 2001-2005 ivata limited. All Rights Reserved.