|
|||||||||
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
public class TextItem
FormItem for managing a text field.
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
TextItem()
|
|
TextItem(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
TextItem(java.lang.String name)
|
|
TextItem(java.lang.String name,
java.lang.String title)
|
Method Summary | |
---|---|
CharacterCasing |
getCharacterCasing()
Should entered characters be converted to upper or lowercase? Also applies to values applied with FormItem.setValue(int) . |
int |
getHeight()
Default height for text items. |
java.lang.String |
getHint()
Returns the hint text for this item. |
java.lang.String |
getKeyPressFilter()
Sets a keypress filter regular expression to limit valid characters that can be entered by the user. |
java.lang.Integer |
getLength()
if set, maximum number of characters for this field |
static TextItem |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
|
java.lang.Boolean |
getSelectOnFocus()
Allows the selectOnFocus behavior to be configured on a
per-FormItem basis. |
java.lang.Boolean |
getShowHintInField()
If showing hint for this form item, should it be shown within the field? |
java.lang.String |
getTextBoxStyle()
Base CSS class name for this item's input element. NOTE: See the CompoundFormItem_skinning discussion for special skinning considerations. |
int |
getWidth()
Default width for fields. |
void |
setCharacterCasing(CharacterCasing characterCasing)
Should entered characters be converted to upper or lowercase? Also applies to values applied with FormItem.setValue(int) . |
void |
setHeight(int height)
Default height for text items. |
void |
setKeyPressFilter(java.lang.String keyPressFilter)
Sets a keypress filter regular expression to limit valid characters that can be entered by the user. |
void |
setLength(java.lang.Integer length)
if set, maximum number of characters for this field |
void |
setSelectOnFocus(java.lang.Boolean selectOnFocus)
Allows the selectOnFocus behavior to be configured on a
per-FormItem basis. |
void |
setShowHintInField(java.lang.Boolean showHintInField)
If showing hint for this form item, should it be shown within the field? |
void |
setTextBoxStyle(java.lang.String textBoxStyle)
Base CSS class name for this item's input element. NOTE: See the CompoundFormItem_skinning discussion for special skinning considerations. |
void |
setWidth(int width)
Default width for fields. |
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 |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public TextItem()
public TextItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public TextItem(java.lang.String name)
public TextItem(java.lang.String name, java.lang.String title)
Method Detail |
---|
public static TextItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setWidth(int width)
setWidth
in class FormItem
width
- width Default value is 150public int getWidth()
getWidth
in class FormItem
public void setHeight(int height)
setHeight
in class FormItem
height
- height Default value is 19public int getHeight()
getHeight
in class FormItem
public void setTextBoxStyle(java.lang.String textBoxStyle)
setTextBoxStyle
in class FormItem
textBoxStyle
- textBoxStyle Default value is "textItem"public java.lang.String getTextBoxStyle()
getTextBoxStyle
in class FormItem
public void setLength(java.lang.Integer length)
length
- length Default value is nullpublic java.lang.Integer getLength()
public void setSelectOnFocus(java.lang.Boolean selectOnFocus)
selectOnFocus
behavior to be configured on a
per-FormItem basis. Normally all items in a form default to the value of
selectOnFocus
.
setSelectOnFocus
in class FormItem
selectOnFocus
- selectOnFocus Default value is nullpublic java.lang.Boolean getSelectOnFocus()
selectOnFocus
behavior to be configured on a
per-FormItem basis. Normally all items in a form default to the value of
selectOnFocus
.
getSelectOnFocus
in class FormItem
public void setShowHintInField(java.lang.Boolean showHintInField)
Note when this property is true, hintStyle
is not used -
class "textItemHint" is always used.
Note : This is an advanced setting
showHintInField
- showHintInField Default value is nullpublic java.lang.Boolean getShowHintInField()
Note when this property is true, hintStyle
is not used -
class "textItemHint" is always used.
public void setCharacterCasing(CharacterCasing characterCasing)
FormItem.setValue(int)
.
Note : This is an advanced setting
characterCasing
- characterCasing Default value is TextItem.DEFAULTpublic CharacterCasing getCharacterCasing()
FormItem.setValue(int)
.
public void setKeyPressFilter(java.lang.String keyPressFilter)
Note : This is an advanced setting
keyPressFilter
- new keyPress filter for the item. Default value is nullpublic java.lang.String getKeyPressFilter()
public java.lang.String getHint()
hint
, or
null if there is no hint to show.
getHint
in class FormItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |