public class Selection_KEYVAL extends Selection_NULL
データのコード情報を取り扱うクラスです。 文字列の 「キー:ラベル キー:ラベル」の情報から、HTMLのメニューやリストを作成するための オプションタグを作成したり、与えられたキーをもとに、チェック済みのオプションタグを 作成したりします。 ラベル にスペースを含ませる場合は、ダブルクォーテーションで囲ってください。
5.6.6.0 (2013/07/05) 新規追加 |
5.7.7.1 (2014/06/13) Selection_NULL を 基本実装とします。 |
NO_VALUE_OPTION
コンストラクタと説明 |
---|
Selection_KEYVAL(String strCode)
コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getOption(String selectValue,
boolean seqFlag,
boolean useShortLabel)
初期値が選択済みの 選択肢(オプション)を返します。
|
String |
getValueLabel(String selectValue,
boolean flag)
選択肢(value)に対するラベルを返します。
|
getOption, getRadio, getRadioLabel, getValueLabel, isTimeOver, useMultiSelect
public Selection_KEYVAL(String strCode)
strCode
- コードデータパラメータ文字列5.6.7.1 (2013/08/09) 「キー:ラベル キー:ラベル」分解に、クオート処理を加味 |
public String getOption(String selectValue, boolean seqFlag, boolean useShortLabel)
getOption
インタフェース内 Selection
getOption
クラス内 Selection_NULL
selectValue
- 選択されている値seqFlag
- シーケンスアクセス機能 [true:ON/false:OFF]useShortLabel
- ラベル(短)をベースとしたオプション表示を行うかどうか(常にfalse)。Selection_NULL.getOption( String, boolean )
public String getValueLabel(String selectValue, boolean flag)
getValueLabel
インタフェース内 Selection
getValueLabel
クラス内 Selection_NULL
selectValue
- 選択肢の値flag
- 短縮ラベルを [true:使用する/false:しない](常に false)Selection_NULL.getValueLabel( String )
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.