Examples of FileChooserPanel


Examples of org.mcisb.ui.util.FileChooserPanel

    prompt = resourceBundle.getString( "SpreadsheetSpecificationWizard.channelsPrompt" ); //$NON-NLS-1$
    propertyNameToKey.put( org.mcisb.beacon.spottedexperiment.PropertyNames.CHANNELS, prompt );
    options.put( prompt, new SpinnerNumberModel( DEFAULT_VALUE, MIN_VALUE, MAX_VALUE, STEP ) );
   
    // Add Excel FileChooser:
    addWizardComponent( new FileChooserWizardComponent( bean, new FileChooserPanel( parent, resourceBundle.getString( "SpreadsheetSpecificationWizard.excelTitle" ), ParameterPanel.DEFAULT_COLUMNS, new JFileChooser(), false, true, false, JFileChooser.FILES_ONLY, Arrays.asList( "xls" ) ), org.mcisb.util.PropertyNames.IMPORT_FILEPATHS ) ); //$NON-NLS-1$ //$NON-NLS-2$
   
    // Add options panel:
    addWizardComponent( new DefaultWizardComponent( bean, new DefaultParameterPanel( resourceBundle.getString( "SpreadsheetSpecificationWizard.optionsTitle" ), options, Preferences.userNodeForPackage( getClass() ) ), propertyNameToKey ) ); //$NON-NLS-1$
   
    init();
View Full Code Here

Examples of org.mcisb.ui.util.FileChooserPanel

    prompt = resourceBundle.getString( "FileExporterWizard.excelPrompt" ); //$NON-NLS-1$
    propertyNameToKey.put( org.mcisb.beacon.spottedexperiment.PropertyNames.EXCEL, prompt );
    options.put( prompt, new Vector() );
   
    // Add output directory FileChooser:
    addWizardComponent( new FileChooserWizardComponent( bean, new FileChooserPanel( parent, resourceBundle.getString( "FileExporterWizard.directoryTitle" ), ParameterPanel.DEFAULT_COLUMNS, new JFileChooser(), false, true, false, JFileChooser.DIRECTORIES_ONLY ), org.mcisb.util.PropertyNames.EXPORT_FILEPATHS ) ); //$NON-NLS-1$
   
    // Add options panel:
    addWizardComponent( new DefaultWizardComponent( bean, new DefaultParameterPanel( resourceBundle.getString( "FileExporterWizard.optionsTitle" ), options, Preferences.userNodeForPackage( getClass() ) ), propertyNameToKey ) ); //$NON-NLS-1$
   
    init();
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

  {
    documentFileChooserPanels = new ArrayList<FileChooserPanel>();
   
    FormLayout layout = new FormLayout("left:max(40dlu;pref), 3dlu, pref:grow", "");
    documentPanelBuilder = new DefaultFormBuilder(layout);
    FileChooserPanel documentFileChooserPanel = new MyFileChooserPanel(DEFAULT_COLUMNS);
    documentFileChooserPanel.getFileChooser().setMultiSelectionEnabled(true);
    documentFileChooserPanels.add(documentFileChooserPanel);
    documentLabel = documentPanelBuilder.append("", documentFileChooserPanel);

    this.builder.appendRow(builder.getLineGapSpec());
    this.builder.nextLine();
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

   
    }

  protected FileChooserPanel addDocumentFileChooser()
  {
    FileChooserPanel documentFileChooserPanel = new MyFileChooserPanel(DEFAULT_COLUMNS);
    documentFileChooserPanel.setFileChooser(documentFileChooserPanels.get(0).getFileChooser());
    documentFileChooserPanels.add(documentFileChooserPanel);
    documentPanelBuilder.append("", documentFileChooserPanel);
    documentPanelBuilder.nextLine();
    pack();
    return documentFileChooserPanel;
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

    return documentFileChooserPanel;
  }

  public void addDocument(String filename)
  {
    FileChooserPanel panel = addDocumentFileChooser();
    panel.getTextField().setText(filename);
  }
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

   
    public MoreDocumentsAction() {
    }

    public void actionPerformed(ActionEvent event) {
      FileChooserPanel documentFileChooserPanel = addDocumentFileChooser();
      documentFileChooserPanel.getTextField().requestFocus();
    }
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

      File[] files = getFileChooser().getSelectedFiles();
      if (files != null && files.length > 1) {
        // files[0] equals file and is handled by the panel
        for (int i = 1; i < files.length; i++) {
          // add a new panel for all other files
          FileChooserPanel chooser = addDocumentFileChooser();
          chooser.setFile(files[i]);
        }
      }
      // reset selection
      getFileChooser().setSelectedFiles(null);
    }
View Full Code Here

Examples of org.xnap.commons.gui.FileChooserPanel

    customizeAddressBookCheckBox = new JCheckBox();
    settingMediator.add(Settings.CUSTOMIZE_ADDRESS_BOOK_FILENAME, customizeAddressBookCheckBox);
    builder.append(customizeAddressBookCheckBox, 5);
    builder.nextLine();   
   
    addressBookPathFileChooserPanel = new FileChooserPanel(Constants.DEFAULT_COLUMNS);
    settingMediator.add(Settings.ADDRESS_BOOK_FILENAME, addressBookPathFileChooserPanel.getTextField());
    addressBookPathFileChooserPanel.setDialogParent(this);
    builder.append(addressBookPathFileChooserPanel, 5);
    builder.nextLine();
   
    customizeAddressBookCheckBox.addItemListener(new EnableListener(addressBookPathFileChooserPanel));
   
    builder.appendSeparator(i18n.tr("Cover"));
   
    internalCoverRadionButton = new JRadioButton();
    internalCoverRadionButton.setSelected(true);
    builder.append(internalCoverRadionButton, 5);
    builder.nextLine();
   
    externalCoverRadionButton = new JRadioButton();
    externalCoverPathFileChooserPanel = new FileChooserPanel(Constants.DEFAULT_COLUMNS);
    externalCoverPathFileChooserPanel.setEnabled(false);
    externalCoverPathFileChooserPanel.setDialogParent(this);
    builder.append(externalCoverRadionButton, 5);
    builder.nextLine();
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.