Package org.eobjects.datacleaner.util

Examples of org.eobjects.datacleaner.util.DCDocumentListener


  public CharTextField() {
    _textField = new JTextField(2);
    _textField.setDocument(new SingleCharacterDocument());
    _label = DCLabel.dark("");

    addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent e) {
        Character value = getValue();
        if (value == null) {
          _label.setText("");
View Full Code Here


    _originalDictionary = dictionary;
    _catalog = catalog;
    _userPreferences = userPreferences;

    _nameTextField = WidgetFactory.createTextField("Dictionary name");
    _nameTextField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent e) {
        _nameAutomaticallySet = false;
      }
    });
View Full Code Here

        }
        updateLabels();
      }
    });

    _textField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        final FilterJobBuilder<MaxRowsFilter, ValidationCategory> fjb = getJobBuilder();
        if (fjb != null) {
          try {
View Full Code Here

      textComponent = WidgetFactory.createTextArea(propertyDescriptor.getName());
    } else {
      textComponent = WidgetFactory.createTextField(propertyDescriptor.getName());
    }

    textComponent.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent e) {
        fireValueChanged();
      }
    });
View Full Code Here

    // initialize search text field
    _searchDatastoreTextField = WidgetFactory.createTextField("Search/filter datastores");
    _searchDatastoreTextField.setBorder(new CompoundBorder(new EmptyBorder(4, 0, 0, 0), WidgetUtils.BORDER_THIN));
    _searchDatastoreTextField.setOpaque(false);
    _searchDatastoreTextField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        String text = _searchDatastoreTextField.getText();
        if (StringUtils.isNullOrEmpty(text)) {
          // when there is no search query, set all datastores visible
View Full Code Here

      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        updateStatus();
      }
    });
    filenameTextField.getTextField().getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        updateStatus();
      }
    });
View Full Code Here

    }
  }

  private CharTextField addCharField() {
    CharTextField textField = new CharTextField();
    textField.addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        fireValueChanged();
      }
    });
View Full Code Here

  private void addTextField(String value, boolean updateUI) {
    JXTextField textField = WidgetFactory.createTextField();
    if (value != null) {
      textField.setText(value);
    }
    textField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent e) {
        fireValueChanged();
      }
    });
View Full Code Here

    _primitive = propertyDescriptor.getType().isPrimitive();
    Number currentValue = (Number) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    if (currentValue != null) {
      _textField.setText(currentValue.toString());
    }
    _textField.getDocument().addDocumentListener(new DCDocumentListener() {

      @Override
      protected void onChange(DocumentEvent e) {
        fireValueChanged();
      }
View Full Code Here

    File currentValue = (File) beanJobBuilder.getConfiguredProperty(propertyDescriptor);
    if (currentValue != null) {
      _filenameField.setFile(currentValue);
    }

    _filenameField.getTextField().getDocument().addDocumentListener(new DCDocumentListener() {

      @Override
      protected void onChange(DocumentEvent e) {
        fireValueChanged();
      }
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.util.DCDocumentListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.