org.apache.struts.taglib.html
クラス SelectTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.struts.taglib.html.BaseHandlerTag
                    |
                    +--org.apache.struts.taglib.html.SelectTag
すべての実装インタフェース:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class SelectTag
extends BaseHandlerTag

Custom tag that represents an HTML select element, associated with a bean property specified by our attributes. This tag must be nested inside a form tag.

バージョン:
$Revision: 1.3.2.2 $ $Date: 2001/06/10 03:51:41 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式

フィールドの概要
protected  java.lang.String[] match
          The actual values we will match against, calculated in doStartTag().
protected static MessageResources messages
          The message resources for this package.
protected  java.lang.String multiple
          Should multiple selections be allowed?
protected  java.lang.String name
          The name of the bean containing our underlying property.
protected  java.lang.String property
          The property name we are associated with.
protected  java.lang.String saveBody
          The saved body content of this tag.
protected  java.lang.String size
          How many available options should be displayed when this element is rendered?
protected  java.lang.String value
          The value to compare with for marking an option selected.
 
クラス org.apache.struts.taglib.html.BaseHandlerTag から継承したフィールド
accesskey, tabindex
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したフィールド
bodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したフィールド
id, pageContext
 
インタフェース javax.servlet.jsp.tagext.BodyTag から継承したフィールド
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
インタフェース javax.servlet.jsp.tagext.IterationTag から継承したフィールド
EVAL_BODY_AGAIN
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したフィールド
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
コンストラクタの概要
SelectTag()
           
 
メソッドの概要
 int doAfterBody()
          Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.
 int doEndTag()
          Render the end of this form.
 int doStartTag()
          Render the beginning of this form.
 java.lang.String getMultiple()
           
 java.lang.String getName()
           
 java.lang.String getProperty()
          Return the property name.
 java.lang.String getSize()
           
 java.lang.String getValue()
          Return the comparison value.
 boolean isMatched(java.lang.String value)
          Does the specified value match one of those we are looking for?
 void release()
          Release any acquired resources.
 void setMultiple(java.lang.String multiple)
           
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String property)
          Set the property name.
 void setSize(java.lang.String size)
           
 void setValue(java.lang.String value)
          Set the comparison value.
 
クラス org.apache.struts.taglib.html.BaseHandlerTag から継承したメソッド
getAccesskey, getDisabled, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, prepareEventHandlers, prepareStyles, setAccesskey, setDisabled, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle
 
クラス javax.servlet.jsp.tagext.BodyTagSupport から継承したメソッド
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
クラス javax.servlet.jsp.tagext.TagSupport から継承したメソッド
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.servlet.jsp.tagext.Tag から継承したメソッド
getParent, setPageContext, setParent
 

フィールドの詳細

match

protected java.lang.String[] match
The actual values we will match against, calculated in doStartTag().


messages

protected static MessageResources messages
The message resources for this package.


multiple

protected java.lang.String multiple
Should multiple selections be allowed? Any non-null value will trigger rendering this.


name

protected java.lang.String name
The name of the bean containing our underlying property.


property

protected java.lang.String property
The property name we are associated with.


saveBody

protected java.lang.String saveBody
The saved body content of this tag.


size

protected java.lang.String size
How many available options should be displayed when this element is rendered?


value

protected java.lang.String value
The value to compare with for marking an option selected.

コンストラクタの詳細

SelectTag

public SelectTag()
メソッドの詳細

getMultiple

public java.lang.String getMultiple()

setMultiple

public void setMultiple(java.lang.String multiple)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getSize

public java.lang.String getSize()

setSize

public void setSize(java.lang.String size)

isMatched

public boolean isMatched(java.lang.String value)
Does the specified value match one of those we are looking for?

パラメータ:
value - Value to be compared

getProperty

public java.lang.String getProperty()
Return the property name.


setProperty

public void setProperty(java.lang.String property)
Set the property name.

パラメータ:
property - The new property name

getValue

public java.lang.String getValue()
Return the comparison value.


setValue

public void setValue(java.lang.String value)
Set the comparison value.

パラメータ:
value - The new comparison value

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the beginning of this form.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doStartTag
オーバーライド:
クラス javax.servlet.jsp.tagext.BodyTagSupport 内の doStartTag
例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.

定義:
インタフェース javax.servlet.jsp.tagext.IterationTag 内の doAfterBody
オーバーライド:
クラス javax.servlet.jsp.tagext.BodyTagSupport 内の doAfterBody
例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render the end of this form.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の doEndTag
オーバーライド:
クラス javax.servlet.jsp.tagext.BodyTagSupport 内の doEndTag
例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.

定義:
インタフェース javax.servlet.jsp.tagext.Tag 内の release
オーバーライド:
クラス BaseHandlerTag 内の release


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2002 - Apache Software Foundation