|
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.combobox.ComboBoxBase
ComboBoxBase is the base class for all user combo boxes.
| Field Summary | |
private javax.swing.JComboBox |
comboBox
The select box component managed by this object |
private static int |
HEIGHT
The height in pixels of this select box |
private static int |
WIDTH
The width in pixels of this select box |
| Fields inherited from class com.amoebacode.blackjack.display.DisplayElement |
parent |
| Constructor Summary | |
protected |
ComboBoxBase(DisplayElement parent)
Default protected constructor. |
| Method Summary | |
protected void |
clear()
Removes this select box from the primary layered pane. |
protected int |
getHeight()
Returns the height of the select box. |
protected abstract java.lang.String[] |
getOptions()
Returns the options for this select box. |
protected abstract int |
getSelectedIndex()
Returns the index of the currently selected option (used when the select box is being created). |
protected abstract java.lang.String |
getToolTipText()
Returns the help text that appears when the user mouses over the select box. |
protected int |
getWidth()
Returns the width of the select box. |
protected abstract int |
getXPos()
Returns the horizontal position of the select box. |
protected abstract int |
getYPos()
Returns the vertical position of the select box. |
protected void |
performAction()
Performs the action corresponding to the selected combo box item. |
protected abstract void |
performAction(java.lang.String selectedItem)
Performs the action associated with the specified selection (called when the user updates the select box). |
protected void |
setupComboBox()
Creates the select box component and adds it to the violator layer of the primary layered pane. |
void |
setVisible(boolean visible)
Sets the visibility attribute of this select box. |
| 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.JComboBox comboBox
private static final int WIDTH
private static final int HEIGHT
| Constructor Detail |
protected ComboBoxBase(DisplayElement parent)
parent - the parent DisplayElement| Method Detail |
protected abstract java.lang.String[] getOptions()
protected abstract void performAction(java.lang.String selectedItem)
selectedItem - the option selected by the userprotected abstract int getXPos()
protected abstract int getYPos()
protected abstract int getSelectedIndex()
protected abstract java.lang.String getToolTipText()
protected void setupComboBox()
protected void performAction()
public void setVisible(boolean visible)
visible - the new visibility valueprotected 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 | ||||||||