public class ValidationHandler extends Object
Modifier and Type | Field and Description |
---|---|
static ValidationRule |
EMAIL |
static ValidationRule |
EMAIL_OR_NULL |
static ValidationRule |
HOSTNAME |
static ValidationRule |
HOSTNAME_OR_NULL |
static ValidationRule |
NOT_BLANK |
static ValidationRule |
NOT_NULL |
static ValidationRule |
NUMERIC |
static ValidationRule |
NUMERIC_OR_NULL |
static ValidationRule |
URL |
static ValidationRule |
URL_OR_NULL |
Constructor and Description |
---|
ValidationHandler()
Erzeugt eine Instanz der Klasse 'ValidationHandler'
|
ValidationHandler(Color required,
Color valid,
Color invalid) |
Modifier and Type | Method and Description |
---|---|
Color |
getInvalidInputColor() |
Color |
getRequirdedInputColor() |
Color |
getValidInputColor() |
protected Object |
getValue(JComponent c) |
void |
init() |
boolean |
isEnabled() |
boolean |
isValid() |
boolean |
isValid(boolean debugLog) |
boolean |
isValid(JComponent c) |
boolean |
isValid(JComponent c,
Object value) |
boolean |
isValidatable(JComponent c) |
void |
paint(JComponent c,
Color color) |
void |
putRule(JComponent c,
ValidationRule rule) |
void |
setEnabled(boolean val) |
void |
validate() |
void |
validate(JComponent c) |
public static final ValidationRule NOT_BLANK
public static final ValidationRule NOT_NULL
public static final ValidationRule NUMERIC
public static final ValidationRule NUMERIC_OR_NULL
public static final ValidationRule EMAIL
public static final ValidationRule EMAIL_OR_NULL
public static final ValidationRule HOSTNAME
public static final ValidationRule HOSTNAME_OR_NULL
public static final ValidationRule URL
public static final ValidationRule URL_OR_NULL
public ValidationHandler()
public Color getInvalidInputColor()
public Color getRequirdedInputColor()
public Color getValidInputColor()
protected Object getValue(JComponent c)
public void init()
public boolean isEnabled()
public boolean isValid()
public boolean isValid(boolean debugLog)
public boolean isValid(JComponent c)
public boolean isValid(JComponent c, Object value)
public boolean isValidatable(JComponent c)
public void paint(JComponent c, Color color)
public void putRule(JComponent c, ValidationRule rule)
public void setEnabled(boolean val)
public void validate()
public void validate(JComponent c)
Copyright © 2015 OpenEstate. All rights reserved.