public interface WebFormFieldOrColumn
WebFormFieldOrColumn
interface represents behaviour shared by both a web form field
and a web table column
including:
Modifier and Type | Method and Description |
---|---|
CustomList |
createCustomList()
Creates and returns an empty list and associates the list with the form field.
|
CustomList |
createCustomList(java.lang.String[] entries)
Creates a list for the field and adds the passed entries.
|
int |
getDisplayLength()
Returns the size of the input box used for the form field when it is editable.
|
java.lang.String |
getDisplayType()
Returns the field's display type.
|
Text |
getHelpText()
Returns the help
Text for the form field for the current language. |
Text |
getLabelText()
Returns the label
Text for the form field for the current language. |
FieldList |
getList()
Returns the list associated with the form field or null if no list exists.
|
int |
getMaxDisplayLength()
Returns the maximum number of characters that can be entered by the user for the form field.
|
boolean |
isClientAccessible()
Returns true if the form field or table column is accessible via the client api, otherwise returns false.
|
FieldList getList()
Dynamic List
- values are retrieved from a databaseStatic List
- supports multiple languages, values are defined using the Ebase Xi DesignerCustom List
- the list is created programmatically using the createCustomList()
methodCustomList createCustomList()
Javascript example:
var list = fields.LIST_FIELD.createCustomList(); list.add("Line 1", 1); list.add("Line 2", 2); list.add("Line 3", 3);
CustomList createCustomList(java.lang.String[] entries)
Javascript example:
var list = fields.LIST_FIELD.createCustomList(["Line 1", "Line 2", "Line 3"]);
Text getLabelText()
Text
for the form field for the current language.Text getHelpText()
Text
for the form field for the current language.int getDisplayLength()
int getMaxDisplayLength()
java.lang.String getDisplayType()
Basic Types:
HTML5 Types:
boolean isClientAccessible()