public class SetFilterItem extends MultiPickerItem
MultiPickerItem
used for generating search criteria in the
FilterEditor
and in SearchForms.
SetFilterItem generates inSet and notInSet
filter criteria from a set of
possible values, which can be provided via an explicit valueMap
or optionDataSource
, or can be derived from
the target databound component
or
a list of records
.
In particular, when attached to a databound component such as a ListGrid, SetFilterItem can provide "Excel-style filtering", allowing the user to pick from amongst whatever values are present in the dataset.
For large datasets, SetFilterItem will also
intelligently use locally cached data when possible, deriving its set of options from loaded data without the need for
an extra dataSource fetch. Specifically, when all
matching records
are loaded in the filterTargetComponent
, the options are
derived from already loaded data. If the set of data is incomplete (due to data paging
), the SetFilterItem will derive options from its
optionDataSource.
Note that deriveUniqueValues
defaults to true
for setFilterItems.
When a SetFilterItem is used as a ListGrid filterEditor
, the filterTargetComponent
will automatically be set to the grid being filtered.
The item's picker-component can be customized via settings
such as sortField
, or by configuring
auto-children
like the search-form
, the main pickList-grid
or the separate list of selected values
. You can use MultiPickerItem.optionFilterContext
to
apply custom requestProperties
to fetches from the main pickList
grid.
FormItem.CustomStateGetter, FormItem.StateCustomizer
configOnly, scClassName, warnOnEditorTypeConversion, warnOnEditorTypeConversionDefault
id
factoryCreated, factoryProperties
Constructor and Description |
---|
SetFilterItem() |
SetFilterItem(com.google.gwt.core.client.JavaScriptObject jsObj) |
SetFilterItem(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
static void |
changePickerIconDefaults(FormItemIcon defaults) |
java.lang.Boolean |
getCanExpand()
Should we show an
MultiPickerItem.expansionIcon expand button allowing the user to show an expanded view of the MultiPickerItem.pickList with multiple fields. |
java.lang.Boolean |
getDefaultUseUnselectedValues()
Should this item track unselected or selected values by default?
|
java.lang.Boolean |
getDeriveUniqueValues()
If this MultiPickerItem is deriving its options from a dataSource, should it ensure unique field values by
grouping by the value field for this item? This is not necessary if the
target dataSource value field is already unique - for example if this is the primaryKey field for a dataSource. |
ListGridField[] |
getExpandedPickListFields()
|
DataBoundComponent |
getFilterTargetComponent()
Target component for which this SetFilterItem is generating criteria.
|
static SetFilterItem |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
OperatorId |
getSelectedOperator()
Operator for the criteria generated by this item when
useUnselectedValues is false. |
MultiPickerSelectionStyle |
getSelectionStyle()
selectionStyle:"shuttle" is not supported for SetFilterItem
|
java.lang.Boolean |
getToggleUseUnselectedValuesOnSelectAll()
Should this item toggle between tracking selected options and using them to generate "inSet" criteria and unselected
options and using them to generate "notInSet" criteria when the user clicks the
MultiPickerItem.selectAllButton and MultiPickerItem.deselectAllButton on an
unfiltered list of options. |
OperatorId |
getUnselectedOperator()
Operator for the criteria generated by this item when
useUnselectedValues is true. |
java.lang.Boolean |
getUseUnselectedValues()
The SetFilterItem has the capability to treat its set of options as selected by default, and explicitly track the
options a user has unselected, or treat them as unselected by default and explicitly track the user-selected objects.
|
SetFilterItem |
setCanExpand(java.lang.Boolean canExpand)
Should we show an
MultiPickerItem.expansionIcon expand button allowing the user to show an expanded view of the MultiPickerItem.pickList with multiple fields. |
static void |
setDefaultProperties(SetFilterItem setFilterItemProperties)
Class level method to set the default properties of this class.
|
SetFilterItem |
setDefaultUseUnselectedValues(java.lang.Boolean defaultUseUnselectedValues)
Should this item track unselected or selected values by default?
|
SetFilterItem |
setDeriveUniqueValues(java.lang.Boolean deriveUniqueValues)
If this MultiPickerItem is deriving its options from a dataSource, should it ensure unique field values by
grouping by the value field for this item? This is not necessary if the
target dataSource value field is already unique - for example if this is the primaryKey field for a dataSource. |
SetFilterItem |
setExpandedPickListFields(ListGridField... expandedPickListFields)
|
SetFilterItem |
setFilterTargetComponent(DataBoundComponent filterTargetComponent)
Target component for which this SetFilterItem is generating criteria.
|
SetFilterItem |
setSelectedOperator(OperatorId selectedOperator)
Operator for the criteria generated by this item when
useUnselectedValues is false. |
SetFilterItem |
setSelectionStyle(MultiPickerSelectionStyle selectionStyle)
selectionStyle:"shuttle" is not supported for SetFilterItem
|
SetFilterItem |
setToggleUseUnselectedValuesOnSelectAll(java.lang.Boolean toggleUseUnselectedValuesOnSelectAll)
Should this item toggle between tracking selected options and using them to generate "inSet" criteria and unselected
options and using them to generate "notInSet" criteria when the user clicks the
MultiPickerItem.selectAllButton and MultiPickerItem.deselectAllButton on an
unfiltered list of options. |
SetFilterItem |
setUnselectedOperator(OperatorId unselectedOperator)
Operator for the criteria generated by this item when
useUnselectedValues is true. |
SetFilterItem |
setUseUnselectedValues(java.lang.Boolean useUnselectedValues)
The SetFilterItem has the capability to treat its set of options as selected by default, and explicitly track the
options a user has unselected, or treat them as unselected by default and explicitly track the user-selected objects.
|
getCanSelectFolders, getCascadeSelection, getCollapseIconSrc, getDeselectAllButton, getDeselectAllButtonTitle, getDeselectAllWhileFiltered_disabledPrompt, getDeselectAllWhileFiltered_partialCachePrompt, getDisplayField, getExpandIconSrc, getExpansionHeight, getExpansionIcon, getExpansionWidth, getFilterForm, getFilterHint, getFilterIcon, getFilterIconHeight, getFilterIconSrc, getFilterIconWidth, getFilterPickListOnKeypress, getIncludeSelectedParents, getInitialSort, getMultiple, getOptionCriteria, getOptionDataSource, getOptionFilterContext, getOptionOperationId, getPickerLayout, getPickerToolbar, getPickList, getPickListFetchDelay, getPickListHeight, getPickListWidth, getPickTree, getSelectAllButton, getSelectAllButtonTitle, getSelectAllWhileFiltered_disabledPrompt, getSelectAllWhileFiltered_partialCachePrompt, getSelectAllWhileFiltered, getSelectedSelectionListTitle, getSelectionList, getSelectionListLabel, getShowFilterForm, getShowSelectionLabel, getShowSelectionList, getShuttle, getShuttleHeight, getShuttleWidth, getSortDirection, getSortField, getSortFieldAsInt, getSortFieldAsStringArray, getTextMatchStyle, getValueField, getValueFieldName, setCanSelectFolders, setCascadeSelection, setCollapseIconSrc, setDefaultProperties, setDeselectAllButtonTitle, setDeselectAllWhileFiltered_disabledPrompt, setDeselectAllWhileFiltered_partialCachePrompt, setDisplayField, setExpandIconSrc, setExpansionHeight, setExpansionWidth, setFilterHint, setFilterIconHeight, setFilterIconSrc, setFilterIconWidth, setFilterPickListOnKeypress, setIncludeSelectedParents, setInitialSort, setMultiple, setOptionCriteria, setOptionDataSource, setOptionFilterContext, setOptionOperationId, setPickListFetchDelay, setPickListHeight, setPickListWidth, setSelectAllButtonTitle, setSelectAllWhileFiltered_disabledPrompt, setSelectAllWhileFiltered_partialCachePrompt, setSelectAllWhileFiltered, setSelectedSelectionListTitle, setShowFilterForm, setShowSelectionLabel, setShowSelectionList, setShuttleHeight, setShuttleWidth, setSortDirection, setSortField, setSortField, setSortField, setTextMatchStyle, setValueField
getApplyAlignToText, getApplyHeightToTextBox, getCanSelectText, getClipValue, getDateFormatter, getDefaultValue, getEditProxyConstructor, getEscapeHTML, getTextBoxStyle, getWrap, setApplyAlignToText, setApplyHeightToTextBox, setCanSelectText, setClipValue, setDateFormatter, setDefaultProperties, setEditProxyConstructor, setEscapeHTML, setTextBoxStyle, setWrap
_getValue, addBlurHandler, addChangedHandler, addChangeHandler, addClickHandler, addDoubleClickHandler, addEditorEnterHandler, addEditorExitHandler, addFocusHandler, addIcon, addIcon, addIconClickHandler, addIconKeyPressHandler, addItemHoverHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addPendingStatusChangedHandler, addPickerIconClickHandler, addShowContextMenuHandler, addTitleClickHandler, addTitleDoubleClickHandler, addTitleHoverHandler, addValueHoverHandler, addValueIconClickHandler, applyFormula, asSGWTComponent, blurItem, canEditCriterion, checkFormItemType, clearErrors, clearValue, disable, disableIcon, enable, enableIcon, error, error, errorIfNotCreated, focusAfterItem, focusInItem, getAccessKey, getAlign, getAllowExpressions, getAlwaysFetchMissingValues, getAlwaysShowControlBox, getAriaRole, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsObject, getAttributeAsString, getAutoComplete, getAutoCompleteKeywords, getBrowserInputType, getBrowserSpellCheck, getCanEdit, getCanEditOpaqueValues, getCanFocus, getCanHover, getCanTabToIcons, getCanvasAutoChild, getCellHeight, getCellStyle, getChangeOnKeypress, getClassName, getClipStaticValue, getClipTitle, getConfig, getContainerWidget, getControlStyle, getCriteriaField, getCriterion, getCriterion, getCursorPosition, getCustomState, getDataPath, getDecimalPad, getDecimalPrecision, getDefaultIconSrc, getDefaultOperator, getDestroyed, getDisabled, getDisabledHover, getDisableIconsOnReadOnly, getDisplayFieldName, getDisplayValue, getDisplayValue, getEditorTypeConfig, getEditPendingCSSText, getEmptyDisplayValue, getEmptyValueIcon, getEndRow, getErrorIconHeight, getErrorIconProperties, getErrorIconSrc, getErrorIconWidth, getErrorMessageWidth, getErrors, getExportFormat, getFetchMissingValues, getFieldName, getFilterLocally, getForeignDisplayField, getForm, getFormat, getFormItemAutoChild, getFormula, getFullDataPath, getGlobalTabIndex, getGridColNum, getGridRowNum, getHeight, getHeightAsString, getHidden, getHint, getHintStyle, getHoverAlign, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHeightAsString, getHoverOpacity, getHoverPersist, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWidthAsString, getIcon, getIconBaseStyle, getIconHeight, getIconHSpace, getIconPageRect, getIconPrompt, getIconRect, getIcons, getIconTabPosition, getIconVAlign, getIconWidth, getID, getImageURLPrefix, getImageURLSuffix, getImplicitSave, getImplicitSaveOnBlur, getInputFormat, getLeft, getLinearColSpan, getLinearColSpanAsString, getLinearEndRow, getLinearEndRowAsString, getLinearStartRow, getLinearStartRowAsString, getLinearWidth, getLinearWidthAsString, getListGrid, getLoadingDisplayValue, getLocateItemBy, getMinHintWidth, getMultipleValueSeparator, getName, getNullOriginalValueText, getOperator, getOptionDataSourceAsString, getOptionTextMatchStyle, getOriginalValueMessage, getPageLeft, getPageRect, getPageTop, getPaletteDefaults, getPicker, getPickerIcon, getPickerIcon, getPickerIconHeight, getPickerIconName, getPickerIconPrompt, getPickerIconProperties, getPickerIconSrc, getPickerIconStyle, getPickerIconTabPosition, getPickerIconWidth, getPixelHeight, getPixelWidth, getPrintReadOnlyTextBoxStyle, getPrintTextBoxStyle, getPrintTitleStyle, getPrompt, getReadOnlyCanSelectText, getReadOnlyDisplay, getReadOnlyHover, getReadOnlyTextBoxStyle, getReadOnlyWhen, getRect, getRedrawOnChange, getRejectInvalidValueOnChange, getRequired, getRequiredMessage, getRequiredWhen, getRowSpan, getSaveOnEnter, getScClassName, getSelectedRecord, getSelectOnClick, getSelectOnFocus, getShouldSaveValue, getShowClippedTitleOnHover, getShowClippedValueOnHover, getShowDeletions, getShowDisabled, getShowDisabledIconsOnFocus, getShowDisabledPickerIconOnFocus, getShowErrorIcon, getShowErrorIconInline, getShowErrorStyle, getShowErrorText, getShowFocused, getShowFocusedErrorState, getShowFocusedIcons, getShowFocusedPickerIcon, getShowHint, getShowIcons, getShowIconsOnFocus, getShowImageAsURL, getShowOldValueInHover, getShowOver, getShowOverIcons, getShowPending, getShowPickerIcon, getShowPickerIconOnFocus, getShowRTL, getShowTitle, getShowValueIconOnly, getStartRow, getStaticHeight, getStopOnError, getStoreDisplayValues, getSupportsCutPasteEvents, getSuppressValueIcon, getSynchronousValidation, getTabIndex, getTextAlign, getTextFormula, getTimeFormatter, getTitle, getTitleAlign, getTitleColSpan, getTitleOrientation, getTitleStyle, getTitleVAlign, getTooltip, getTop, getType, getUpdateControlOnOver, getUpdatePickerIconOnOver, getUpdateTextBoxOnOver, getUseAdvancedCriteria, getUseDisabledHintStyleForReadOnly, getUseLocalDisplayFieldValue, getValidateOnChange, getValidateOnExit, getValidOperators, getVAlign, getValue, getValueAsFloat, getValueAsInteger, getValueAsLong, getValueAsRecordList, getValueDeselectedCSSText, getValueIconHeight, getValueIconLeftPadding, getValueIconRightPadding, getValueIconSize, getValueIconWidth, getValueMap, getValueMapAsArray, getVisible, getVisibleHeight, getVisibleTitleWidth, getVisibleWhen, getVisibleWidth, getWarnOnEditorTypeConversion, getWarnOnEditorTypeConversionDefault, getWidth, getWidthAsString, getWrapHintText, getWrapTitle, handleWarnOnEditorTypeConversion, hasAdvancedCriteria, hasErrors, hide, hideIcon, invalidateDisplayValueCache, isAssignableFrom, isConfigOnly, isCreated, isCutEvent, isDisabled, isDrawn, isFocused, isInGrid, isPasteEvent, isVisible, linkToInstanceUponCreate, mapDisplayToValue, mapValueToDisplay, mapValueToDisplay, mapValueToDisplay, redraw, redraw, removeIcon, selectedRecordChanged, setAccessKey, setAlign, setAllowExpressions, setAlwaysFetchMissingValues, setAlwaysShowControlBox, setAriaRole, setAriaState, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoComplete, setAutoCompleteKeywords, setBrowserInputType, setBrowserSpellCheck, setCanEdit, setCanEditCriterionPredicate, setCanEditOpaqueValues, setCanFocus, setCanHover, setCanTabToIcons, setCellHeight, setCellStyle, setChangeOnKeypress, setClipStaticValue, setClipTitle, setColSpan, setColSpan, setConfigOnly, setControlStyle, setCriteriaField, setCriterion, setCriterionGetter, setCriterionSetter, setCustomStateGetter, setDataPath, setDecimalPad, setDecimalPrecision, setDefaultIconSrc, setDefaultOperator, setDefaultProperties, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDefaultValue, setDisabled, setDisabledHover, setDisableIconsOnReadOnly, setDisplayFormat, setDisplayFormat, setEditorProperties, setEditorType, setEditorType, setEditorType, setEditorValueFormatter, setEditorValueParser, setEditPendingCSSText, setEmptyDisplayValue, setEmptyValueIcon, setEndRow, setErrorFormatter, setErrorIconHeight, setErrorIconProperties, setErrorIconSrc, setErrorIconWidth, setErrorMessageWidth, setErrorOrientation, setErrors, setErrors, setExportFormat, setFetchMissingValues, setFilterLocally, setForeignDisplayField, setFormat, setFormula, setGlobalTabIndex, setHeight, setHeight, setHidden, setHint, setHintStyle, setHoverAlign, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverHeight, setHoverOpacity, setHoverPersist, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWidth, setIconBaseStyle, setIconDisabled, setIconHeight, setIconHSpace, setIconPrompt, setIcons, setIconShowOnFocus, setIconVAlign, setIconWidth, setID, setImageURLPrefix, setImageURLSuffix, setImplicitSave, setImplicitSaveOnBlur, setInitHandler, setInputFormat, setInputTransformer, setItemHoverFormatter, setItemTitleHoverFormatter, setItemValueHoverFormatter, setJavaScriptObject, setLeft, setLinearColSpan, setLinearColSpan, setLinearEndRow, setLinearEndRow, setLinearStartRow, setLinearStartRow, setLinearWidth, setLinearWidth, setLoadingDisplayValue, setLocateItemBy, setMinHintWidth, setMultipleValueSeparator, setName, setNullOriginalValueText, setNullProperty, setOperator, setOptionDataSource, setOptionFilterContext, setOptionTextMatchStyle, setOriginalValueMessage, setPickerIconHeight, setPickerIconName, setPickerIconPrompt, setPickerIconProperties, setPickerIconSrc, setPickerIconStyle, setPickerIconWidth, setPrintReadOnlyTextBoxStyle, setPrintTextBoxStyle, setPrintTitleStyle, setPrompt, setProperty, setProperty, setProperty, setProperty, setProperty, setReadOnlyCanSelectText, setReadOnlyDisplay, setReadOnlyHover, setReadOnlyTextBoxStyle, setReadOnlyWhen, setRedrawOnChange, setRejectInvalidValueOnChange, setRequired, setRequiredMessage, setRequiredWhen, setRowSpan, setSaveOnEnter, setScClassName, setSelectOnClick, setSelectOnFocus, setShouldSaveValue, setShowClippedTitleOnHover, setShowClippedValueOnHover, setShowDeletions, setShowDisabled, setShowDisabledIconsOnFocus, setShowDisabledPickerIconOnFocus, setShowErrorIcon, setShowErrorIconInline, setShowErrorStyle, setShowErrorText, setShowFocused, setShowFocusedErrorState, setShowFocusedIcons, setShowFocusedPickerIcon, setShowHint, setShowIcons, setShowIconsOnFocus, setShowIfCondition, setShowImageAsURL, setShowOldValueInHover, setShowOver, setShowOverIcons, setShowPending, setShowPickerIcon, setShowPickerIconOnFocus, setShowRTL, setShowTitle, setShowValueIconOnly, setStartRow, setStateCustomizer, setStaticHeight, setStopOnError, setStoreDisplayValues, setSupportsCutPasteEvents, setSuppressValueIcon, setSynchronousValidation, setTabIndex, setTextAlign, setTextFormula, setTimeFormatter, setTitle, setTitleAlign, setTitleColSpan, setTitleHoverFormatter, setTitleOrientation, setTitleStyle, setTitleVAlign, setTooltip, setTop, setType, setUpdateControlOnOver, setUpdatePickerIconOnOver, setUpdateTextBoxOnOver, setUseAdvancedCriteria, setUseDisabledHintStyleForReadOnly, setUseLocalDisplayFieldValue, setUseObjectFactoryForTypeFallback, setValidateOnChange, setValidateOnExit, setValidators, setValidOperators, setVAlign, setValue, setValue, setValue, setValue, setValue, setValue, setValueDeselectedCSSText, setValueFormatter, setValueHoverFormatter, setValueIconHeight, setValueIconLeftPadding, setValueIconMapper, setValueIconRightPadding, setValueIcons, setValueIconSize, setValueIconWidth, setValueMap, setValueMap, setVisible, setVisibleWhen, setWarnOnEditorTypeConversion, setWarnOnEditorTypeConversionDefault, setWidth, setWidth, setWrapHintText, setWrapTitle, shouldApplyHeightToTextBox, shouldFetchMissingValue, shouldSaveOnEnter, shouldStopKeyPressBubbling, show, showIcon, showPicker, stopHover, storeValue, storeValue, updateState, validate, valueClipped
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
public SetFilterItem()
public SetFilterItem(com.google.gwt.core.client.JavaScriptObject jsObj)
public SetFilterItem(java.lang.String name)
public static SetFilterItem getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changePickerIconDefaults(FormItemIcon defaults)
public SetFilterItem setCanExpand(java.lang.Boolean canExpand)
MultiPickerItem.expansionIcon
expand button allowing the user to show an expanded view of the MultiPickerItem.pickList
with multiple fields.
canExpand
only applies to MultiPickerItems with selectionStyle set to "pickList" or "pickTree" and an
explicitly specified set of MultiPickerItem.expandedPickListFields
to display within the expanded view.
setCanExpand
in class MultiPickerItem
canExpand
- New canExpand value. Default value is falseSetFilterItem
instance, for chaining setter callspublic java.lang.Boolean getCanExpand()
MultiPickerItem.expansionIcon
expand button allowing the user to show an expanded view of the MultiPickerItem.pickList
with multiple fields.
canExpand
only applies to MultiPickerItems with selectionStyle set to "pickList" or "pickTree" and an
explicitly specified set of MultiPickerItem.expandedPickListFields
to display within the expanded view.
getCanExpand
in class MultiPickerItem
public SetFilterItem setDefaultUseUnselectedValues(java.lang.Boolean defaultUseUnselectedValues)
If toggleUseUnselectedValuesOnSelectAll
, for setFilterItems with no current criteria (I.E. no explicitly selected or
unselected values), this property will be evaluated when the pickList is shown and useUnselectedValues
will be set to match
this value. This causes the options in the pickList to always show up checked (or unchecked) by default, matching user
expectations of what an "empty" filter represents.
May be set to null, in which case useUnselectedValues will not be modified when the pickList is shown for an empty SetFilterItem
Note : This is an advanced setting
defaultUseUnselectedValues
- New defaultUseUnselectedValues value. Default value is trueSetFilterItem
instance, for chaining setter callspublic java.lang.Boolean getDefaultUseUnselectedValues()
If toggleUseUnselectedValuesOnSelectAll
, for setFilterItems with no current criteria (I.E. no explicitly selected or
unselected values), this property will be evaluated when the pickList is shown and useUnselectedValues
will be set to match
this value. This causes the options in the pickList to always show up checked (or unchecked) by default, matching user
expectations of what an "empty" filter represents.
May be set to null, in which case useUnselectedValues will not be modified when the pickList is shown for an empty SetFilterItem
public SetFilterItem setDeriveUniqueValues(java.lang.Boolean deriveUniqueValues)
grouping by
the value field for this item? This is not necessary if the
target dataSource value field is already unique - for example if this is the primaryKey field for a dataSource. Note
that for MultiPickerItems with deriveUniqueValues:true
, any expandedPickListFields
to be displayed
in the expanded view
will not be able to
display meaningful values unless a summaryFunction
is
supplied to produce aggregated values from the grouped data. This may be achieved by specifying summaryFunctions
directly on the optionFilterContext
, or on the operationBinding
for
the fetch operation
.
Note : This is an advanced setting
setDeriveUniqueValues
in class MultiPickerItem
deriveUniqueValues
- New deriveUniqueValues value. Default value is trueSetFilterItem
instance, for chaining setter callspublic java.lang.Boolean getDeriveUniqueValues()
grouping by
the value field for this item? This is not necessary if the
target dataSource value field is already unique - for example if this is the primaryKey field for a dataSource. Note
that for MultiPickerItems with deriveUniqueValues:true
, any expandedPickListFields
to be displayed
in the expanded view
will not be able to
display meaningful values unless a summaryFunction
is
supplied to produce aggregated values from the grouped data. This may be achieved by specifying summaryFunctions
directly on the optionFilterContext
, or on the operationBinding
for
the fetch operation
.
getDeriveUniqueValues
in class MultiPickerItem
public SetFilterItem setExpandedPickListFields(ListGridField... expandedPickListFields)
canExpand
is true, this is the list of
fields to display in the PickList or pickTree
when the picker is expandedsetExpandedPickListFields
in class MultiPickerItem
expandedPickListFields
- New expandedPickListFields value. Default value is nullSetFilterItem
instance, for chaining setter callspublic ListGridField[] getExpandedPickListFields()
canExpand
is true, this is the list of
fields to display in the PickList or pickTree
when the picker is expandedgetExpandedPickListFields
in class MultiPickerItem
public SetFilterItem setFilterTargetComponent(DataBoundComponent filterTargetComponent)
sourceList
will be the data object
for the target component, and the option dataSource,
option criteria, option fetch operation and so on will be derived from the target component's configuration. For a
setFilterItem embedded in a filter editor
, this
will be the target listGrid.
filterTargetComponent
- New filterTargetComponent value. Default value is nullSetFilterItem
instance, for chaining setter callspublic DataBoundComponent getFilterTargetComponent()
sourceList
will be the data object
for the target component, and the option dataSource,
option criteria, option fetch operation and so on will be derived from the target component's configuration. For a
setFilterItem embedded in a filter editor
, this
will be the target listGrid.
public SetFilterItem setSelectedOperator(OperatorId selectedOperator)
useUnselectedValues
is false.
Note : This is an advanced setting
selectedOperator
- New selectedOperator value. Default value is "inSet"SetFilterItem
instance, for chaining setter callspublic OperatorId getSelectedOperator()
useUnselectedValues
is false.public SetFilterItem setSelectionStyle(MultiPickerSelectionStyle selectionStyle)
setSelectionStyle
in class MultiPickerItem
selectionStyle
- New selectionStyle value. Default value is "pickList"SetFilterItem
instance, for chaining setter callspublic MultiPickerSelectionStyle getSelectionStyle()
getSelectionStyle
in class MultiPickerItem
public SetFilterItem setToggleUseUnselectedValuesOnSelectAll(java.lang.Boolean toggleUseUnselectedValuesOnSelectAll)
MultiPickerItem.selectAllButton
and MultiPickerItem.deselectAllButton
on an
unfiltered list of options. See useUnselectedValues
for more detail
Note : This is an advanced setting
toggleUseUnselectedValuesOnSelectAll
- New toggleUseUnselectedValuesOnSelectAll value. Default value is trueSetFilterItem
instance, for chaining setter callspublic java.lang.Boolean getToggleUseUnselectedValuesOnSelectAll()
MultiPickerItem.selectAllButton
and MultiPickerItem.deselectAllButton
on an
unfiltered list of options. See useUnselectedValues
for more detail
public SetFilterItem setUnselectedOperator(OperatorId unselectedOperator)
useUnselectedValues
is true.
Note : This is an advanced setting
unselectedOperator
- New unselectedOperator value. Default value is "notInSet"SetFilterItem
instance, for chaining setter callspublic OperatorId getUnselectedOperator()
useUnselectedValues
is true.public SetFilterItem setUseUnselectedValues(java.lang.Boolean useUnselectedValues)
While
tracking selected values, this item will generate inSet
criteria. While tracking unselected
values, it will generate notInSet
criteria.
If toggleUseUnselectedValuesOnSelectAll
is true, if the current set of options is unfiltered, the MultiPickerItem.selectAllButton
and MultiPickerItem.deselectAllButton
will
clear any current value and toggle useUnselectedValues - effectively switching between tracking inclusive (inSet) values
and exclusive (notInSet) values.
If this method is called after the component has been drawn/initialized:
Clear any current value for this item and dynamically update useUnselectedValues
.
useUnselectedValues
- new value for useUnselectedValues. Default value is trueSetFilterItem
instance, for chaining setter callspublic java.lang.Boolean getUseUnselectedValues()
While
tracking selected values, this item will generate inSet
criteria. While tracking unselected
values, it will generate notInSet
criteria.
If toggleUseUnselectedValuesOnSelectAll
is true, if the current set of options is unfiltered, the MultiPickerItem.selectAllButton
and MultiPickerItem.deselectAllButton
will
clear any current value and toggle useUnselectedValues - effectively switching between tracking inclusive (inSet) values
and exclusive (notInSet) values.
public static void setDefaultProperties(SetFilterItem setFilterItemProperties)
Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
setFilterItemProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties