Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
GUIStartingMapsComboBox (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Model model, @NotNull final NewCharModel newCharModel, @Nullable final GUILabelLog label, @NotNull final GuiFactory guiFactory) | |
void | notifyOpen () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String > | |
void | dispose () |
Dimension | getMinimumSize () |
Dimension | getPreferredSize () |
TooltipText | getTooltip () |
void | setBounds (final int x, final int y, final int width, final int height) |
Protected Member Functions | |
String | getDescription (@Nullable final String item) |
Component | getListCellRendererComponent (@NotNull final JList<? extends String > list, @Nullable final String value, final int index, final boolean selected, final boolean cellHasFocus) |
void | updateSelectedItem (@Nullable final String item) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String > | |
abstract String | getDescription ( @Nullable T item) |
abstract Component | getListCellRendererComponent ( @NotNull final JList<? extends T > list, @Nullable final T value, final int index, final boolean selected, final boolean cellHasFocus) |
GUIComboBox ( @NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @Nullable final GUILabelLog label, @NotNull final GuiFactory guiFactory) | |
void | setSelectedItem ( @NotNull final T item) |
void | updateModel ( @Nullable final List< T > elements) |
abstract void | updateSelectedItem ( @Nullable final T item) |
void | updateSelectedItem () |
Private Member Functions | |
void | updateModel () |
Private Attributes | |
final Model | model |
final NewCharacterInformationListener | newCharacterInformationListener |
final NewCharModel | newCharModel |
final NewCharModelListener | newCharModelListener |
final JLabel | renderer = new JLabel() |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIComboBox that shows available starting maps for character creation.
Definition at line 47 of file GUIStartingMapsComboBox.java.
com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@NotNull final Model | model, | ||
@NotNull final NewCharModel | newCharModel, | ||
@Nullable final GUILabelLog | label, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance.
tooltipManager | the tooltip manager to update |
elementListener | the element listener to notify |
name | the name of this element |
model | the model to display |
newCharModel | the new char model to show |
label | the label to update or null
|
guiFactory | the global GUI factory instance |
Definition at line 134 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.gui.label.NewCharModel.addListener(), com.realtime.crossfire.jxclient.character.NewCharacterInformation.addNewCharacterInformationListener(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getStartingMap(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.label, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.model, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharacterInformationListener, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharModelListener, com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.setSelectedItem(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.updateModel().
void com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.dispose | ( | ) |
Definition at line 145 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.model, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharacterInformationListener, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharModelListener, com.realtime.crossfire.jxclient.gui.label.NewCharModel.removeListener(), and com.realtime.crossfire.jxclient.character.NewCharacterInformation.removeNewCharacterInformationListener().
|
protected |
Definition at line 187 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.character.StartingMap.getDescription(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.character.NewCharacterInformation.getStartingMapInfo(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.model.
|
protected |
Definition at line 172 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.character.StartingMap.getName(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.character.NewCharacterInformation.getStartingMapInfo(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.model, and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.renderer.
void com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.notifyOpen | ( | ) |
Definition at line 152 of file GUIStartingMapsComboBox.java.
|
private |
Updates the combo box model to reflect the current starting map list of model.
Definition at line 159 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.character.StartingMap.getName(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.character.NewCharacterInformation.getStartingMapList(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.model, and com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.updateSelectedItem().
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox().
|
protected |
Definition at line 179 of file GUIStartingMapsComboBox.java.
References com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.newCharModel, and com.realtime.crossfire.jxclient.gui.label.NewCharModel.setStartingMap().
|
private |
The Model to track for available races.
Definition at line 58 of file GUIStartingMapsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.dispose(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.getDescription(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.getListCellRendererComponent(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.updateModel().
|
private |
The NewCharacterInformationListener attached to model.
Definition at line 76 of file GUIStartingMapsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox().
|
private |
The NewCharModel that is shown.
Definition at line 64 of file GUIStartingMapsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.dispose(), com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.updateSelectedItem().
|
private |
The listener attached to newCharModel.
Definition at line 115 of file GUIStartingMapsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.GUIStartingMapsComboBox().
|
private |
The JLabel that displays the list values.
Definition at line 70 of file GUIStartingMapsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIStartingMapsComboBox.getListCellRendererComponent().
|
staticprivate |
The serial version UID.
Definition at line 52 of file GUIStartingMapsComboBox.java.