|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PickList
Interface to show a drop-down list of pickable options. Used by the SelectItem
and ComboBoxItem
classes.
Method Summary | |
---|---|
ListGridRecord[] |
filterClientPickListData()
Returns the data to display in the pick list. |
Boolean |
getAnimatePickList()
If true, when the pickList is shown, it will be shown via an animated reveal effect |
int |
getAnimationTime()
If this.animatePickList is true - this specifies the duration of the animation effect applied when showing the pickList |
ListGridRecord[] |
getClientPickListData()
Returns the set of data to be displayed in this item's PickList. |
String |
getDisplayField()
Specifies an alternative field from which display values should be retrieved for this item. If this item is not databound ( optionDataSource is
unset), or bound to the same dataSource as the form as a whole, this is implemented by picking up the value of
the specified field from the Form's values object.Otherwise this item will attempt to map its underlying value to a display value by retrieving a record from the optionDataSource where the valueField
matches this item's value, and displaying the displayField value from that record.This essentially enables the specified optionDataSource to be used as a server based
${isc.DocUtils.linkForRef('group:valueMap')}. |
String |
getDisplayFieldName()
Returns the displayField for this form
item. |
int |
getEmptyPickListHeight()
Height for an empty pick list (showing the empty message), if the pick list has no records and hideEmptyPickList is false . |
String |
getEmptyPickListMessage()
Empty message to display in the pickList if hideEmptyPickList is false . |
Integer |
getFetchDelay()
For a ComboBox or other pickList that accepts user-entered criteria, how many millseconds to wait after the last user keystroke before fetching data from the server. |
Boolean |
getFilterLocally()
If filterLocally is set for this item, and this item is showing options from a dataSource, fetch
the entire set of options from the server, and use these values to map the item value to the appropriate display
value. |
Boolean |
getHideEmptyPickList()
If this pickList contains no options, should it be hidden? If unset, default behavior is to allow the empty pickList to show if it is databound. |
DataSource |
getOptionDataSource()
|
String |
getPickListBaseStyle()
Base Style for pickList cells. |
Criteria |
getPickListCriteria()
If this item has a databound pick-list (for example optionDataSource is set) this property can be used to provide static filter criteria when retrieving the data
for the pickList. |
int |
getPickListHeaderHeight()
If this pick list is showing multiple fields, this property determines the height of the column headers for those fields. |
int |
getPickListHeight()
Maximum height to show the pick list before it starts to scroll. |
Integer |
getPickListWidth()
Default width to show the pickList. |
Boolean |
getShowAllOptions()
If true, even non-matching options will be shown, with configurable separatorRows in between. |
Boolean |
getShowOptionsFromDataSource()
If this item is part of a databound form, and has a specified valueMap by default we show the
valueMap options in the pickList for the item. |
TextMatchStyle |
getTextMatchStyle()
When applying filter criteria to pickList data, what type of matching to use. |
String |
getValueField()
If this form item maps data values to display values by retrieving the displayField values from an optionDataSource , this property denotes
the the field to use as the underlying data value in records from the optionDataSource.If unset, assumed to be the name of this form item. |
String |
getValueFieldName()
Getter method to retrieve the valueField
for this item. |
String |
getValueIconField()
For Databound formItems, this property determines which column valueIcons should show up in for this formItem's pickList.If unset valueIcons show up in the displayField column if specified, otherwise
the valueField column.In most cases only the displayField or valueField will be visible. |
void |
setAnimatePickList(Boolean animatePickList)
If true, when the pickList is shown, it will be shown via an animated reveal effect |
void |
setAnimationTime(int animationTime)
If this.animatePickList is true - this specifies the duration of the animation effect applied when showing the pickList |
void |
setDisplayField(String displayField)
Specifies an alternative field from which display values should be retrieved for this item. If this item is not databound ( optionDataSource is
unset), or bound to the same dataSource as the form as a whole, this is implemented by picking up the value of
the specified field from the Form's values object.Otherwise this item will attempt to map its underlying value to a display value by retrieving a record from the optionDataSource where the valueField
matches this item's value, and displaying the displayField value from that record.This essentially enables the specified optionDataSource to be used as a server based
${isc.DocUtils.linkForRef('group:valueMap')}. |
void |
setEmptyPickListHeight(int emptyPickListHeight)
Height for an empty pick list (showing the empty message), if the pick list has no records and hideEmptyPickList is false . |
void |
setEmptyPickListMessage(String emptyPickListMessage)
Empty message to display in the pickList if hideEmptyPickList is false . |
void |
setFetchDelay(Integer fetchDelay)
For a ComboBox or other pickList that accepts user-entered criteria, how many millseconds to wait after the last user keystroke before fetching data from the server. |
void |
setFilterLocally(Boolean filterLocally)
If filterLocally is set for this item, and this item is showing options from a dataSource, fetch
the entire set of options from the server, and use these values to map the item value to the appropriate display
value. |
void |
setHideEmptyPickList(Boolean hideEmptyPickList)
If this pickList contains no options, should it be hidden? If unset, default behavior is to allow the empty pickList to show if it is databound. |
void |
setOptionDataSource(DataSource dataSource)
|
void |
setOptionFilterContext(DSRequest dsRequestProperties)
If this item has a specified optionDataSource , and this property is
not null, this will be passed to the datasource as RPCRequest properties when
performing the fetch operation on the dataSource to obtain a data-value to display-value
mapping |
void |
setPickListBaseStyle(String pickListBaseStyle)
Base Style for pickList cells. |
void |
setPickListCriteria(Criteria pickListCriteria)
If this item has a databound pick-list (for example optionDataSource is set) this property can be used to provide static filter criteria when retrieving the data
for the pickList. |
void |
setPickListFilterCriteriaFunction(FilterCriteriaFunction filterCriteriaFunction)
Set the pick list filter criteria function / handler. |
void |
setPickListHeaderHeight(int pickListHeaderHeight)
If this pick list is showing multiple fields, this property determines the height of the column headers for those fields. |
void |
setPickListHeight(int pickListHeight)
Maximum height to show the pick list before it starts to scroll. |
void |
setPickListWidth(Integer pickListWidth)
Default width to show the pickList. |
void |
setSeparatorRows(ListGridRecord[] separatorRows)
Array of records to show between matching and non-matching rows in the PickList. |
void |
setShowAllOptions(Boolean showAllOptions)
If true, even non-matching options will be shown, with configurable separatorRows in between. |
void |
setShowOptionsFromDataSource(Boolean showOptionsFromDataSource)
If this item is part of a databound form, and has a specified valueMap by default we show the
valueMap options in the pickList for the item. |
void |
setTextMatchStyle(TextMatchStyle textMatchStyle)
When applying filter criteria to pickList data, what type of matching to use. |
void |
setValueField(String valueField)
If this form item maps data values to display values by retrieving the displayField values from an optionDataSource , this property denotes
the the field to use as the underlying data value in records from the optionDataSource.If unset, assumed to be the name of this form item. |
void |
setValueIconField(String valueIconField)
For Databound formItems, this property determines which column valueIcons should show up in for this formItem's pickList.If unset valueIcons show up in the displayField column if specified, otherwise
the valueField column.In most cases only the displayField or valueField will be visible. |
Method Detail |
---|
void setPickListHeight(int pickListHeight)
pickListHeight
- pickListHeight Default value is 300int getPickListHeight()
void setEmptyPickListHeight(int emptyPickListHeight)
hideEmptyPickList
is false
.
emptyPickListHeight
- emptyPickListHeight Default value is 100int getEmptyPickListHeight()
hideEmptyPickList
is false
.
void setEmptyPickListMessage(String emptyPickListMessage)
hideEmptyPickList
is false
. Note : This is an advanced setting
emptyPickListMessage
- emptyPickListMessage Default value is nullString getEmptyPickListMessage()
hideEmptyPickList
is false
.
void setHideEmptyPickList(Boolean hideEmptyPickList)
hideEmptyPickList
- hideEmptyPickList Default value is nullBoolean getHideEmptyPickList()
void setPickListWidth(Integer pickListWidth)
pickListWidth
- pickListWidth Default value is nullInteger getPickListWidth()
void setPickListBaseStyle(String pickListBaseStyle)
pickListBaseStyle
- pickListBaseStyle Default value is "pickListCell"String getPickListBaseStyle()
void setAnimatePickList(Boolean animatePickList)
Note : This is an advanced setting
animatePickList
- animatePickList Default value is nullBoolean getAnimatePickList()
void setAnimationTime(int animationTime)
Note : This is an advanced setting
animationTime
- animationTime Default value is 200int getAnimationTime()
void setPickListHeaderHeight(int pickListHeaderHeight)
pickListHeaderHeight
- pickListHeaderHeight Default value is 22int getPickListHeaderHeight()
void setValueField(String valueField)
displayField
values from an optionDataSource
, this property denotes
the the field to use as the underlying data value in records from the optionDataSource.name
of this form item. Note : This is an advanced setting
valueField
- valueField Default value is nullString getValueField()
displayField
values from an optionDataSource
, this property denotes
the the field to use as the underlying data value in records from the optionDataSource.name
of this form item.
void setDisplayField(String displayField)
optionDataSource
is
unset), or bound to the same dataSource as the form as a whole, this is implemented by picking up the value of
the specified field from the Form's values object.optionDataSource
where the valueField
matches this item's value, and displaying the displayField
value from that record.optionDataSource
to be used as a server based
${isc.DocUtils.linkForRef('group:valueMap')}.
displayField
- displayField Default value is nullString getDisplayField()
optionDataSource
is
unset), or bound to the same dataSource as the form as a whole, this is implemented by picking up the value of
the specified field from the Form's values object.optionDataSource
where the valueField
matches this item's value, and displaying the displayField
value from that record.optionDataSource
to be used as a server based
${isc.DocUtils.linkForRef('group:valueMap')}.
void setValueIconField(String valueIconField)
valueIcons
should show up in for this formItem's pickList.displayField
column if specified, otherwise
the valueField
column.displayField
or valueField
will be visible. This property is typically only
required if custom pickListFields
have
been specfied for this item. Note : This is an advanced setting
valueIconField
- valueIconField Default value is nullString getValueIconField()
valueIcons
should show up in for this formItem's pickList.displayField
column if specified, otherwise
the valueField
column.displayField
or valueField
will be visible. This property is typically only
required if custom pickListFields
have
been specfied for this item.
void setPickListCriteria(Criteria pickListCriteria)
optionDataSource
is set) this property can be used to provide static filter criteria when retrieving the data
for the pickList. Note : This is an advanced setting
pickListCriteria
- pickListCriteria Default value is nullCriteria getPickListCriteria()
optionDataSource
is set) this property can be used to provide static filter criteria when retrieving the data
for the pickList.
void setShowOptionsFromDataSource(Boolean showOptionsFromDataSource)
valueMap
by default we show the
valueMap options in the pickList for the item. Setting this property to true will ensure that the options
displayed in our pickList are derived from the form's dataSource
. Note : This is an advanced setting
showOptionsFromDataSource
- showOptionsFromDataSource Default value is nullBoolean getShowOptionsFromDataSource()
valueMap
by default we show the
valueMap options in the pickList for the item. Setting this property to true will ensure that the options
displayed in our pickList are derived from the form's dataSource
.
void setFilterLocally(Boolean filterLocally)
filterLocally
is set for this item, and this item is showing options from a dataSource, fetch
the entire set of options from the server, and use these values to map the item value to the appropriate display
value. Also use "local"
type filtering on drop down list of options.Note : This is an advanced setting
filterLocally
- filterLocally Default value is falseBoolean getFilterLocally()
filterLocally
is set for this item, and this item is showing options from a dataSource, fetch
the entire set of options from the server, and use these values to map the item value to the appropriate display
value. Also use "local"
type filtering on drop down list of options.
void setTextMatchStyle(TextMatchStyle textMatchStyle)
For a databound pickList (optionDataSource
set), textMatchStyle
is sent to the server as textMatchStyle
.
For a non-databound pickList,
textMatchStyle
is applied by filterClientPickListData()
.
textMatchStyle
- textMatchStyle Default value is "startsWith"TextMatchStyle getTextMatchStyle()
For a databound pickList (optionDataSource
set), textMatchStyle
is sent to the server as textMatchStyle
.
For a non-databound pickList,
textMatchStyle
is applied by filterClientPickListData()
.
void setShowAllOptions(Boolean showAllOptions)
separatorRows
in between. Not valid for optionDataSource
.
showAllOptions
- showAllOptions Default value is nullBoolean getShowAllOptions()
separatorRows
in between. Not valid for optionDataSource
.
String getValueFieldName()
valueField
for this item. If unset, default behavior will return the name
of this field.
optionDataSource
String getDisplayFieldName()
displayField
for this form
item. If unset, and optionDataSource
is explicitly specified, this method will return the title field for the optionDataSource
void setFetchDelay(Integer fetchDelay)
fetchDelay
- the fetch delay. defaults to 200msInteger getFetchDelay()
void setPickListFilterCriteriaFunction(FilterCriteriaFunction filterCriteriaFunction)
filterCriteriaFunction
- the filter criteria functionListGridRecord[] filterClientPickListData()
The default implementation applies the criteria returned by #getPickListFilterCriteria
to the data returned
by getClientPickListData()
. A record passes the filter if it has a matching value for all fields in the criteria
object. Matching is performed according to textMatchStyle
.
If showAllOptions
is set, all values are shown, with matching values shown below a
separator
.
ListGridRecord[] getClientPickListData()
This method will be called for non-databound form items implementing the PickList interface. The default implementation will derive data from the item's valueMap - can be overridden to allow a custom set of options to be displayed.
Note that for PickLists that filter data based on user input 'ComboBox')
, this method should
return the data before filtering.
void setSeparatorRows(ListGridRecord[] separatorRows)
Not valid for 'databound pickLists'
.
separatorRows
- separator rowsDataSource getOptionDataSource()
void setOptionDataSource(DataSource dataSource)
void setOptionFilterContext(DSRequest dsRequestProperties)
optionDataSource
, and this property is
not null, this will be passed to the datasource as RPCRequest
properties when
performing the fetch operation on the dataSource to obtain a data-value to display-value
mapping
Note : This is an advanced setting
dsRequestProperties
- optionFilterContext Default value is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |