Class SelectedIndicesToListSelectionModelConverter

java.lang.Object
org.netbeans.validation.api.conversion.Converter<Integer[], ListSelectionModel>
org.netbeans.validation.api.conversion.swing.SelectedIndicesToListSelectionModelConverter

public class SelectedIndicesToListSelectionModelConverter extends Converter<Integer[], ListSelectionModel>
Author:
Hugo Heden
  • Constructor Details

    • SelectedIndicesToListSelectionModelConverter

      public SelectedIndicesToListSelectionModelConverter()
  • Method Details

    • convert

      public Validator<ListSelectionModel> convert(Validator<Integer[]> 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<Integer[], ListSelectionModel>
      Parameters:
      from - The original validator.
      Returns:
      A validator of the type requested