Package org.eobjects.datacleaner.widgets

Examples of org.eobjects.datacleaner.widgets.FileSelectionListener


        _nameAutomaticallySet = false;
      }
    });

    _filenameTextField = new FilenameTextField(_userPreferences.getOpenDatastoreDirectory(), true);
    _filenameTextField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        if (_nameAutomaticallySet || StringUtils.isNullOrEmpty(_nameTextField.getText())) {
          _nameTextField.setText(file.getName());
          _nameAutomaticallySet = true;
View Full Code Here


  private void addFilenameTextField() {
    final FilenameTextField filenameTextField = new FilenameTextField(_userPreferences.getConfiguredFileDirectory(),
        true);
    filenameTextField.setSelectedFileFilter(new ExtensionFilter("JDBC driver JAR file (.jar)", ".jar"));
    filenameTextField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        updateStatus();
      }
    });
View Full Code Here

      protected void onChange(DocumentEvent e) {
        fireValueChanged();
      }
    });

    _filenameField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        File dir = file.getParentFile();
        _userPreferences.setConfiguredFileDirectory(dir);
        fireValueChanged();
View Full Code Here

        _nameAutomaticallySet = false;
      }
    });

    _filenameTextField = new FilenameTextField(_userPreferences.getOpenDatastoreDirectory(), true);
    _filenameTextField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        if (_nameAutomaticallySet || StringUtils.isNullOrEmpty(_nameTextField.getText())) {
          _nameTextField.setText(file.getName());
          _nameAutomaticallySet = true;
View Full Code Here

    final FilenameTextField saveDatastoreDirectoryField = new FilenameTextField(
        _userPreferences.getSaveDatastoreDirectory(), true);
    saveDatastoreDirectoryField.setFile(_userPreferences.getSaveDatastoreDirectory());
    saveDatastoreDirectoryField.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    saveDatastoreDirectoryField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        _userPreferences.setSaveDatastoreDirectory(file);
      }
    });
View Full Code Here

      @Override
      protected void onChange(DocumentEvent e) {
        validateAndUpdate();
      }
    });
    _filenameField.addFileSelectionListener(new FileSelectionListener() {
      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        final File dir;
        if (file.isDirectory()) {
          dir = file;
View Full Code Here

    filenameField.addChoosableFileFilter(FileFilters.DAT);
    filenameField.addChoosableFileFilter(FileFilters.TXT);
    filenameField.addChoosableFileFilter(FileFilters.ALL);
    filenameField.setSelectedFileFilter(combinedFilter);

    filenameField.addFileSelectionListener(new FileSelectionListener() {

      @Override
      public void onSelected(FilenameTextField filenameTextField, File file) {
        if (FileFilters.TSV.accept(file)) {
          _separatorCharField.setSelectedItem(SEPARATOR_TAB);
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.widgets.FileSelectionListener

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.