org.seasar.cubby.tags
クラス SelectTag

java.lang.Object
  上位を拡張 javax.servlet.jsp.tagext.SimpleTagSupport
      上位を拡張 org.seasar.cubby.tags.SelectTag
すべての実装されたインタフェース:
DynamicAttributes, JspTag, SimpleTag

public class SelectTag
extends SimpleTagSupport

selectを出力するタグ

導入されたバージョン:
1.0.0
作成者:
agata, baba

コンストラクタの概要
SelectTag()
           
 
メソッドの概要
 void doTag()
          
protected  Map<String,Object> getDynamicAttribute()
          DynamicAttributesを取得します。
protected  PageContext getPageContext()
          PageContextを取得します。
protected  HttpServletRequest getRequest()
          HttpServletRequestを取得します。
 void setDynamicAttribute(String uri, String localName, Object value)
           DynamicAttributesをセットします。
 void setEmptyOption(Boolean emptyOption)
          空のoption要素を出力するかどうかをセットします。
 void setEmptyOptionLabel(String emptyOptionLabel)
          空のoption要素を出力した場合のラベル文字列をセットします。
 void setItems(Object items)
          option要素リストをセットします。
 void setLabelProperty(String labelProperty)
          optionのラベルのプロパティ名をセットします。
 void setName(String name)
          name属性を設定します。
 void setValueProperty(String valueProperty)
          optionのラベルのプロパティ名をセットします。
protected static String toString(Object object)
          オブジェクトを文字列に変換します。
 
クラス javax.servlet.jsp.tagext.SimpleTagSupport から継承されたメソッド
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SelectTag

public SelectTag()
メソッドの詳細

setItems

public void setItems(Object items)
option要素リストをセットします。

パラメータ:
items - option要素リスト

setLabelProperty

public void setLabelProperty(String labelProperty)
optionのラベルのプロパティ名をセットします。

パラメータ:
labelProperty - optionのラベルのプロパティ名

setValueProperty

public void setValueProperty(String valueProperty)
optionのラベルのプロパティ名をセットします。

パラメータ:
valueProperty - optionのラベルのプロパティ名

setEmptyOption

public void setEmptyOption(Boolean emptyOption)
空のoption要素を出力するかどうかをセットします。

パラメータ:
emptyOption - 空のoption要素を出力するかどうか

setEmptyOptionLabel

public void setEmptyOptionLabel(String emptyOptionLabel)
空のoption要素を出力した場合のラベル文字列をセットします。

パラメータ:
emptyOptionLabel - 空のoption要素を出力した場合のラベル文字列

setName

public void setName(String name)
name属性を設定します。

パラメータ:
name - name属性

doTag

public void doTag()
           throws JspException,
                  IOException

定義:
インタフェース SimpleTag 内の doTag
オーバーライド:
クラス SimpleTagSupport 内の doTag
例外:
JspException
IOException

setDynamicAttribute

public void setDynamicAttribute(String uri,
                                String localName,
                                Object value)
                         throws JspException
DynamicAttributesをセットします。 FIXME 現在はuriを無視しているので、必要であれば対応したほうがよいかも

定義:
インタフェース DynamicAttributes 内の setDynamicAttribute
例外:
JspException

getDynamicAttribute

protected Map<String,Object> getDynamicAttribute()
DynamicAttributesを取得します。

戻り値:
DynamicAttributes

getPageContext

protected PageContext getPageContext()
PageContextを取得します。

戻り値:
PageContext

getRequest

protected HttpServletRequest getRequest()
HttpServletRequestを取得します。

戻り値:
HttpServletRequest

toString

protected static String toString(Object object)
オブジェクトを文字列に変換します。 オブジェクトがnullの場合、空文字を返します。

パラメータ:
object - 対象のオブジェクト
戻り値:
オブジェクトのtoString結果。


Copyright © 2006-2009 The Seasar Foundation. All Rights Reserved.