Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
GUIClassesComboBox (@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 classes for character creation.
Definition at line 46 of file GUIClassesComboBox.java.
com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox | ( | @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 132 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.gui.label.NewCharModel.addListener(), com.realtime.crossfire.jxclient.character.NewCharacterInformation.addNewCharacterInformationListener(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getClass_(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.label, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.model, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharacterInformationListener, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharModelListener, com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.setSelectedItem(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.updateModel().
void com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.dispose | ( | ) |
Definition at line 143 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.model, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharacterInformationListener, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharModelListener, com.realtime.crossfire.jxclient.gui.label.NewCharModel.removeListener(), and com.realtime.crossfire.jxclient.character.NewCharacterInformation.removeNewCharacterInformationListener().
|
protected |
Definition at line 185 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.character.NewCharacterInformation.getClassInfo(), com.realtime.crossfire.jxclient.character.ClassRaceInfo.getMsg(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.model.
|
protected |
Definition at line 170 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.character.NewCharacterInformation.getClassInfo(), com.realtime.crossfire.jxclient.character.ClassRaceInfo.getName(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.model, and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.renderer.
void com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.notifyOpen | ( | ) |
Definition at line 150 of file GUIClassesComboBox.java.
|
private |
Updates the combo box model to reflect the current class list of model.
Definition at line 157 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.character.NewCharacterInformation.getClassesList(), com.realtime.crossfire.jxclient.character.ClassRaceInfo.getName(), com.realtime.crossfire.jxclient.server.crossfire.Model.getNewCharacterInformation(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.model, and com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >.updateSelectedItem().
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox().
|
protected |
Definition at line 177 of file GUIClassesComboBox.java.
References com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.newCharModel, and com.realtime.crossfire.jxclient.gui.label.NewCharModel.setClass().
|
private |
The Model to track for available classes.
Definition at line 57 of file GUIClassesComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.dispose(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.getDescription(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.getListCellRendererComponent(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.updateModel().
|
private |
The NewCharacterInformationListener attached to model.
Definition at line 75 of file GUIClassesComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox().
|
private |
The NewCharModel that is shown.
Definition at line 63 of file GUIClassesComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.dispose(), com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.updateSelectedItem().
|
private |
The listener attached to newCharModel.
Definition at line 113 of file GUIClassesComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.GUIClassesComboBox().
|
private |
The JLabel that displays the list values.
Definition at line 69 of file GUIClassesComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.getListCellRendererComponent().
|
staticprivate |
The serial version UID.
Definition at line 51 of file GUIClassesComboBox.java.