Package docking.widgets.table.constraint
Class AtLeastColumnConstraint<T extends java.lang.Comparable<T>>
- java.lang.Object
- 
- docking.widgets.table.constraint.SingleValueColumnConstraint<T>
- 
- docking.widgets.table.constraint.AtLeastColumnConstraint<T>
 
 
- 
- Type Parameters:
- T- the column type.
 - All Implemented Interfaces:
- ColumnConstraint<T>,- java.lang.Comparable<ColumnConstraint<T>>
 
 public class AtLeastColumnConstraint<T extends java.lang.Comparable<T>> extends SingleValueColumnConstraint<T> Column Constraint where acceptable column values are greater than or equal to some specified value of the column type.
- 
- 
Field Summary- 
Fields inherited from class docking.widgets.table.constraint.SingleValueColumnConstrainteditorProvider, name
 
- 
 - 
Constructor SummaryConstructors Constructor Description AtLeastColumnConstraint(java.lang.String name, T minValue, EditorProvider<T> editorProvider, java.lang.String group)Constructs a new AtLeastColumnConstraint with a minimum value, constraint name, and groupAtLeastColumnConstraint(T minValue, EditorProvider<T> editorProvider)Constructs a new AtLeastColumnConstraint with a default name, default group and a minimum value.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(T value, TableFilterContext context)Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwiseSingleValueColumnConstraint<T>copy(T newValue)subclasses must override to generate new versions of themselves but with new comparison value.- 
Methods inherited from class docking.widgets.table.constraint.SingleValueColumnConstraintequals, getColumnType, getConstraintValue, getConstraintValueString, getEditor, getGroup, getName, hashCode, parseConstraintValue
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface docking.widgets.table.constraint.ColumnConstraintasString, compareTo, getConstraintValueTooltip
 
- 
 
- 
- 
- 
Constructor Detail- 
AtLeastColumnConstraintpublic AtLeastColumnConstraint(T minValue, EditorProvider<T> editorProvider) Constructs a new AtLeastColumnConstraint 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.
 
 - 
AtLeastColumnConstraintpublic AtLeastColumnConstraint(java.lang.String name, T minValue, EditorProvider<T> editorProvider, java.lang.String group)Constructs a new AtLeastColumnConstraint with a minimum value, constraint name, and group- Parameters:
- name- the name of the constraint. For some types T, the default "At Least" may not be best.
- 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.
- group- the name of the group used to organize the list of constraints for a column.
 
 
- 
 - 
Method Detail- 
acceptspublic boolean accepts(T value, TableFilterContext context) Description copied from interface:ColumnConstraintCompares 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
 
 - 
copypublic SingleValueColumnConstraint<T> copy(T newValue) Description copied from class:SingleValueColumnConstraintsubclasses must override to generate new versions of themselves but with new comparison value.- Specified by:
- copyin class- SingleValueColumnConstraint<T extends java.lang.Comparable<T>>
- 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.
 
 
- 
 
-