Package net.sf.jpluck.apps.jpluckx.ui

Examples of net.sf.jpluck.apps.jpluckx.ui.ListFrame$RemoveAction


                return;
            }
            File[] files = conf.getAutoUpdateJXLs();
            Map jxlMap = new HashMap();
            for (Iterator it = listFrameList.iterator(); it.hasNext();) {
                ListFrame listFrame = (ListFrame) it.next();
                JXL jxl = listFrame.getJXL();
                jxlMap.put(jxl.getFile(), jxl);
            }
            List documentList = new ArrayList();
            for (int i = 0; i < files.length; i++) {
                try {
View Full Code Here


                } catch (Exception e2) {
                }
                System.exit(ExitCodes.OK);
            }

      ListFrame listFrame = null;
            if (args.length > 0) {
                for (int i = 0; i < args.length; i++) {
                    try {
                        JXL jxl = new JXL(new File(args[i]).getAbsoluteFile());
                        listFrame = jpluckx.newListFrame(jxl);
                       
                    } catch (Exception e) {
                        ExceptionDialog.show(null, e);
                    }
                }
            } else {
                String s = ClientConfiguration.getDefault().getLastJXL();
                if (s != null) {
                    File f = new File(s);
                    if (f.exists()) {
                        try {
                            JXL jxl = new JXL(f);
                            listFrame = jpluckx.newListFrame(jxl);
                        } catch (Exception e) {
                            ExceptionDialog.show(jpluckx.activeListFrame, e);
                        }
                    }
                }
            }
      if (listFrame == null) {
        listFrame = jpluckx.newListFrame();
      }
      if (cl.hasOption("trayicon") && (jpluckx.trayIcon != null)) {
        jpluckx.trayIcon.setVisible(true);
      } else {
        listFrame.show();
        jpluckx.checkDestination();
      }
      if (ClientConfiguration.getDefault().isAutoUpdateEnabled()) {
        jpluckx.startAutoUpdate();
      }
View Full Code Here

    public void copyToClipboard(Transferable selection) {
        clipboardOwner = true;
        clipboard.setContents(selection, this);
        for (int i = 0, n = listFrameList.size(); i < n; i++) {
            ListFrame listFrame = (ListFrame) listFrameList.get(i);
            listFrame.enablePasteAction();
        }
    }
View Full Code Here

    }

    public void lostOwnership(Clipboard clipboard, Transferable contents) {
        clipboardOwner = false;
        for (int i = 0, n = listFrameList.size(); i < n; i++) {
            ListFrame listFrame = (ListFrame) listFrameList.get(i);
            listFrame.disablePasteAction();
        }
    }
View Full Code Here

        return newListFrame(new JXL());
    }

    public ListFrame newListFrame(JXL jxl) {
        for (Iterator it = listFrameList.iterator(); it.hasNext();) {
            ListFrame listFrame = (ListFrame) it.next();
            File file = listFrame.getJXL().getFile();
            if ((file != null) && file.equals(jxl.getFile())) {
                activeListFrame = listFrame;
                return listFrame;
            }
        }
        ListFrame listFrame = new ListFrame(jxl);
        listFrame.addWindowListener(activationListener);
        listFrameList.add(listFrame);
        ClientConfiguration.getDefault().restoreListFramePrefs(listFrame);
        if (splashScreen != null) {
            splashScreen.hide();
            splashScreen.dispose();
            splashScreen = null;
        }
        if (activeListFrame != null) {
            int x = activeListFrame.getX() + 30;
            int y = activeListFrame.getY() + 30;
            listFrame.setLocation(x, y);
        }
        activeListFrame = listFrame;
        return listFrame;
    }
View Full Code Here

TOP

Related Classes of net.sf.jpluck.apps.jpluckx.ui.ListFrame$RemoveAction

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.