Class GamingWheelBetView

java.lang.Object
  |
  +--DisplayPanel
        |
        +--GamingWheelBetView

public class GamingWheelBetView
extends DisplayPanel

View for a bet on the gaming wheel.

See Also:
Serialized Form

Constructor Summary
GamingWheelBetView(int value)
          Constructs a new view for the given prize value.
 
Method Summary
 Prize getPrize()
          Returns the prize data model for this.
 boolean isSelected()
          Returns whether or not this is selected.
protected  void paintComponent(Graphics g)
          Paints this to the given graphics context.
 void setEnabled(boolean enabled)
          Sets whether or not this is enabled to the given choice.
 void setSelected(boolean select)
          Sets whether or not this is selected, to the given choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GamingWheelBetView

public GamingWheelBetView(int value)
Constructs a new view for the given prize value.

Parameters:
value - prize value for this bet
Method Detail

getPrize

public Prize getPrize()
Returns the prize data model for this.


setSelected

public void setSelected(boolean select)
Sets whether or not this is selected, to the given choice.

Parameters:
select - whether or not to select this

isSelected

public boolean isSelected()
Returns whether or not this is selected.


paintComponent

protected void paintComponent(Graphics g)
Paints this to the given graphics context.

Parameters:
g - context to which to paint

setEnabled

public void setEnabled(boolean enabled)
Sets whether or not this is enabled to the given choice.

Parameters:
enabled - whether or not to enable this