Crossfire JXClient, Trunk
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox:
Collaboration graph

Public Member Functions

void dispose ()
 
 GUIRacesComboBox (@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
 

Detailed Description

A GUIComboBox that shows available races for character creation.

Author
Andreas Kirschbaum

Definition at line 46 of file GUIRacesComboBox.java.

Constructor & Destructor Documentation

◆ GUIRacesComboBox()

com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.GUIRacesComboBox ( @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 
)

Member Function Documentation

◆ dispose()

void com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.dispose ( )

◆ getDescription()

String com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.getDescription ( @Nullable final String  item)
protected

◆ getListCellRendererComponent()

Component com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.getListCellRendererComponent ( @NotNull final JList<? extends String >  list,
@Nullable final String  value,
final int  index,
final boolean  selected,
final boolean  cellHasFocus 
)
protected

◆ notifyOpen()

void com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.notifyOpen ( )

Definition at line 150 of file GUIRacesComboBox.java.

◆ updateModel()

void com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.updateModel ( )
private

◆ updateSelectedItem()

void com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.updateSelectedItem ( @Nullable final String  item)
protected

Member Data Documentation

◆ model

final Model com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.model
private

◆ newCharacterInformationListener

final NewCharacterInformationListener com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.newCharacterInformationListener
private

◆ newCharModel

final NewCharModel com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.newCharModel
private

◆ newCharModelListener

final NewCharModelListener com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.newCharModelListener
private
Initial value:
= new NewCharModelListener() {
@Override
public void changed() {
}
}

The listener attached to newCharModel.

Definition at line 113 of file GUIRacesComboBox.java.

Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.dispose(), and com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.GUIRacesComboBox().

◆ renderer

final JLabel com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.renderer = new JLabel()
private

The JLabel that displays the list values.

Definition at line 69 of file GUIRacesComboBox.java.

Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.getListCellRendererComponent().

◆ serialVersionUID

final long com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 51 of file GUIRacesComboBox.java.


The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< String >::setSelectedItem
void setSelectedItem( @NotNull final T item)
Definition: GUIComboBox.java:221
com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.newCharModel
final NewCharModel newCharModel
Definition: GUIRacesComboBox.java:63
com.realtime.crossfire.jxclient.gui.label.NewCharModel.getRace
String getRace()
Definition: NewCharModel.java:235