public class IntegerRange extends Object
DateTextBox Widget.| Constructor and Description |
|---|
IntegerRange()
Create an empty range with a default span of values.
|
IntegerRange(int value)
Create an integer range around the given value with a default span.
|
IntegerRange(int value,
int span)
Create an integer range around the given value with a given span.
|
IntegerRange(int start,
int end,
int value)
Create an integer range with the given start and end values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndValue() |
int |
getSpan() |
int |
getStartValue() |
void |
setRange(int start,
int end)
Sets the lower and upper boundary of the range.
|
void |
setSpan(int span)
Sets the span of the range around the given distinguished value.
|
void |
setValue(int value)
Sets the distinguished value of the integer range.
|
public IntegerRange()
public IntegerRange(int value)
value - Value wich is used to center the rangepublic IntegerRange(int value,
int span)
value - Value wich is used to center the rangespan - Span which will cover the given value symmetricallypublic IntegerRange(int start,
int end,
int value)
start - Lower bound of the rangeend - Upper bound of the rangevalue - Optional distinguished value within the specified range (-1 for unspecified value)public void setValue(int value)
value - Distinguished value within the range (-1 to reset the value)public void setRange(int start,
int end)
start - Lower positive bound of the rangeend - Upper positive bound of the rangepublic int getStartValue()
public int getEndValue()
public int getSpan()
public void setSpan(int span)
span - Span of values which defines the range (0 for a single element range)Copyright © 2011–2015 SWM. All rights reserved.