Interface FilterComponent

All Superinterfaces:
Component
All Known Subinterfaces:
FullTextFilter, GroupFilter, JpqlFilter<V>, LogicalFilterComponent, PropertyFilter<V>, SingleFilterComponent<V>
All Known Implementing Classes:
AbstractSingleFilterComponent, FullTextFilterImpl, GroupFilterImpl, JpqlFilterImpl, PropertyFilterImpl

public interface FilterComponent extends Component
Component that can be used for filtering entities returned by the DataLoader. The filter component is related to Condition which will be used together with query when loading entities into the DataLoader.
  • Method Details

    • getDataLoader

      DataLoader getDataLoader()
      Returns:
      a DataLoader related to the current filter component
    • setDataLoader

      @StudioProperty(type=DATALOADER_REF, required=true) void setDataLoader(DataLoader dataLoader)
      Sets a DataLoader related to the current filter component.
      Parameters:
      dataLoader - a DataLoader to set
    • isAutoApply

      boolean isAutoApply()
      Returns:
      true if the filter component should be automatically applied to the DataLoader when the value component value is changed
    • setAutoApply

      @StudioProperty(defaultValue="true") void setAutoApply(boolean autoApply)
      Sets whether the filter component should be automatically applied to the DataLoader when the value component value is changed.
      Parameters:
      autoApply - true if the filter component should be automatically applied to the DataLoader when the value component value is changed
    • isConditionModificationDelegated

      boolean isConditionModificationDelegated()
      Returns:
      true if the filter component is located inside the Filter or LogicalFilterComponent and the modification of DataLoader condition is delegated to the owner FilterComponent or Filter, false otherwise
    • setConditionModificationDelegated

      void setConditionModificationDelegated(boolean conditionModificationDelegated)
      Sets whether the modification of DataLoader condition is delegated to the owner FilterComponent or Filter.
      Parameters:
      conditionModificationDelegated - true if the filter component is located inside the Filter or LogicalFilterComponent and the modification of DataLoader condition is delegated to the owner FilterComponent or Filter, false otherwise
    • getQueryCondition

      Condition getQueryCondition()
      Returns:
      a Condition related to the current filter component
    • apply

      void apply()
      Applies the current filter component condition.