com.amoebacode.blackjack.display.combobox
Class DASComboBox
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.DASComboBox
- class DASComboBox
- extends HouseRulesComboBox
DASComboBox gives users a way to set the availability of doubling down
after splitting.
- Version:
- 0.9
- Author:
- Jason Gurney
|
Field Summary |
private static java.lang.String |
DAS
The double after split allowed option |
private static java.lang.String |
NO_DAS
The double after split not allowed option |
private static java.lang.String[] |
OPTIONS
The double after split options (allowed and not allowed) |
|
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 |
DAS
private static final java.lang.String DAS
- The double after split allowed option
NO_DAS
private static final java.lang.String NO_DAS
- The double after split not allowed option
OPTIONS
private static final java.lang.String[] OPTIONS
- The double after split options (allowed and not allowed)
DASComboBox
protected DASComboBox(HouseRulesDisplay houseRules)
- Default protected constructor.
- Parameters:
houseRules - the HouseRulesDisplay parent
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
- See Also:
ComboBoxBase.getOptions()
getXPos
protected int getXPos()
- Description copied from class:
ComboBoxBase
- Returns the horizontal position of the select box.
- Overrides:
getXPos in class ComboBoxBase
- See Also:
ComboBoxBase.getXPos()
getYPos
protected int getYPos()
- Description copied from class:
ComboBoxBase
- Returns the vertical position of the select box.
- Overrides:
getYPos in class ComboBoxBase
- See Also:
ComboBoxBase.getYPos()
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
- See Also:
ComboBoxBase.performAction(String)
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
- See Also:
ComboBoxBase.getToolTipText()
Copyright © 2002 amoebacode.com.