| 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComposite
ch.elexis.util.NumberInput
public class NumberInput
A class to display and let the user change or enter numbers. It will also display a spinner besides the input field to let the user increment or decrement the value by a specific count between a given mi and max value.
| Constructor Summary | |
|---|---|
NumberInput(Composite parent,
            java.lang.String label)
Create an empty number input with a default increment of 5, a minimum of 5 and a maximum of 1440 (which happens to be the number of minutes in a day)  | 
|
| Method Summary | |
|---|---|
 Spinner | 
getControl()
 | 
 int | 
getValue()
Get the actually displayed value of the input field  | 
 void | 
setMinMaxInc(int min,
             int max,
             int inc)
set the spinner's minimum, maximum and increment values  | 
 void | 
setValue(int val)
Set the value to display  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NumberInput(Composite parent,
                   java.lang.String label)
parent - label - the label to display on top of the input field| Method Detail | 
|---|
public void setMinMaxInc(int min,
                         int max,
                         int inc)
min - the spinner can not reduce the number lower than minmax - the spinner can not increase the num,ber higher than maxinc - the spinner will increase or decrease every time by incpublic int getValue()
public Spinner getControl()
public void setValue(int val)
val - an integer that has not necessarily to be between min and max
  | 
Elexis API documentation as of September 4 2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||