org.boxed_economy.components.realclock
クラス TimeUnitSelectComboBoxModel

java.lang.Object
  拡張javax.swing.AbstractListModel
      拡張org.boxed_economy.components.realclock.TimeUnitSelectComboBoxModel
すべての実装インタフェース:
javax.swing.ComboBoxModel, javax.swing.ListModel, java.io.Serializable

public class TimeUnitSelectComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel

TimeUnitSelectComboBoxModel PresentationComponentにおいて、hourunitを選択するComboBoxで利用するGUIのModelです。 modelの内容=[minute,hour,day,month,year]

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

フィールドの概要
static java.util.ResourceBundle resource
           
 
クラス javax.swing.AbstractListModel から継承したフィールド
listenerList
 
コンストラクタの概要
TimeUnitSelectComboBoxModel()
           
 
メソッドの概要
 java.lang.Object getElementAt(int index)
          引数のindexからリストの要素を返します。
 java.lang.Object getSelectedItem()
          現在選択しているリストの要素を返します。
 int getSize()
          リストのサイズを整数で返します。
 void setSelectedItem(java.lang.Object anItem)
          現在選択しているリストの要素を更新します。
 
クラス javax.swing.AbstractListModel から継承したメソッド
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.swing.ListModel から継承したメソッド
addListDataListener, removeListDataListener
 

フィールドの詳細

resource

public static java.util.ResourceBundle resource
コンストラクタの詳細

TimeUnitSelectComboBoxModel

public TimeUnitSelectComboBoxModel()
メソッドの詳細

setSelectedItem

public void setSelectedItem(java.lang.Object anItem)
現在選択しているリストの要素を更新します。

定義:
インタフェース javax.swing.ComboBoxModel 内の setSelectedItem
パラメータ:
anItem - 新しく選択するリストの要素

getSelectedItem

public java.lang.Object getSelectedItem()
現在選択しているリストの要素を返します。

定義:
インタフェース javax.swing.ComboBoxModel 内の getSelectedItem
戻り値:
現在選択している要素

getElementAt

public java.lang.Object getElementAt(int index)
引数のindexからリストの要素を返します。

定義:
インタフェース javax.swing.ListModel 内の getElementAt
パラメータ:
index - 検索するリスト要素のindex
戻り値:
検索したリストの要素

getSize

public int getSize()
リストのサイズを整数で返します。

定義:
インタフェース javax.swing.ListModel 内の getSize
戻り値:
リストのサイズ