Class StringToComboBoxModelConverter
java.lang.Object
org.netbeans.validation.api.conversion.Converter<String, ComboBoxModel>
org.netbeans.validation.api.conversion.swing.StringToComboBoxModelConverter
- Author:
- Tim Boudreau
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringToComboBoxModelConverter
public StringToComboBoxModelConverter()
-
-
Method Details
-
convert
Description copied from class:ConverterCreate aValidatorfor typeTofrom a validator for typeFrom. For example, a converter that is a factory for Validators ofjavax.swing.text.Documents from a validator that only handles Strings may be created. (Convert would simply return a Validatorthat wraps the Validator . At validation time it will first call Document.getText(), and then pass the result to the wrapped Validator ). - Specified by:
convertin classConverter<String, ComboBoxModel>- Parameters:
from- The original validator.- Returns:
- A validator of the type requested
-