com.google.code.validationframework.swing.rule
Class JFormattedTextFieldFormatterRule
java.lang.Object
com.google.code.validationframework.base.rule.string.AbstractStringBooleanRule
com.google.code.validationframework.swing.rule.JFormattedTextFieldFormatterRule
- All Implemented Interfaces:
- com.google.code.validationframework.api.rule.Rule<String,Boolean>
public class JFormattedTextFieldFormatterRule
- extends com.google.code.validationframework.base.rule.string.AbstractStringBooleanRule
Convenience rule that will check if the formatter of a formatted textfield can successfully parse the input text.
| Fields inherited from class com.google.code.validationframework.base.rule.string.AbstractStringBooleanRule |
trimDataBeforeValidation |
| Methods inherited from class com.google.code.validationframework.base.rule.string.AbstractStringBooleanRule |
getTrimDataBeforeValidation, setTrimDataBeforeValidation, trimIfNeeded |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JFormattedTextFieldFormatterRule
public JFormattedTextFieldFormatterRule(JFormattedTextField formattedTextField)
- Constructor specifying the formatted textfield whose formatter is to be checked.
- Parameters:
formattedTextField - Formatted textfield whose formatter is to be checked.
getComponent
public JFormattedTextField getComponent()
- Gets the formatted textfield whose formatter is to be checked.
- Returns:
- Formatted textfield whose formatter is to be checked.
validate
public Boolean validate(String data)
- See Also:
Rule.validate(Object)
Copyright © 2013. All Rights Reserved.