|
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
ButtonBase is the base class for all user buttons.
| Field Summary | |
private javax.swing.JButton |
button
The button component managed by this object |
protected java.awt.event.ActionListener |
buttonListener
The listener for this button |
private static int |
HEIGHT
The height in pixels of this button |
private static int |
WIDTH
The width in pixels of this button |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
ButtonBase(DisplayElement parent)
Default protected constructor. |
| Method Summary | |
protected abstract void |
actionPreamble(java.awt.event.ActionEvent ae)
Performs the preamble to the specified action event. |
protected void |
activate()
Displays and enables this button. |
protected void |
clear()
Removes this button from the primary layered pane. |
protected void |
disable()
Disables this button. |
protected void |
displayDisable()
Displays but disables this button. |
protected java.awt.event.ActionListener |
getButtonListener()
Returns the listener for this button (used to control the button's action). |
protected abstract java.lang.String |
getButtonText()
Returns the button text. |
protected int |
getHeight()
Returns the height of the button. |
protected abstract java.lang.String |
getToolTipText()
Returns the help text that appears when the user mouses over the button. |
protected int |
getWidth()
Returns the width of the button. |
protected abstract int |
getXPos()
Returns the horizontal position of the button. |
protected abstract int |
getYPos()
Returns the vertical position of the button. |
protected void |
hide()
Hides and disables this button. |
protected void |
setMouseEnteredBackground()
Sets the mouse enter background color. |
protected void |
setMouseExitedBackground()
Sets the mouse exit background color. |
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.DisplayElement |
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private javax.swing.JButton button
protected java.awt.event.ActionListener buttonListener
private static final int WIDTH
private static final int HEIGHT
| Constructor Detail |
protected ButtonBase(DisplayElement parent)
parent - the parent DisplayElement for this button| Method Detail |
protected abstract java.lang.String getButtonText()
protected abstract int getXPos()
protected abstract int getYPos()
protected abstract java.lang.String getToolTipText()
protected abstract void actionPreamble(java.awt.event.ActionEvent ae)
ae - the ActionEvent being firedprotected void setupButton()
protected void setMouseEnteredBackground()
protected void setMouseExitedBackground()
protected java.awt.event.ActionListener getButtonListener()
protected void activate()
protected void displayDisable()
protected void disable()
protected void hide()
protected int getWidth()
protected int getHeight()
protected void clear()
|
Blackjack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||