jp.co.fujitsu.reffi.client.nexaweb.parser
クラス ComboBoxValueParser

java.lang.Object
  上位を拡張 jp.co.fujitsu.reffi.client.nexaweb.parser.ComboBoxValueParser
すべての実装されたインタフェース:
Parser

public class ComboBoxValueParser
extends Object
implements Parser

[概 要]

comboBoxエレメントの保持する値を取得します。

[詳 細]

comboBoxエレメントの値を取得する為の Parser.parse(Element)を実装します。

[備 考]

このクラスはElementValueParserによってインスタンス化され、使用されます。
詳細はElementValueParser.parse(Element)を参照して下さい。

[環 境] JDK 6.0 Update 11

Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.

作成者:
Project Reffi

コンストラクタの概要
protected ComboBoxValueParser()
          [概 要] Protectedコンストラクタです。
 
メソッドの概要
 ElementValues parse(Element comboBox)
          [概 要] comboBoxの値を取得します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ComboBoxValueParser

protected ComboBoxValueParser()

[概 要]

Protectedコンストラクタです。

[詳 細]

デフォルト処理は有りません。

[備 考]

comboBoxエレメント値をパースするには ElementValueParser.parse(Element) を使用して下さい。

メソッドの詳細

parse

public ElementValues parse(Element comboBox)

[概 要]

comboBoxの値を取得します。

[詳 細]

comboBoxエレメントの子要素listBox/listItemの内、selected属性値がtrueのものを調べ、
そのlistItemからvalue属性値を取得、name属性値=value属性値でElementValueオブジェクトを生成します。
生成されたElementValueオブジェクトはElementValuesオブジェクトの インデックス0として返却されます。

[備 考]

selected属性がついていない場合は空文字が返却されます。

定義:
インタフェース Parser 内の parse
パラメータ:
comboBox - 値をパースするcomboBoxエレメント


Copyright(C) Fujitsu All Rights Reserved.