|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FormItemType>
com.smartgwt.client.types.FormItemType
public enum FormItemType
DynamicForms automatically choose the FormItem type for a field based on the
type
property of the
field. The table below describes the default FormItem
chosen for various values of the type
property.
You can also set field.editorType
to
the classname of a
FormItem
to override this default mapping.
Method Summary | |
---|---|
String |
getValue()
|
static FormItemType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FormItemType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FormItemType TEXT
TextItem
, unless the lenght of the field (as specified by
length
attribute) is larger than the value
specified by
longTextEditorThreshold
, a
TextAreaItem
is shown.
public static final FormItemType BOOLEAN
CheckboxItem
public static final FormItemType INTEGER
text
by default. Consider setting editorType: SpinnerItem
public static final FormItemType FLOAT
text
by default. Consider setting editorType: SpinnerItem
.
public static final FormItemType DATE
DateItem
public static final FormItemType TIME
TimeItem
public static final FormItemType ENUM
SelectItem
. Also true for any field that specifies a
FormItem.setValueMap(String[])
Consider setting
editorType: ComboBoxItem
.
public static final FormItemType SEQUENCE
text
public static final FormItemType LINK
canEdit
:false
is set on the field, the value
is rendered as a LinkItem
. Otherwise the field is rendered as a
TextItem
.
public static final FormItemType IMAGE
public static final FormItemType CHECKBOX
public static final FormItemType STATIC_TEXT
public static final FormItemType BLOB
public static final FormItemType MULTI_FILE
public static final FormItemType MULTI_UPLOAD
public static final FormItemType UPLOAD
public static final FormItemType FILE
public static final FormItemType BASE64_BINARY
public static final FormItemType CYCLE_ITEM
public static final FormItemType SELECT_OTHER
public static final FormItemType RELATION
public static final FormItemType SELECT_ITEM
public static final FormItemType HIDDEN_ITEM
public static final FormItemType HEADER_ITEM
public static final FormItemType DATE_ITEM
public static final FormItemType BLURB_ITEM
public static final FormItemType COMBOBOX_ITEM
public static final FormItemType SPACER_ITEM
public static final FormItemType ROWSPACER_ITEM
public static final FormItemType CHECKBOX_ITEM
public static final FormItemType STATICTEXT_ITEM
public static final FormItemType LINK_ITEM
public static final FormItemType CANVAS_ITEM
public static final FormItemType PICKTREE_ITEM
public static final FormItemType BUTTON_ITEM
public static final FormItemType SUBMIT_ITEM
public static final FormItemType RESET_ITEM
public static final FormItemType RICHTEXT_ITEM
public static final FormItemType FILE_ITEM
public static final FormItemType SLIDER_ITEM
public static final FormItemType TOOLBAR_ITEM
public static final FormItemType SECTION_ITEM
public static final FormItemType TEXTAREA_ITEM
public static final FormItemType TEXT_ITEM
public static final FormItemType UPLOAD_ITEM
public static final FormItemType PASSWORD_ITEM
public static final FormItemType SPINNER_ITEM
public static final FormItemType TIME_ITEM
public static final FormItemType NATIVE_CHECKBOX_ITEM
public static final FormItemType RADIOGROUP_ITEM
public static final FormItemType IMAGEFILE
public static final FormItemType BINARY
UploadItem
Method Detail |
---|
public static FormItemType[] values()
for (FormItemType c : FormItemType.values()) System.out.println(c);
public static FormItemType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getValue()
getValue
in interface ValueEnum
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |