Creating the CreateSudokuSpecialButton class

Modification for CreateSudokuButtonType.
This commit is contained in:
ErikWaegerle 2020-06-29 23:49:54 +02:00
parent 0bf7e70e28
commit ff8b9b9559

View file

@ -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; }
}