public abstract class AbstractNumberInput extends Object implements NumberInput
Modifier and Type | Class and Description |
---|---|
class |
AbstractNumberInput.AdvancedNumberInputInteractions |
Constructor and Description |
---|
AbstractNumberInput() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractNumberInput.AdvancedNumberInputInteractions |
advanced() |
void |
decrease()
Decreases the current value of this number input by the value of the step.
|
void |
decrease(int n)
Dcreases the current value of this number input by the value of the step
n times. |
double |
getValue()
Gets the current number value of this number input.
|
void |
increase()
Increases the current value of this number input by the value of the step.
|
void |
increase(int n)
Increases the current value of this number input by the value of the step
n times. |
void |
setValue(double value)
Sets the exact number value to the input.
|
public abstract AbstractNumberInput.AdvancedNumberInputInteractions advanced()
public void increase()
NumberInput
increase
in interface NumberInput
public void decrease()
NumberInput
decrease
in interface NumberInput
public void increase(int n)
NumberInput
n
times.
In other words, if the step is 2, and given param n
is 3, the input value is increased by 6.increase
in interface NumberInput
n
- how many times the increasing should be executedpublic void decrease(int n)
NumberInput
n
times.
In other words, if the step is 2, and given param n
is 3, the input value is decreased by 6.decrease
in interface NumberInput
n
- how many times the decreasing should be executedpublic void setValue(double value)
NumberInput
setValue
in interface NumberInput
value
- value to be setpublic double getValue()
NumberInput
getValue
in interface NumberInput
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.