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.GUICharOptionsComboBox Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox:
Collaboration graph

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
 

Detailed Description

A GUIComboBox that shows character creation options. If more than one such option should exist, only one is shown.

Author
Andreas Kirschbaum

Definition at line 47 of file GUICharOptionsComboBox.java.

Constructor & Destructor Documentation

◆ GUICharOptionsComboBox()

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 
)

Member Function Documentation

◆ dispose()

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

◆ getDescription()

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

Definition at line 155 of file GUICharOptionsComboBox.java.

◆ getListCellRendererComponent()

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

◆ notifyOpen()

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

Definition at line 104 of file GUICharOptionsComboBox.java.

◆ updateModel()

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

◆ updateSelectedItem()

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

Member Data Documentation

◆ newCharModel

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

◆ newCharModelListener

final NewCharModelListener com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModelListener
private

◆ renderer

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

◆ serialVersionUID

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

The serial version UID.

Definition at line 52 of file GUICharOptionsComboBox.java.


The documentation for this class was generated from the following file:
com.realtime.crossfire.jxclient.gui.combobox.GUIComboBox< Integer >::setSelectedItem
void setSelectedItem( @NotNull final T item)
Definition: GUIComboBox.java:221
com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.newCharModel
final NewCharModel newCharModel
Definition: GUICharOptionsComboBox.java:58
com.realtime.crossfire.jxclient.gui.combobox.GUICharOptionsComboBox.updateModel
void updateModel()
Definition: GUICharOptionsComboBox.java:111
com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOptionIndex
int getOptionIndex()
Definition: NewCharModel.java:446