|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.button.ButtonBase
|
+--com.amoebacode.blackjack.display.button.GameButton
GameButton is the base class for all game buttons (deal, shuffle, etc.)
| Field Summary | |
protected GameDisplay |
game
The main game object |
| Fields inherited from class com.amoebacode.blackjack.display.button.ButtonBase |
button, buttonListener, HEIGHT, WIDTH |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
GameButton(GameDisplay game)
Default protected constructor. |
| Method Summary | |
protected void |
actionPreamble(java.awt.event.ActionEvent ae)
Performs the preamble to the specified action event. |
abstract void |
performAction()
Performs the action associated with the button (called when it is clicked by the user). |
protected void |
setupButton()
Creates the button component and adds it to the violator layer of the primary layered pane. |
| Methods inherited from class com.amoebacode.blackjack.display.button.ButtonBase |
activate, clear, disable, displayDisable, getButtonListener, getButtonText, getHeight, getToolTipText, getWidth, getXPos, getYPos, hide, setMouseEnteredBackground, setMouseExitedBackground |
| Methods inherited from class com.amoebacode.blackjack.display.DisplayElement |
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected GameDisplay game
| Constructor Detail |
protected GameButton(GameDisplay game)
game - the parent GameDisplay| Method Detail |
protected void actionPreamble(java.awt.event.ActionEvent ae)
ButtonBaseactionPreamble in class ButtonBaseButtonBase.actionPreamble(ActionEvent)public abstract void performAction()
protected void setupButton()
ButtonBasesetupButton in class ButtonBaseButtonBase.setupButton()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||