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
直系の既知のサブクラス:
NestedSelectTag

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.1 $ $Date: 2004/10/20 03:26:42 $
関連項目:
直列化された形式

フィールドの概要
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, defaultLocale, indexed, 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()
           
 
メソッドの概要
private  void calculateMatchValues()
          Calculate the match values we will actually be using.
 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 select tag.
 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.
protected  java.lang.String renderSelectStartElement()
          Create an appropriate select start element based on our parameters.
 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, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getIndexed, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
クラス 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.BodyTag から継承したメソッド
 
インタフェース 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 select tag.

Support for indexed property since Struts 1.1

例外:
javax.servlet.jsp.JspException - if a JSP exception has occurred

renderSelectStartElement

protected java.lang.String renderSelectStartElement()
                                             throws javax.servlet.jsp.JspException
Create an appropriate select start element based on our parameters.

例外:
javax.servlet.jsp.JspException
導入されたバージョン:
Struts 1.1

calculateMatchValues

private void calculateMatchValues()
                           throws javax.servlet.jsp.JspException
Calculate the match values we will actually be using.

例外:
javax.servlet.jsp.JspException

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.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.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-2004 - Apache Software Foundation