From ff8b9b9559363de2833fc36a989dcb0b24d22e8f Mon Sep 17 00:00:00 2001 From: ErikWaegerle Date: Mon, 29 Jun 2020 23:49:54 +0200 Subject: [PATCH] Creating the CreateSudokuSpecialButton class Modification for CreateSudokuButtonType. --- .../ui/view/CreateSudokuSpecialButton.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/CreateSudokuSpecialButton.java diff --git a/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/CreateSudokuSpecialButton.java b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/CreateSudokuSpecialButton.java new file mode 100644 index 0000000..6d93e6e --- /dev/null +++ b/app/src/main/java/org/secuso/privacyfriendlysudoku/ui/view/CreateSudokuSpecialButton.java @@ -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; } + +}