Interface TableConditionModel<C>

Type Parameters:
C - the column identifier type
All Known Subinterfaces:
EntityTableConditionModel<C>

public interface TableConditionModel<C>
See Also:
  • Method Details

    • conditionModels

      Map<C,ColumnConditionModel<C,?>> conditionModels()
      Returns:
      an unmodifiable map containing the condition models available in this table condition model, mapped to their respective column identifiers
    • conditionModel

      <T> ColumnConditionModel<? extends C,T> conditionModel(C columnIdentifier)
      The condition model associated with columnIdentifier
      Type Parameters:
      T - the column value type
      Parameters:
      columnIdentifier - the column identifier for which to retrieve the ColumnConditionModel
      Returns:
      the ColumnConditionModel for the columnIdentifier
      Throws:
      IllegalArgumentException - in case no condition model exists for the given columnIdentifier
    • clear

      void clear()
      Clears the search state of all the condition models, disables them and resets the operator to Operator.EQUAL
    • enabled

      boolean enabled()
      Returns:
      true if any of the underlying condition models are enabled
    • enabled

      boolean enabled(C columnIdentifier)
      Parameters:
      columnIdentifier - the column identifier
      Returns:
      true if the condition model behind column with columnIdentifier is enabled
    • conditionChangedEvent

      EventObserver<?> conditionChangedEvent()
      Returns:
      an observer notified each time the condition changes
    • tableConditionModel

      static <C> TableConditionModel<C> tableConditionModel(Collection<ColumnConditionModel<C,?>> conditionModels)
      Instantiates a new TableConditionModel
      Type Parameters:
      C - the column identifier type
      Parameters:
      conditionModels - the column condition models
      Returns:
      a new TableConditionModel