Interface PropertyFilter<V>

Type Parameters:
V - value type
All Superinterfaces:
Component, Component.BelongToFrame, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, FilterComponent, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasValue<V>, Requirable, SingleFilterComponent<V>, SupportsCaptionPosition, Validatable
All Known Implementing Classes:
PropertyFilterImpl

@StudioComponent(caption="PropertyFilter", category="Components", xmlElement="propertyFilter", documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/filter-components.html#property-filter", canvasBehaviour=PROPERTY_FILTER, icon="io/jmix/ui/icon/component/filter.svg") public interface PropertyFilter<V> extends SingleFilterComponent<V>
PropertyFilter is a UI component used for filtering entities returned by the DataLoader. The component is related to entity property and can automatically render proper layout for setting a condition value. In general case a PropertyFilter layout contains a label with entity property caption, operation label or selector (=, contains, >, etc.) and a field for editing a property value.
  • Field Details

  • Method Details

    • getQueryCondition

      PropertyCondition getQueryCondition()
      Specified by:
      getQueryCondition in interface FilterComponent
      Returns:
      a PropertyCondition related to the current property filter
    • getProperty

      String getProperty()
      Returns:
      related entity property name
    • setProperty

      @StudioProperty(type=PROPERTY_PATH_REF, required=true, typeParameter="V") void setProperty(String property)
      Sets related entity property name.
      Parameters:
      property - entity property name
    • getOperation

      PropertyFilter.Operation getOperation()
      Returns:
      a filtering operation
    • setOperation

      void setOperation(PropertyFilter.Operation operation)
      Sets a filtering operation.
      Parameters:
      operation - a filtering operation
    • isOperationEditable

      boolean isOperationEditable()
      Returns:
      whether an operation selector is visible.
    • setOperationEditable

      @StudioProperty(defaultValue="false") void setOperationEditable(boolean operationEditable)
      Sets whether an operation selector is visible.
      Parameters:
      operationEditable - whether an operation selector is visible
    • isOperationCaptionVisible

      boolean isOperationCaptionVisible()
      Returns:
      whether to show operation caption
    • setOperationCaptionVisible

      @StudioProperty(defaultValue="true") void setOperationCaptionVisible(boolean operationCaptionVisible)
      Sets whether to show operation caption.
      Parameters:
      operationCaptionVisible - whether to show operation caption
    • addOperationChangeListener

      Subscription addOperationChangeListener(Consumer<PropertyFilter.OperationChangeEvent> listener)
      Adds a listener that is invoked when the operation property changes.
      Parameters:
      listener - a listener to add
      Returns:
      a registration object for removing an event listener