gxp.FilterBuilder

Extends
xtype
gxp_filterbuilder
class gxp.FilterBuilder(config)

Create a panel for assembling a filter.

Config Options

Configuration properties in addition to those listed for Ext.Panel.

allowBlank

Boolean Do we allow blank FilterFields? It is safe to say true here, but for compatibility reasons with old applications, the default is false.

allowedBuilderTypes

Array List of builder type constants. Default is [ANY_OF, ALL_OF, NONE_OF].

allowGroups

Boolean Allow groups of conditions to be added. Default is true. If false, only individual conditions (non-logical filters) can be added.

builderTypeNames

Array A list of labels that correspond to builder type constants. These will be the option names available in the builder type combo. Default is ["any", "all", "none", "not all"].

caseInsensitiveMatch

Boolean Should Comparison Filters for Strings do case insensitive matching? Default is "false".

cls

String The CSS class to be added to this panel’s element (defaults to "gxp-filterbuilder").

filter

OpenLayers.Filter Filter to initialize the component with

postComboText

String String to display after filter type combo. Default is "of the following:".

preComboText

String String to display before filter type combo. Default is "Match".

Public Methods

Public methods in addition to those listed for Ext.Panel.

FilterBuilder.getFilter()
Returns:OpenLayers.Filter

Returns a filter that fits the model in the Filter Encoding specification. Use this method instead of directly accessing the filter property. Return will be false if any child filter does not have a type, property, or value.

FilterBuilder.setFilter()
Parameters:filterOpenLayers.Filter

Change the filter associated with this instance.