nga.model
クラス SelectableArrayList<E>

java.lang.Object
  上位を拡張 java.util.AbstractCollection<E>
      上位を拡張 java.util.AbstractList<E>
          上位を拡張 java.util.ArrayList<E>
              上位を拡張 nga.model.SelectableArrayList<E>
すべての実装されたインタフェース:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, SelectableList<E>, UpdatableByText
直系の既知のサブクラス:
KeyValueList

public class SelectableArrayList<E>
extends ArrayList<E>
implements SelectableList<E>, UpdatableByText

SelectableList を実装した ArrayList。

関連項目:
直列化された形式

フィールドの概要
 
クラス java.util.AbstractList から継承されたフィールド
modCount
 
コンストラクタの概要
SelectableArrayList()
          SelectableArrayList を作成する。
SelectableArrayList(Collection<E> c)
          SelectableArrayList を作成する。
SelectableArrayList(int initialCapacity)
          SelectableArrayList を作成する。
 
メソッドの概要
 E getSelected()
          現在選択状態にある要素を取得する。
 int getSelectedIndex()
          選択された要素のインデックスを取得する。
 void setSelectedIndex(int index)
          選択された要素のインデックスを設定する。
 void update(String value)
          value 引数を数値に変換し,それを引数にして setSelectedIndex メソッドを呼び出す。
 
クラス java.util.ArrayList から継承されたメソッド
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
クラス java.util.AbstractList から継承されたメソッド
equals, hashCode, iterator, listIterator, listIterator, subList
 
クラス java.util.AbstractCollection から継承されたメソッド
containsAll, removeAll, retainAll, toString
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.List から継承されたメソッド
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

コンストラクタの詳細

SelectableArrayList

public SelectableArrayList(int initialCapacity)
SelectableArrayList を作成する。

パラメータ:
initialCapacity -

SelectableArrayList

public SelectableArrayList()
SelectableArrayList を作成する。


SelectableArrayList

public SelectableArrayList(Collection<E> c)
SelectableArrayList を作成する。

パラメータ:
c -
メソッドの詳細

setSelectedIndex

public void setSelectedIndex(int index)
インタフェース SelectableList の記述:
選択された要素のインデックスを設定する。

定義:
インタフェース SelectableList<E> 内の setSelectedIndex
パラメータ:
index - 選択された要素のインデックス。
関連項目:
SelectableList.setSelectedIndex(int)

getSelectedIndex

public int getSelectedIndex()
インタフェース SelectableList の記述:
選択された要素のインデックスを取得する。

定義:
インタフェース SelectableList<E> 内の getSelectedIndex
戻り値:
選択された要素のインデックス。
関連項目:
SelectableList.getSelectedIndex()

getSelected

public E getSelected()
現在選択状態にある要素を取得する。

戻り値:
現在選択状態にある要素。

update

public void update(String value)
            throws ParseException
value 引数を数値に変換し,それを引数にして setSelectedIndex メソッドを呼び出す。

定義:
インタフェース UpdatableByText 内の update
パラメータ:
value - 現在のインスタンスを更新するためのテキスト。
例外:
ParseException - テキスト解析に失敗した場合。
関連項目:
UpdatableByText.update(java.lang.String)