de.palmmedia.yahtzee.ui
Class ElementButton

java.lang.Object
  extended by Button
      extended by de.palmmedia.yahtzee.ui.ElementButton

public class ElementButton
extends Button

A Button representing an Element.

Author:
Daniel Palme

Field Summary
private  Element element
          The Element.
 
Constructor Summary
ElementButton(Context context, Element element)
          Constructor.
 
Method Summary
 Element getElement()
          Gets the Element.
 void mark()
          Marks the Element.
 boolean performClick()
           
 void update(Dice[] dices)
          Updates the view depending on the current dices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

private Element element
The Element.

Constructor Detail

ElementButton

public ElementButton(Context context,
                     Element element)
Constructor.

Parameters:
context - The context.
element - The Element.
Method Detail

getElement

public Element getElement()
Gets the Element.

Returns:
The Element.

performClick

public boolean performClick()

mark

public void mark()
Marks the Element.


update

public void update(Dice[] dices)
Updates the view depending on the current dices.

Parameters:
dices - The dices.