Creating the CreateSudokuSpecialButton class
Modification for CreateSudokuButtonType.
This commit is contained in:
parent
0bf7e70e28
commit
ff8b9b9559
1 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
package org.secuso.privacyfriendlysudoku.ui.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.ImageButton;
|
||||
|
||||
/**
|
||||
* Created by TMZ_LToP on 07.12.2015.
|
||||
*/
|
||||
public class CreateSudokuSpecialButton extends ImageButton {
|
||||
private int value = -1;
|
||||
private CreateSudokuButtonType type = CreateSudokuButtonType.Unspecified;
|
||||
|
||||
public CreateSudokuSpecialButton(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public void setValue(int value) { this.value = value; }
|
||||
public void setType(CreateSudokuButtonType type) { this.type = type; }
|
||||
public int getValue () { return value; }
|
||||
public CreateSudokuButtonType getType() { return type; }
|
||||
|
||||
}
|
Loading…
Reference in a new issue