| javax.swing.JTextField com.vividsolutions.jump.workbench.ui.ValidatingTextField
ValidatingTextField | public class ValidatingTextField extends JTextField (Code) | | Prevents the user from entering invalid data.
|
Inner Class :public static interface Validator | |
Inner Class :public static interface Cleaner | |
Inner Class :public static class GreaterThanValidator implements Validator | |
Inner Class :public static class LessThanValidator implements Validator | |
Inner Class :public static class GreaterThanOrEqualValidator implements Validator | |
Inner Class :public static class LessThanOrEqualValidator implements Validator | |
Inner Class :public static class MinIntCleaner implements Cleaner | |
Inner Class :public static class BoundedIntValidator extends CompositeValidator | |
Inner Class :public static class BoundedDoubleValidator extends CompositeValidator | |
Inner Class :public static class MaxIntCleaner implements Cleaner | |
Inner Class :public static class CompositeValidator implements Validator | |
Inner Class :public static class CompositeCleaner implements Cleaner | |
Field Summary | |
final public static Validator | DOUBLE_VALIDATOR Prevents the user from entering invalid double. | public static Cleaner | DUMMY_CLEANER Cleaner that does nothing. | public static Validator | DUMMY_VALIDATOR Validator that does nothing. | final public static Validator | INTEGER_VALIDATOR Prevents the user from entering invalid integer. | final public static Validator | LONG_VALIDATOR | public static Cleaner | NUMBER_CLEANER The validators allow the user to simply enter "+", "-", or ".". |
Constructor Summary | |
public | ValidatingTextField(String text, int columns, Validator validator) Validator that uses dummy cleaner. | public | ValidatingTextField(String text, int columns, int horizontalAlignment, Validator validator, Cleaner cleaner) Validator for text fields. |
DOUBLE_VALIDATOR | final public static Validator DOUBLE_VALIDATOR(Code) | | Prevents the user from entering invalid double.
|
DUMMY_CLEANER | public static Cleaner DUMMY_CLEANER(Code) | | Cleaner that does nothing.
|
DUMMY_VALIDATOR | public static Validator DUMMY_VALIDATOR(Code) | | Validator that does nothing.
|
INTEGER_VALIDATOR | final public static Validator INTEGER_VALIDATOR(Code) | | Prevents the user from entering invalid integer.
|
LONG_VALIDATOR | final public static Validator LONG_VALIDATOR(Code) | | |
NUMBER_CLEANER | public static Cleaner NUMBER_CLEANER(Code) | | The validators allow the user to simply enter "+", "-", or ".". If the
user doesn't go any farther, this cleaner will set the text to 0, which
is reasonable.
|
ValidatingTextField | public ValidatingTextField(String text, int columns, Validator validator)(Code) | | Validator that uses dummy cleaner.
|
ValidatingTextField | public ValidatingTextField(String text, int columns, int horizontalAlignment, Validator validator, Cleaner cleaner)(Code) | | Validator for text fields.
|
getDouble | public double getDouble()(Code) | | |
getInteger | public int getInteger()(Code) | | |
installValidationBehavior | public static void installValidationBehavior(JTextField textField, Validator validator, Cleaner cleaner)(Code) | | |
|
|