|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.utils.ui.constraints.ConstraintManager
public final class ConstraintManager
A constraint manager.
Method Summary | |
---|---|
static void |
addConstraint(java.lang.String fieldName,
Constraint constraint)
Add a constraint. |
static void |
configure(javax.swing.JTextField field,
java.lang.String fieldName)
Configure a JTextField with the constraint. |
static Constraint |
getConstraint(java.lang.String fieldName)
Return the constraint for a specific field. |
static void |
validate(java.lang.String fieldName,
java.lang.Object field,
java.util.Collection<JThequeError> errors)
Validate the field with the constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addConstraint(java.lang.String fieldName, Constraint constraint)
fieldName
- The name of the field.constraint
- The constraint.public static Constraint getConstraint(java.lang.String fieldName)
fieldName
- The name of the field to get the constraint for.
public static void validate(java.lang.String fieldName, java.lang.Object field, java.util.Collection<JThequeError> errors)
fieldName
- The name of the field.field
- The field.errors
- The errors list to fill.public static void configure(javax.swing.JTextField field, java.lang.String fieldName)
field
- The field to configure.fieldName
- The name of the field.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |