Crossfire JXClient, Trunk
|
Public Member Functions | |
void | dispose () |
GUICharOptionsComboBox (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @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< Integer > | |
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 Integer item) |
Component | getListCellRendererComponent (@NotNull final JList<? extends Integer > list, @Nullable final Integer value, final int index, final boolean selected, final boolean cellHasFocus) |
void | updateSelectedItem (@Nullable final Integer item) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer > | |
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 NewCharModel | newCharModel |
final NewCharModelListener | newCharModelListener |
final JLabel | renderer = new JLabel() |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
A GUIComboBox that shows character creation options. If more than one such option should exist, only one is shown.
Definition at line 47 of file GUICharOptionsComboBox.java.
com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.GUICharOptionsComboBox | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | name, | ||
@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 |
newCharModel | the new char model to show |
label | the label to update or null
|
guiFactory | the global GUI factory instance |
Definition at line 89 of file GUICharOptionsComboBox.java.
References com.realtime.crossfire.jxclient.gui.label.NewCharModel.addListener(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOptionIndex(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.label, com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModelListener, com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.setSelectedItem(), and com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.updateModel().
void com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.dispose | ( | ) |
Definition at line 98 of file GUICharOptionsComboBox.java.
References com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel, com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModelListener, and com.realtime.crossfire.jxclient.gui.label.NewCharModel.removeListener().
|
protected |
Definition at line 155 of file GUICharOptionsComboBox.java.
|
protected |
Definition at line 130 of file GUICharOptionsComboBox.java.
References com.realtime.crossfire.jxclient.character.Choice.getChoices(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOption(), com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel, and com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.renderer.
void com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.notifyOpen | ( | ) |
Definition at line 104 of file GUICharOptionsComboBox.java.
|
private |
Updates the combo box model to reflect the current starting map list of newCharModel.
Definition at line 111 of file GUICharOptionsComboBox.java.
References com.realtime.crossfire.jxclient.character.Choice.getChoices(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOption(), com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.model, com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel, and com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >.updateSelectedItem().
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.GUICharOptionsComboBox().
|
protected |
Definition at line 149 of file GUICharOptionsComboBox.java.
References com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel, and com.realtime.crossfire.jxclient.gui.label.NewCharModel.setOptionIndex().
|
private |
The NewCharModel that is shown.
Definition at line 58 of file GUICharOptionsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.dispose(), com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.getListCellRendererComponent(), com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.GUICharOptionsComboBox(), com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.updateModel(), and com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.updateSelectedItem().
|
private |
The listener attached to newCharModel.
Definition at line 70 of file GUICharOptionsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.GUICharOptionsComboBox().
|
private |
The JLabel that displays the list values.
Definition at line 64 of file GUICharOptionsComboBox.java.
Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.getListCellRendererComponent().
|
staticprivate |
The serial version UID.
Definition at line 52 of file GUICharOptionsComboBox.java.