Class AtMostDateColumnConstraint

java.lang.Object
docking.widgets.table.constraint.SingleValueColumnConstraint<LocalDate>
docking.widgets.table.constraint.AtMostDateColumnConstraint
All Implemented Interfaces:
ColumnConstraint<LocalDate>, Comparable<ColumnConstraint<LocalDate>>

public class AtMostDateColumnConstraint extends SingleValueColumnConstraint<LocalDate>
Column Constraint where acceptable column values are greater than or equal to some specified value of the column type
  • Constructor Details

    • AtMostDateColumnConstraint

      public AtMostDateColumnConstraint(LocalDate minValue, EditorProvider<LocalDate> editorProvider)
      Constructs a new AtLeastDateColumnConstraint with a default name, default group and a minimum value
      Parameters:
      minValue - the value for which all acceptable column values must be greater than or equal.
      editorProvider - an object that can provide a ConstraintEditor for this constraint type.
  • Method Details

    • accepts

      public boolean accepts(LocalDate value, TableFilterContext context)
      Description copied from interface: ColumnConstraint
      Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwise
      Parameters:
      value - the column value to be tested.
      context - provides additional information about the the table and its data. This allows the filter to base its decision on information other than just the column value.
      Returns:
      true if the column value passes the constraint, false otherwise
    • copy

      Description copied from class: SingleValueColumnConstraint
      subclasses must override to generate new versions of themselves but with new comparison value.
      Specified by:
      copy in class SingleValueColumnConstraint<LocalDate>
      Parameters:
      newValue - the new value to compare column values against.
      Returns:
      a new ColumnConstraint that is the same type as this constraint but with a new comparison value.