de.palmmedia.yahtzee.ui
Class DiceImageButton

java.lang.Object
  extended by ImageButton
      extended by de.palmmedia.yahtzee.ui.DiceImageButton
All Implemented Interfaces:
Observer

public class DiceImageButton
extends ImageButton
implements Observer

An ImageButton representing a Dice.

Author:
Daniel Palme

Field Summary
private  Dice dice
          The Dice.
 
Constructor Summary
DiceImageButton(Context context, Dice dice)
          Constructor.
 
Method Summary
 boolean performClick()
          
 void update(Observable observable, Object data)
          
private  void updateImage()
          Updates the image depending on the state of the Dice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dice

private Dice dice
The Dice.

Constructor Detail

DiceImageButton

public DiceImageButton(Context context,
                       Dice dice)
Constructor.

Parameters:
context - The context.
dice - Dice.
Method Detail

updateImage

private void updateImage()
Updates the image depending on the state of the Dice.


performClick

public boolean performClick()


update

public void update(Observable observable,
                   Object data)

Specified by:
update in interface Observer