public abstract class NumberPropertyEditor<N extends Number> extends PropertyEditor<N>
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberPropertyEditor.DoublePropertyEditor |
static class |
NumberPropertyEditor.FloatPropertyEditor |
static class |
NumberPropertyEditor.IntegerPropertyEditor |
static class |
NumberPropertyEditor.LongPropertyEditor |
static class |
NumberPropertyEditor.ShortPropertyEditor |
DEFAULT| Constructor and Description |
|---|
NumberPropertyEditor(N incrAmount)
Creates a new number property editor with the default number type (Double).
|
NumberPropertyEditor(NumberFormat format,
N incrAmount)
Creates a new number property editor.
|
NumberPropertyEditor(String pattern,
N incrAmount)
Creates a new number property editor.
|
| Modifier and Type | Method and Description |
|---|---|
N |
decr(N value) |
NumberFormat |
getFormat()
Returns the editor's format.
|
N |
getIncrement() |
N |
incr(N value) |
N |
parse(CharSequence text) |
String |
render(Number value) |
void |
setFormat(NumberFormat format)
Sets the editor's format.
|
void |
setIncrement(N value) |
renderpublic NumberPropertyEditor(N incrAmount)
public NumberPropertyEditor(NumberFormat format, N incrAmount)
format - the number formatpublic NumberFormat getFormat()
public N parse(CharSequence text) throws ParseException
ParseExceptionpublic void setFormat(NumberFormat format)
format - the formatpublic N getIncrement()
public void setIncrement(N value)
Copyright © 2012. All Rights Reserved.