|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.client.ui.AWT.CamoChoiceListener
public class CamoChoiceListener
Helper class to handle camo selection. This class will update an
ImageButton to show the selection, update a
Player to use the selection, and (optionally) communicate the
selection to the server through a Client. Created on January
24, 2004
| Constructor Summary | |
|---|---|
CamoChoiceListener(CamoChoiceDialog camoDialog,
ImageButton button,
java.awt.Color background,
ChatLounge chat)
Create a new camo selection listener that alerts a server. |
|
CamoChoiceListener(CamoChoiceDialog camoDialog,
ImageButton button,
java.awt.Color background,
Player player)
Create a new camo selection listener that does not alert a server. |
|
| Method Summary | |
|---|---|
void |
itemStateChanged(java.awt.event.ItemEvent event)
Update the camo button when the selection dialog tells us to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CamoChoiceListener(CamoChoiceDialog camoDialog,
ImageButton button,
java.awt.Color background,
ChatLounge chat)
camoDialog - - the CamoChoiceDialog that is being
listened to.button - - the ImageButton that gets updated.background - - the default background Color for the
button when a camo image is selected.player - - the int ID of the player whose camo is
updated.sender - - the Client that sends the update.
public CamoChoiceListener(CamoChoiceDialog camoDialog,
ImageButton button,
java.awt.Color background,
Player player)
camoDialog - - the CamoChoiceDialog that is being
listened to.button - - the ImageButton that gets updated.background - - the default background Color for the
button when a camo image is selected.player - - the Player whose camo is updated.| Method Detail |
|---|
public void itemStateChanged(java.awt.event.ItemEvent event)
ItemListener.
itemStateChanged in interface java.awt.event.ItemListenerevent - - the ItemEvent of the camo selection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||