com.amoebacode.blackjack.display.combobox
Class DoubleAnyComboBox
java.lang.Object
|
+--com.amoebacode.blackjack.display.DisplayElement
|
+--com.amoebacode.blackjack.display.combobox.ComboBoxBase
|
+--com.amoebacode.blackjack.display.combobox.HouseRulesComboBox
|
+--com.amoebacode.blackjack.display.combobox.DoubleAnyComboBox
- class DoubleAnyComboBox
- extends HouseRulesComboBox
DoubleAnyComboBox gives users a way to set double down availability.
- Version:
- 0.9
- Author:
- Jason Gurney
|
Field Summary |
private static java.lang.String[] |
OPTIONS
The double on any cards options (any two; 10 or 11; 9, 10, or 11) |
|
Method Summary |
protected java.lang.String[] |
getOptions()
Returns the options for this select box. |
protected int |
getSelectedIndex()
Returns the index of the currently selected option (used when the
select box is being created). |
protected java.lang.String |
getToolTipText()
Returns the help text that appears when the user mouses over the
select box. |
protected int |
getXPos()
Returns the horizontal position of the select box. |
protected int |
getYPos()
Returns the vertical position of the select box. |
protected void |
performAction(java.lang.String selectedItem)
Performs the action associated with the specified selection (called when
the user updates the select box). |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
OPTIONS
private static final java.lang.String[] OPTIONS
- The double on any cards options (any two; 10 or 11; 9, 10, or 11)
DoubleAnyComboBox
protected DoubleAnyComboBox(HouseRulesDisplay houseRules)
- Default protected constructor.
- Parameters:
houseRules - the set of casino options
getSelectedIndex
protected int getSelectedIndex()
- Description copied from class:
ComboBoxBase
- Returns the index of the currently selected option (used when the
select box is being created).
- Overrides:
getSelectedIndex in class ComboBoxBase
- See Also:
ComboBoxBase.getSelectedIndex()
getOptions
protected java.lang.String[] getOptions()
- Description copied from class:
ComboBoxBase
- Returns the options for this select box.
- Overrides:
getOptions in class ComboBoxBase
- Following copied from class:
com.amoebacode.blackjack.display.combobox.ComboBoxBase
- Returns:
- a String array of options for this select box
getXPos
protected int getXPos()
- Description copied from class:
ComboBoxBase
- Returns the horizontal position of the select box.
- Overrides:
getXPos in class ComboBoxBase
- Following copied from class:
com.amoebacode.blackjack.display.combobox.ComboBoxBase
- Returns:
- the horizontal position in pixels
getYPos
protected int getYPos()
- Description copied from class:
ComboBoxBase
- Returns the vertical position of the select box.
- Overrides:
getYPos in class ComboBoxBase
- Following copied from class:
com.amoebacode.blackjack.display.combobox.ComboBoxBase
- Returns:
- the vertical position in pixels
performAction
protected void performAction(java.lang.String selectedItem)
- Description copied from class:
ComboBoxBase
- Performs the action associated with the specified selection (called when
the user updates the select box).
- Overrides:
performAction in class ComboBoxBase
- Following copied from class:
com.amoebacode.blackjack.display.combobox.ComboBoxBase
- Parameters:
selectedItem - the option selected by the user
getToolTipText
protected java.lang.String getToolTipText()
- Description copied from class:
ComboBoxBase
- Returns the help text that appears when the user mouses over the
select box.
- Overrides:
getToolTipText in class ComboBoxBase
- Following copied from class:
com.amoebacode.blackjack.display.combobox.ComboBoxBase
- Returns:
- the mouseover help text
Copyright © 2002 amoebacode.com.