public class Selection_RADIO extends Selection_NULL
データのコード情報を取り扱うクラスです。 コードのキーとラベルの情報から、HTMLのメニューやリストを作成するための オプション タグを作成したり、与えられたキーをもとに、チェック済みのオプションタグを作成したり します。
NO_VALUE_OPTION
コンストラクタと説明 |
---|
Selection_RADIO(CodeData cdData)
コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getOption(String selectValue,
boolean seqFlag,
boolean useShortLabel)
初期値が選択済みの 選択肢(オプション)を返します。
|
String |
getRadio(String name,
String selectValue,
boolean useLabel)
初期値が選択済みの 選択肢(オプション)を返します。
|
String |
getRadioLabel(String selectValue)
選択肢(value)に対するラベルを返します。
|
String |
getValueLabel(String selectValue,
boolean flag)
選択肢(value)に対するラベルを返します。
|
getOption, getValueLabel, isTimeOver, useMultiSelect
public Selection_RADIO(CodeData cdData)
cdData
- コードデータオブジェクトpublic String getOption(String selectValue, boolean seqFlag, boolean useShortLabel)
getOption
インタフェース内 Selection
getOption
クラス内 Selection_NULL
selectValue
- 選択されている値seqFlag
- シーケンスアクセス機能の指定useShortLabel
- 短ラベルの指定Selection_NULL.getOption( String, boolean )
5.1.3.0 (2010/02/01) 追加 |
public String getRadio(String name, String selectValue, boolean useLabel)
getRadio
インタフェース内 Selection
getRadio
クラス内 Selection_NULL
name
- ラジオの nameselectValue
- 選択されている値useLabel
- ラベル表示の有無 [true:有/false:無]2.1.0.1 (2002/10/17) 選択リストを、正方向にしか選べないようにする sequenceFlag を導入する |
3.5.6.3 (2004/07/12) キャッシュを利用せず毎回タグを作成します。 |
3.8.6.0 (2006/09/29) useLabel 属性 追加 |
public String getValueLabel(String selectValue, boolean flag)
getValueLabel
インタフェース内 Selection
getValueLabel
クラス内 Selection_NULL
selectValue
- 選択肢の値flag
- 短縮ラベルを使用する [true:使用する/false:しない]Selection_NULL.getValueLabel( String )
4.0.0.0 (2005/11/30) を追加 |
public String getRadioLabel(String selectValue)
getRadioLabel
インタフェース内 Selection
getRadioLabel
クラス内 Selection_NULL
selectValue
- 選択肢の値getValueLabel( String,boolean )
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.