Package docking.widgets.table.constraint
Class StringContainsColumnConstraint
java.lang.Object
docking.widgets.table.constraint.StringColumnConstraint
docking.widgets.table.constraint.StringContainsColumnConstraint
- All Implemented Interfaces:
ColumnConstraint<String>,Comparable<ColumnConstraint<String>>
- Direct Known Subclasses:
StringNotContainsColumnConstraint
String column constraint for matching column values if they contain the constraint value pattern.
-
Field Summary
Fields inherited from class docking.widgets.table.constraint.StringColumnConstraint
matchesPattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsubclasses must override to generate new versions of themselves but with a new pattern string.protected PatterngenerateMatchesPattern(String patternString) getName()Returns the name of the constraintMethods inherited from class docking.widgets.table.constraint.StringColumnConstraint
accepts, equals, generateFindsPattern, getColumnType, getConstraintValueString, getConstraintValueTooltip, getEditor, getGroup, getHighlightMatcher, getPatternString, hashCode, isValidPatternString, 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
-
StringContainsColumnConstraint
Constructor.- Parameters:
patternString- the string to use to create a "contains" pattern.
-
-
Method Details
-
getName
Description copied from interface:ColumnConstraintReturns the name of the constraint- Returns:
- the name of the constraint.
-
copy
Description copied from class:StringColumnConstraintsubclasses must override to generate new versions of themselves but with a new pattern string.- Specified by:
copyin classStringColumnConstraint- 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.
-
generateMatchesPattern
- Specified by:
generateMatchesPatternin classStringColumnConstraint
-