|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.widget.core.client.form.PropertyEditor<N>
com.sencha.gxt.widget.core.client.form.NumberPropertyEditor<N>
N - the number typepublic abstract class NumberPropertyEditor<N extends Number>
Property editors convert typed number to strings and strings back to numbers. Editors also handle incrementing and decrementing the typed numbers.
| Nested Class Summary | |
|---|---|
static class |
NumberPropertyEditor.BigDecimalPropertyEditor
|
static class |
NumberPropertyEditor.DoublePropertyEditor
|
static class |
NumberPropertyEditor.FloatPropertyEditor
|
static class |
NumberPropertyEditor.IntegerPropertyEditor
|
static class |
NumberPropertyEditor.LongPropertyEditor
|
static class |
NumberPropertyEditor.ShortPropertyEditor
|
| Field Summary |
|---|
| Fields inherited from class com.sencha.gxt.widget.core.client.form.PropertyEditor |
|---|
DEFAULT |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.sencha.gxt.widget.core.client.form.PropertyEditor |
|---|
render |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberPropertyEditor(N incrAmount)
public NumberPropertyEditor(NumberFormat format,
N incrAmount)
format - the number format
public NumberPropertyEditor(String pattern,
N incrAmount)
pattern - the number format pattern| Method Detail |
|---|
public NumberFormat getFormat()
public N parse(CharSequence text)
throws ParseException
ParseExceptionpublic String render(Number value)
public void setFormat(NumberFormat format)
format - the formatpublic N incr(N value)
public N decr(N value)
public N getIncrement()
public void setIncrement(N value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||