|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.utils.ui.ValidationUtils
public final class ValidationUtils
Validation utils.
Method Summary | |
---|---|
static void |
rejectIfEmpty(java.lang.CharSequence field,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the field if empty. |
static void |
rejectIfEmpty(java.util.Collection<?> list,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the list if empty. |
static void |
rejectIfEmpty(javax.swing.JList list,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the list if there is empty. |
static void |
rejectIfLongerThan(java.lang.CharSequence field,
java.lang.String name,
int max,
java.util.Collection<JThequeError> errors)
Reject the field if longer than a max. |
static void |
rejectIfNothingSelected(javax.swing.ComboBoxModel model,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the model if nothing is selected. |
static void |
rejectIfNothingSelected(javax.swing.JList list,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the list if nothing is selected. |
static void |
rejectIfNotNumerical(java.lang.String field,
java.lang.String name,
java.util.Collection<JThequeError> errors)
Reject the field if not numerical. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void rejectIfEmpty(java.lang.CharSequence field, java.lang.String name, java.util.Collection<JThequeError> errors)
field
- The field to test.name
- The name of the field.errors
- The errors list.public static void rejectIfLongerThan(java.lang.CharSequence field, java.lang.String name, int max, java.util.Collection<JThequeError> errors)
field
- The field to test.name
- The name of the field.max
- The max length of the field.errors
- The errors list.public static void rejectIfNothingSelected(javax.swing.JList list, java.lang.String name, java.util.Collection<JThequeError> errors)
list
- The list to test.name
- The name of the field.errors
- The errors list.public static void rejectIfNothingSelected(javax.swing.ComboBoxModel model, java.lang.String name, java.util.Collection<JThequeError> errors)
model
- The model to test.name
- The name of the field.errors
- The errors list.public static void rejectIfNotNumerical(java.lang.String field, java.lang.String name, java.util.Collection<JThequeError> errors)
field
- The field to test.name
- The name of the field.errors
- The errors list.public static void rejectIfEmpty(java.util.Collection<?> list, java.lang.String name, java.util.Collection<JThequeError> errors)
list
- The list to test.name
- The name of the field.errors
- The errors list.public static void rejectIfEmpty(javax.swing.JList list, java.lang.String name, java.util.Collection<JThequeError> errors)
list
- The list to test.name
- The name of the list.errors
- The errors to fill.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |