Class StringToComboBoxModelConverter

java.lang.Object
org.netbeans.validation.api.conversion.Converter<String, ComboBoxModel>
org.netbeans.validation.api.conversion.swing.StringToComboBoxModelConverter

public class StringToComboBoxModelConverter extends Converter<String, ComboBoxModel>
Author:
Tim Boudreau
  • Constructor Details

    • StringToComboBoxModelConverter

      public StringToComboBoxModelConverter()
  • Method Details

    • convert

      public Validator<ComboBoxModel> convert(Validator<String> from)
      Description copied from class: Converter
      Create a Validator for type To from a validator for type From. For example, a converter that is a factory for Validators of javax.swing.text.Documents from a validator that only handles Strings may be created. (Convert would simply return a Validator that wraps the Validator. At validation time it will first call Document.getText(), and then pass the result to the wrapped Validator).
      Specified by:
      convert in class Converter<String, ComboBoxModel>
      Parameters:
      from - The original validator.
      Returns:
      A validator of the type requested