|
|||||||||
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.SelectItem
com.smartgwt.client.widgets.form.fields.SelectOtherItem
public class SelectOtherItem
FormItem that shows a list of options, plus an "Other..." option that allows them to enter another value.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
SelectOtherItem()
|
|
SelectOtherItem(JavaScriptObject jsObj)
|
|
SelectOtherItem(String name)
|
|
SelectOtherItem(String name,
String title)
|
Method Summary | |
---|---|
int |
getDialogWidth()
Width for the "other value" prompt dialog. |
static SelectOtherItem |
getOrCreateRef(JavaScriptObject jsObj)
|
String |
getOtherTitle()
Title for the Other... item. |
String |
getOtherValue()
Data value for the Other... item. |
String |
getSelectOtherPrompt()
Title to show in prompt for "other" value. |
String |
getSeparatorTitle()
Title for the separator between normal items and the Other... item in the drop down list. |
String |
getSeparatorValue()
Value for the separator item between normal items and the Other... value. |
void |
setDialogWidth(int dialogWidth)
Width for the "other value" prompt dialog. |
void |
setOtherTitle(String otherTitle)
Title for the Other... item. |
void |
setOtherValue(String otherValue)
Data value for the Other... item. |
void |
setSelectOtherPrompt(String selectOtherPrompt)
Title to show in prompt for "other" value. |
void |
setSeparatorTitle(String separatorTitle)
Title for the separator between normal items and the Other... item in the drop down list. |
void |
setSeparatorValue(String separatorValue)
Value for the separator item between normal items and the Other... value. |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, 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 SelectOtherItem()
public SelectOtherItem(JavaScriptObject jsObj)
public SelectOtherItem(String name)
public SelectOtherItem(String name, String title)
Method Detail |
---|
public static SelectOtherItem getOrCreateRef(JavaScriptObject jsObj)
public void setSeparatorTitle(String separatorTitle)
Other...
item in the drop down list. Selecting this
item will not change the FormItem's value.
separatorTitle
- separatorTitle Default value is "--------------------"public String getSeparatorTitle()
Other...
item in the drop down list. Selecting this
item will not change the FormItem's value.
public void setSeparatorValue(String separatorValue)
Other...
value. If necessary the value may be
changed to ensure it doesn't collide with any data values in this item's 'valueMap'
.
Note : This is an advanced setting
separatorValue
- separatorValue Default value is "----"public String getSeparatorValue()
Other...
value. If necessary the value may be
changed to ensure it doesn't collide with any data values in this item's 'valueMap'
.
public void setOtherTitle(String otherTitle)
Other...
item. When this item is selected, the user will be shown a prompt allowing them to
enter a new value for the item.
otherTitle
- otherTitle Default value is "Other..."public String getOtherTitle()
Other...
item. When this item is selected, the user will be shown a prompt allowing them to
enter a new value for the item.
public void setOtherValue(String otherValue)
Other...
item. If necessary this value may be changed to ensure it doesn't collide with
any data values in this item's 'valueMap'
.
Note : This is an advanced setting
otherValue
- otherValue Default value is "***other***"public String getOtherValue()
Other...
item. If necessary this value may be changed to ensure it doesn't collide with
any data values in this item's 'valueMap'
.
public void setSelectOtherPrompt(String selectOtherPrompt)
\${...}
tags, with local variables for item
(a pointer to this item) and value
a
pointer to the currently selected item value.
selectOtherPrompt
- selectOtherPrompt Default value is "Other value for public String getSelectOtherPrompt()
\${...}
tags, with local variables for item
(a pointer to this item) and value
a
pointer to the currently selected item value.
public void setDialogWidth(int dialogWidth)
dialogWidth
- dialogWidth Default value is 250public int getDialogWidth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |