|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.TextItem
com.smartgwt.client.widgets.form.fields.SpinnerItem
public class SpinnerItem
Item for picking a number. Includes arrow buttons to increase / decrease the value
| Field Summary |
|---|
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
SpinnerItem()
|
|
SpinnerItem(JavaScriptObject jsObj)
|
|
SpinnerItem(String name)
|
|
SpinnerItem(String name,
String title)
|
|
| Method Summary | |
|---|---|
Double |
getMax()
Maximum valid value for this item |
Double |
getMin()
Minimum valid value for this item |
static SpinnerItem |
getOrCreateRef(JavaScriptObject jsObj)
|
double |
getStep()
How much should the value be incremented / decremented when the user hits the icons to increase / decrease the value? |
void |
setDefaultValue(Double defaultValue)
|
void |
setDefaultValue(Integer defaultValue)
Value used when no value is provided for this item. |
void |
setMax(Double max)
Maximum valid value for this item |
void |
setMax(Integer max)
|
void |
setMin(Double min)
Minimum valid value for this item |
void |
setMin(Integer min)
|
void |
setStep(double step)
How much should the value be incremented / decremented when the user hits the icons to increase / decrease the value? |
void |
setStep(int step)
|
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.DataClass |
|---|
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public SpinnerItem()
public SpinnerItem(JavaScriptObject jsObj)
public SpinnerItem(String name)
public SpinnerItem(String name,
String title)
| Method Detail |
|---|
public static SpinnerItem getOrCreateRef(JavaScriptObject jsObj)
public void setStep(double step)
step - step Default value is 1public void setStep(int step)
public double getStep()
public void setMax(Double max)
max - max Default value is nullpublic void setMax(Integer max)
public Double getMax()
public void setMin(Double min)
min - min Default value is nullpublic void setMin(Integer min)
public Double getMin()
public void setDefaultValue(Double defaultValue)
public void setDefaultValue(Integer defaultValue)
FormItemnull programatically, it will be reverted to the defaultValue. Developers
should use the values object if their intention
is to provide an initial value for a field in a form rather than a value to use in place of null.
setDefaultValue in class FormItemdefaultValue - defaultValue Default value is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||