|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.core.utils.ui.ValidationUtils
public final class ValidationUtils
Validation utils.
| Method Summary | |
|---|---|
static void |
rejectIfEmpty(CharSequence field,
String name,
Collection<JThequeError> errors)
Reject the field if empty. |
static void |
rejectIfEmpty(Collection<?> list,
String name,
Collection<JThequeError> errors)
Reject the list if empty. |
static void |
rejectIfEmpty(JList list,
String name,
Collection<JThequeError> errors)
Reject the list if there is empty. |
static void |
rejectIfLongerThan(CharSequence field,
String name,
int max,
Collection<JThequeError> errors)
Reject the field if longer than a max. |
static void |
rejectIfNothingSelected(ComboBoxModel model,
String name,
Collection<JThequeError> errors)
Reject the model if nothing is selected. |
static void |
rejectIfNothingSelected(JList list,
String name,
Collection<JThequeError> errors)
Reject the list if nothing is selected. |
static void |
rejectIfNotNumerical(String field,
String name,
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(CharSequence field,
String name,
Collection<JThequeError> errors)
field - The field to test.name - The name of the field.errors - The errors list.
public static void rejectIfLongerThan(CharSequence field,
String name,
int max,
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(JList list,
String name,
Collection<JThequeError> errors)
list - The list to test.name - The name of the field.errors - The errors list.
public static void rejectIfNothingSelected(ComboBoxModel model,
String name,
Collection<JThequeError> errors)
model - The model to test.name - The name of the field.errors - The errors list.
public static void rejectIfNotNumerical(String field,
String name,
Collection<JThequeError> errors)
field - The field to test.name - The name of the field.errors - The errors list.
public static void rejectIfEmpty(Collection<?> list,
String name,
Collection<JThequeError> errors)
list - The list to test.name - The name of the field.errors - The errors list.
public static void rejectIfEmpty(JList list,
String name,
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 | |||||||||