public class Selection_NULL extends Object implements Selection
データのコード情報を取り扱うSelectionクラスの、NULL時オブジェクトです。 以前は、Selection オブジェクトが null の場合に、NullPointerException で いきなりエラーで停止していましたが、この、NULLセレクションを作成することで、 取りあえず、どういう状況なのか、判るようにします。
5.7.3.0 (2014/02/07) 新規追加 |
5.7.7.1 (2014/06/13) Selectionオブジェクトの基本実装とします。 |
NO_VALUE_OPTION
コンストラクタと説明 |
---|
Selection_NULL()
デフォルトコンストラクター
継承元のクラスから、呼び出させるように、作成しておきます。
|
Selection_NULL(String strCode,
String lang)
引数に初期メッセージを指定して作成する、コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getOption(String selectValue,
boolean seqFlag,
boolean useShortLabel)
初期値が選択済みの 選択肢(オプション)を返します。
|
String |
getOption(String name,
String selectValue,
boolean useLabel)
初期値が選択済みの 選択肢(オプション)を返します。
|
String |
getValueLabel(String selectValue)
選択肢(value)に対するラベルを返します。
|
String |
getValueLabel(String selectValue,
boolean flag)
選択肢(value)に対するラベルを返します。
|
boolean |
isTimeOver()
オブジェクトのキャッシュが時間切れかどうかを返します。
|
protected StringBuilder |
setCodeParam(StringBuilder buf,
String paramKey)
コードリソースのパラメータを適切な文字列に変換して返します。
|
public Selection_NULL()
5.7.7.1 (2014/06/13) 新規追加 |
public String getOption(String selectValue, boolean seqFlag, boolean useShortLabel)
public String getOption(String name, String selectValue, boolean useLabel)
public String getValueLabel(String selectValue)
getValueLabel
インタフェース内 Selection
selectValue
- 選択肢の値getValueLabel( String,boolean )
public String getValueLabel(String selectValue, boolean flag)
getValueLabel
インタフェース内 Selection
selectValue
- 選択肢の値flag
- 短縮ラベルを [true:使用する/false:しない](常に false)getValueLabel( String )
5.7.3.0 (2014/02/07) 新規追加 |
public boolean isTimeOver()
isTimeOver
インタフェース内 Selection
protected StringBuilder setCodeParam(StringBuilder buf, String paramKey)
buf
- 変換結果を格納するStringBuilderparamKey
- 変換処理の対象となるパラメータ6.2.0.0 (2015/02/27) コードリソースのパラメータの指定方法を変更します。 |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.