Interface FilterColumnConditionPanel.FieldFactory<C>

Enclosing class:
FilterColumnConditionPanel<C,T>

public static interface FilterColumnConditionPanel.FieldFactory<C>
Provides equal, upper and lower bound input fields for a ColumnConditionPanel
  • Method Summary

    Modifier and Type
    Method
    Description
    createEqualField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
    Creates the field representing the equal value, linked to ColumnConditionModel.equalValue()
    createInField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
    Creates the field representing the in values, linked to ColumnConditionModel.inValues()
    createLowerBoundField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
    Creates the field representing the lower bound value, linked to ColumnConditionModel.lowerBoundValue()
    createUpperBoundField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
    Creates the field representing the upper bound value, linked to ColumnConditionModel.upperBoundValue()
    boolean
    supportsType(Class<?> columnClass)
     
  • Method Details

    • supportsType

      boolean supportsType(Class<?> columnClass)
      Parameters:
      columnClass - the column class
      Returns:
      true if the type is supported
    • createEqualField

      JComponent createEqualField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
      Creates the field representing the equal value, linked to ColumnConditionModel.equalValue()
      Returns:
      the equal value field
      Throws:
      IllegalArgumentException - in case the bound type is not supported
    • createUpperBoundField

      Optional<JComponent> createUpperBoundField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
      Creates the field representing the upper bound value, linked to ColumnConditionModel.upperBoundValue()
      Returns:
      an upper bound input field, or an empty Optional if it does not apply to the bound type
      Throws:
      IllegalArgumentException - in case the bound type is not supported
    • createLowerBoundField

      Optional<JComponent> createLowerBoundField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
      Creates the field representing the lower bound value, linked to ColumnConditionModel.lowerBoundValue()
      Returns:
      a lower bound input field, or an empty Optional if it does not apply to the bound type
      Throws:
      IllegalArgumentException - in case the bound type is not supported
    • createInField

      JComponent createInField(is.codion.common.model.table.ColumnConditionModel<C,?> conditionModel)
      Creates the field representing the in values, linked to ColumnConditionModel.inValues()
      Returns:
      the in value field
      Throws:
      IllegalArgumentException - in case the bound type is not supported