Package org.eobjects.datacleaner.widgets

Examples of org.eobjects.datacleaner.widgets.FilenameTextField


      protected void onChange(DocumentEvent e) {
        _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());
View Full Code Here


    }
    return selectedItem.toString();
  }

  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();
      }
    });
    filenameTextField.getTextField().getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        updateStatus();
      }
    });
View Full Code Here

      openFileDialog = fileProperty.accessMode() == FileAccessMode.OPEN;

      extensions = fileProperty.extension();
    }

    _filenameField = new FilenameTextField(_userPreferences.getConfiguredFileDirectory(), openFileDialog);

    if (extensions != null && extensions.length > 0) {
      List<FileFilter> filters = new ArrayList<FileFilter>(extensions.length);
      for (String extension : extensions) {
        FileFilter filter = new ExtensionFilter(extension.toUpperCase() + " file", "." + extension);
View Full Code Here

      protected void onChange(DocumentEvent e) {
        _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());
View Full Code Here

    final DCPanel userRegistrationPanel = new DCPanel().setTitledBorder("User registration");
    userRegistrationPanel.add(DCLabel.dark("Logged in as:"));
    userRegistrationPanel.add(usernameTextField);
    userRegistrationPanel.add(logoutButton);

    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

    _mutableDatastoreCatalog = mutableDatastoreCatalog;
    _userPreferences = userPreferences;
    _datastoreNameField = WidgetFactory.createTextField("Datastore name");
    _statusLabel = DCLabel.bright("Please select file");

    _filenameField = new FilenameTextField(_userPreferences.getOpenDatastoreDirectory(), true);

    _addDatastoreButton = WidgetFactory.createButton("Save datastore", getDatastoreIconPath());
    _addDatastoreButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

TOP

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

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.