@Portable public class ColorValidator extends Object implements PropertyFieldValidator
Modifier and Type | Field and Description |
---|---|
static List<Character> |
_hexLetters |
Constructor and Description |
---|
ColorValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getValidatorErrorMessage()
Error message used in property editor.
|
static boolean |
isValid(String aColor) |
boolean |
validate(Object value)
Validate a field new value
|
public static boolean isValid(String aColor)
public boolean validate(Object value)
PropertyFieldValidator
validate
in interface PropertyFieldValidator
public String getValidatorErrorMessage()
PropertyFieldValidator
getValidatorErrorMessage
in interface PropertyFieldValidator
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.