Package org.pdfsam.guiclient.commons.panels

Examples of org.pdfsam.guiclient.commons.panels.JVisualPdfPageSelectionPanel


   * @param password
   */
  public void addTab(File file, String password){
    try{
      if (file!=null && file.exists() && new PdfFilter(false).accept(file)){
          JVisualPdfPageSelectionPanel inputPanel = new JVisualPdfPageSelectionPanel(JVisualPdfPageSelectionPanel.HORIZONTAL_ORIENTATION, true, false, false, JVisualPdfPageSelectionPanel.STYLE_TOP_PANEL_HIDE, JVisualPdfPageSelectionPanel.DND_SUPPORT_NONE, JVisualPdfPageSelectionPanel.MULTIPLE_INTERVAL_SELECTION);
          inputPanel.getThumbnailList().setTransferHandler(new ClosableTabTransferHandler(this));
          if(outputPathPropertyChangeListener!=null){
            inputPanel.enableSetOutputPathMenuItem();
            inputPanel.addPropertyChangeListener(outputPathPropertyChangeListener);
          }
          inputPanel.setSelectedPdfDocument(file);
          inputPanel.getPdfLoader().addFile(file, password);
          String panelName = file.getName();
          if(panelName.length()>16){
            panelName = file.getName().substring(0, 14)+"..";
          }
          inputTabbedPanel.addTab(panelName, inputPanel, null, file.getName());
View Full Code Here

TOP

Related Classes of org.pdfsam.guiclient.commons.panels.JVisualPdfPageSelectionPanel

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.