Projektin moduulirakenteen formatointi
Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package fi.lpam.ruokamanageri.gui.elementit;
|
||||
|
||||
import javafx.scene.control.Spinner;
|
||||
import javafx.scene.control.SpinnerValueFactory;
|
||||
|
||||
public class IntegerSpinner extends Spinner<Integer> {
|
||||
/**
|
||||
* Min 0, Max 50
|
||||
*/
|
||||
public IntegerSpinner() {
|
||||
super(new SpinnerValueFactory.IntegerSpinnerValueFactory(0, 50));
|
||||
this.setEditable(true);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param min _
|
||||
* @param max _
|
||||
*/
|
||||
public IntegerSpinner(int min, int max) {
|
||||
super(new SpinnerValueFactory.IntegerSpinnerValueFactory(min, max));
|
||||
this.setEditable(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user