// when it is run. The
// value used here is from a pseduoclass.
// Extract styles from 'mcs-invalid' pseudo-class,
// to be used to emphasise validation errors.
StylesExtractor stylesExtractor =
WidgetHelper.createStylesExtractor(null, inputAttributes.getStyles());
stylesExtractor.setPseudoClass(StatefulPseudoClasses.MCS_INVALID);
String invalidStyles = stylesExtractor.getJavaScriptStyles();
validateAttributes.setInvalidStyle(invalidStyles);
stylesExtractor.setPseudoClass(null);
boolean containsMessageAction = stylesExtractor
.containsMessageValidationErrorAction();
validateAttributes
.setContainsMessageValidationErrorAction(containsMessageAction);
boolean containsFocusAction = stylesExtractor
.containsFocusValidationErrorAction();
validateAttributes
.setContainsFocusValidationErrorAction(containsFocusAction);
String inputFormat = stylesExtractor.getInputFormat();
validateAttributes.setInputFormat(inputFormat);
}
}