Package org.pdfsam.guiclient.commons.dnd.handlers

Examples of org.pdfsam.guiclient.commons.dnd.handlers.ClosableTabTransferHandler


   */
  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);
View Full Code Here

TOP

Related Classes of org.pdfsam.guiclient.commons.dnd.handlers.ClosableTabTransferHandler

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.