Package org.xnap.commons.gui

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


   
    }

  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

    return documentFileChooserPanel;
  }

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

   
    public MoreDocumentsAction() {
    }

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

      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

    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

Related Classes of org.xnap.commons.gui.FileChooserPanel

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.