de.limdul.cassiopeia.gui.localgame
Class BotComboBoxModel
java.lang.Object
javax.swing.AbstractListModel
de.limdul.cassiopeia.gui.localgame.BotComboBoxModel
- All Implemented Interfaces:
- Serializable, ComboBoxModel, ListModel
public class BotComboBoxModel
- extends AbstractListModel
- implements ComboBoxModel
Model für die ComboBox, die die verschiedenen Bots zur Auswahl anzeigt.
- Author:
- Martin Köhler
$Revision: 69 $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BotComboBoxModel
public BotComboBoxModel(StringList bots)
- Erzeugt das Model.
- Parameters:
bots - Die Liste der Bots.
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()
getBotIdentifier
public String getBotIdentifier()
- Liefert den Identifier des ausgewählten Bots.
- Returns:
- Der Identifier des ausgewählten Bots.