パッケージ jp.co.antenna.ptl

クラス PtlFieldRadioGroup

すべての実装されたインタフェース:
AutoCloseable

public class PtlFieldRadioGroup extends PtlFieldButton
フォームのラジオボタングループフィールドを表現したクラスです。
  • コンストラクタの詳細

    • PtlFieldRadioGroup

      public PtlFieldRadioGroup() throws PtlException
      コンストラクタ
      例外:
      PtlException - 例外
    • PtlFieldRadioGroup

      public PtlFieldRadioGroup(PtlFieldRadioGroup obj) throws PtlException
      コピーコンストラクタ
      alias copy
      パラメータ:
      obj - コピー元オブジェクト。
      例外:
      PtlException - 例外
  • メソッドの詳細

    • getValue

      public String getValue() throws PtlException
      選択されているラジオボタンの状態名を取得。
      戻り値:
      状態名。
      例外:
      PtlException - 例外
    • hasSelectedButton

      public boolean hasSelectedButton() throws PtlException
      選択されているラジオボタンがあるかどうかを取得。
      戻り値:
      true: 選択されている。false: 選択されていない。
      例外:
      PtlException - 例外
    • getSelectedButton

      public PtlFieldRadioButton getSelectedButton() throws PtlException
      選択されているラジオボタンを取得。

      選択されているラジオボタンを取得します。

      戻り値:
      PtlFieldRadioButton。
      例外:
      PtlException - 例外
    • getKidsCount

      public int getKidsCount() throws PtlException
      ラジオボタン数を取得。
      戻り値:
      PtlFieldRadioButton数。
      例外:
      PtlException - 例外
    • getKid

      public PtlFieldRadioButton getKid(int index) throws PtlException
      ラジオボタンを取得。

      指定した番号のラジオボタンを取得します。

      パラメータ:
      index - Index番号。0が先頭。
      indexが負やラジオボタン数以上の場合は、例外が発生します。
      戻り値:
      PtlFieldRadioButton。
      例外:
      PtlException - 例外
    • append

      public void append(PtlFieldRadioButton radioButton) throws PtlException
      ラジオボタンを追加。
      パラメータ:
      radioButton - 追加するPtlFieldRadioButton。
      例外:
      PtlException - 例外