Blackjack

com.amoebacode.blackjack.display.combobox
Class DecksComboBox

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.DecksComboBox

class DecksComboBox
extends HouseRulesComboBox

DecksComboBox gives users a way to set the number of decks used in the shoe.

Version:
0.9
Author:
Jason Gurney

Field Summary
private static java.lang.String[] OPTIONS
          The decks options (1, 2, 3, 4, 5, 6, 7, or 8 decks)
 
Fields inherited from class com.amoebacode.blackjack.display.combobox.ComboBoxBase
comboBox, HEIGHT, WIDTH
 
Fields inherited from class com.amoebacode.blackjack.display.DisplayElement
parent
 
Constructor Summary
protected DecksComboBox(HouseRulesDisplay houseRules)
          Default protected constructor.
 
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).
 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 com.amoebacode.blackjack.display.combobox.HouseRulesComboBox
getHouseRulesDisplay
 
Methods inherited from class com.amoebacode.blackjack.display.combobox.ComboBoxBase
clear, getHeight, getWidth, performAction, setupComboBox, setVisible
 
Methods inherited from class com.amoebacode.blackjack.display.DisplayElement
executeGameCommand, getDisplayManager, getGameDisplay, getParent, hasParent, playGameClip, queueAction, resumeQueue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

OPTIONS

private static final java.lang.String[] OPTIONS
The decks options (1, 2, 3, 4, 5, 6, 7, or 8 decks)
Constructor Detail

DecksComboBox

protected DecksComboBox(HouseRulesDisplay houseRules)
Default protected constructor.
Parameters:
houseRules - the HouseRulesDisplay parent
Method Detail

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

public 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()

Blackjack

Copyright © 2002 amoebacode.com.