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 BooleanDo we allow blank FilterFields? It is safe to say true here, but for compatibility reasons with old applications, the default is false.
-
allowedBuilderTypes ArrayList of builder type constants. Default is[ANY_OF, ALL_OF, NONE_OF].
-
allowGroups BooleanAllow groups of conditions to be added. Default istrue. Iffalse, only individual conditions (non-logical filters) can be added.
-
builderTypeNames ArrayA 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 BooleanShould Comparison Filters for Strings do case insensitive matching? Default is"false".
-
cls StringThe CSS class to be added to this panel’s element (defaults to"gxp-filterbuilder").
-
filter OpenLayers.FilterFilter to initialize the component with
-
postComboText StringString to display after filter type combo. Default is"of the following:".
-
preComboText StringString 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.FilterReturns a filter that fits the model in the Filter Encoding specification. Use this method instead of directly accessing the
filterproperty. Return will befalseif any child filter does not have a type, property, or value.
-
FilterBuilder.setFilter()¶ Parameters: filter – OpenLayers.FilterChange the filter associated with this instance.