de.limdul.cassiopeia.gui.localgame
Class HumanBotComboboxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by de.limdul.cassiopeia.gui.localgame.HumanBotComboboxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel

public class HumanBotComboboxModel
extends AbstractListModel
implements ComboBoxModel

Listmodel für die Combox zum Auswählen zwischen Mensch/Bot im lokalen Spiel.

Author:
Martin Köhler $Revision: 69 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
HumanBotComboboxModel(NewLocalGameDialog gameDialog, int slot)
          Erzeugt das Model.
 
Method Summary
 Object getElementAt(int index)
           
 Object getSelectedItem()
           
 int getSize()
           
 void setSelectedItem(Object anItem)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

HumanBotComboboxModel

public HumanBotComboboxModel(NewLocalGameDialog gameDialog,
                             int slot)
Erzeugt das Model.

Parameters:
gameDialog - Der Spieldialog.
slot - Der Slot für diese Box.
Method Detail

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel
See Also:
ComboBoxModel.getSelectedItem()

setSelectedItem

public void setSelectedItem(Object anItem)
Specified by:
setSelectedItem in interface ComboBoxModel
See Also:
ComboBoxModel.setSelectedItem(java.lang.Object)

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel
See Also:
ListModel.getElementAt(int)

getSize

public int getSize()
Specified by:
getSize in interface ListModel
See Also:
ListModel.getSize()