Package docking.widgets.table.constraint
Class StringNotMatchesColumnConstraint
java.lang.Object
docking.widgets.table.constraint.StringColumnConstraint
docking.widgets.table.constraint.StringMatchesColumnConstraint
docking.widgets.table.constraint.StringNotMatchesColumnConstraint
- All Implemented Interfaces:
ColumnConstraint<String>,Comparable<ColumnConstraint<String>>
String column constraint for matching column values if they do not match a full regular
expression pattern.
-
Field Summary
Fields inherited from class docking.widgets.table.constraint.StringColumnConstraint
matchesPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(String value, TableFilterContext context) Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwisesubclasses must override to generate new versions of themselves but with a new pattern string.getGroup()Returns a "group" string that is used to logically group column constraints for presentation to the usergetName()Returns the name of the constraintMethods inherited from class docking.widgets.table.constraint.StringMatchesColumnConstraint
generateFindsPattern, generateMatchesPattern, isValidPatternStringMethods inherited from class docking.widgets.table.constraint.StringColumnConstraint
equals, getColumnType, getConstraintValueString, getConstraintValueTooltip, getEditor, getHighlightMatcher, getPatternString, hashCode, parseConstraintValue, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface docking.widgets.table.constraint.ColumnConstraint
asString, compareTo
-
Constructor Details
-
StringNotMatchesColumnConstraint
ConstructorThis class is for users to enter true regular expression which is why it creates a pattern directly without using the
UserSearchUtils- Parameters:
spec- the string to use to create a "matcher" pattern.
-
-
Method Details
-
getName
Description copied from interface:ColumnConstraintReturns the name of the constraint- Specified by:
getNamein interfaceColumnConstraint<String>- Overrides:
getNamein classStringMatchesColumnConstraint- Returns:
- the name of the constraint.
-
getGroup
Description copied from interface:ColumnConstraintReturns a "group" string that is used to logically group column constraints for presentation to the user- Specified by:
getGroupin interfaceColumnConstraint<String>- Overrides:
getGroupin classStringColumnConstraint- Returns:
- the group this constraint belongs to.
-
copy
Description copied from class:StringColumnConstraintsubclasses must override to generate new versions of themselves but with a new pattern string.- Overrides:
copyin classStringMatchesColumnConstraint- Parameters:
newPatternString- the new string to use for creating the match pattern.- Returns:
- a new ColumnConstraint that is the same type as this constraint but with a new range defined.
-
accepts
Description copied from interface:ColumnConstraintCompares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwise- Specified by:
acceptsin interfaceColumnConstraint<String>- Overrides:
acceptsin classStringColumnConstraint- Parameters:
value- the column value to be tested.context- provides additional information about 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
-