Package docking.widgets.table.constraint
Class StringNotStartsWithColumnConstraint
- java.lang.Object
-
- docking.widgets.table.constraint.StringColumnConstraint
-
- docking.widgets.table.constraint.StringStartsWithColumnConstraint
-
- docking.widgets.table.constraint.StringNotStartsWithColumnConstraint
-
- All Implemented Interfaces:
ColumnConstraint<java.lang.String>,java.lang.Comparable<ColumnConstraint<java.lang.String>>
public class StringNotStartsWithColumnConstraint extends StringStartsWithColumnConstraint
String column constraint for matching column values if they don't start with the constraint value pattern.
-
-
Field Summary
-
Fields inherited from class docking.widgets.table.constraint.StringColumnConstraint
matchesPattern
-
-
Constructor Summary
Constructors Constructor Description StringNotStartsWithColumnConstraint(java.lang.String spec)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(java.lang.String value, TableFilterContext context)Compares value against the current constraint value to determine acceptance; true if value satisfies the constraints' value, false otherwiseColumnConstraint<java.lang.String>copy(java.lang.String newPatternString)subclasses must override to generate new versions of themselves but with a new pattern string.java.lang.StringgetGroup()Returns a "group" string that is used to logically group column constraints for presentation to the userjava.lang.StringgetName()Returns the name of the constraint-
Methods inherited from class docking.widgets.table.constraint.StringStartsWithColumnConstraint
generateMatchesPattern
-
Methods inherited from class docking.widgets.table.constraint.StringColumnConstraint
equals, generateFindsPattern, getColumnType, getConstraintValueString, getConstraintValueTooltip, getEditor, getHighlightMatcher, getPatternString, hashCode, isValidPatternString, parseConstraintValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface docking.widgets.table.constraint.ColumnConstraint
asString, compareTo
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:ColumnConstraintReturns the name of the constraint- Specified by:
getNamein interfaceColumnConstraint<java.lang.String>- Overrides:
getNamein classStringStartsWithColumnConstraint- Returns:
- the name of the constraint.
-
accepts
public boolean accepts(java.lang.String 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- Specified by:
acceptsin interfaceColumnConstraint<java.lang.String>- Overrides:
acceptsin classStringColumnConstraint- 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
-
getGroup
public java.lang.String 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<java.lang.String>- Overrides:
getGroupin classStringColumnConstraint- Returns:
- the group this constraint belongs to.
-
copy
public ColumnConstraint<java.lang.String> copy(java.lang.String newPatternString)
Description copied from class:StringColumnConstraintsubclasses must override to generate new versions of themselves but with a new pattern string.- Overrides:
copyin classStringStartsWithColumnConstraint- 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.
-
-