Package net.sf.jpluck.jxl

Examples of net.sf.jpluck.jxl.Document


            this.column = column;
            this.ascending = ascending;
        }

        public int compare(Object o1, Object o2) {
            Document d1 = (Document) o1;
            Document d2 = (Document) o2;
            String l1;
            String l2;
            int result = 0;
            switch (column) {
            case 0:
                result = d1.getRawName().compareToIgnoreCase(d2.getRawName());
                break;
            case 1:
                String c1 = d1.getPrimaryCategory();
                if (c1 == null) {
                    c1 = "";
                }

                String c2 = d2.getPrimaryCategory();
                if (c2 == null) {
                    c2 = "";
                }
                result = c1.compareToIgnoreCase(c2);
                break;
            case 2:
                l1 = Language.getLanguage(d1.getLanguage()).getName();
                l2 = Language.getLanguage(d2.getLanguage()).getName();
                result = l1.compareTo(l2);
                break;
            case 3:
                if (d1 instanceof Feed && d2 instanceof Site) {
                    result = -1;
View Full Code Here


                    convertAction.setEnabled(b);
                    openAction.setEnabled(b);
                    copyAction.setEnabled(b);
                    Object[] items = tableList.getSelectedItems();
                    if (items.length == 1) {
                        Document document = (Document) items[0];
                        if (document != selectedDocument) {
                            selectedDocument = document;
                            showcasePanel.showPreview(document.getName());
                        }
                    }
                }
            });
        tableList.addMouseListener(new PopupListener(tableList, popupMenu) {
View Full Code Here

            putValue(Action.SMALL_ICON, IconUtil.getIcon("convert.gif"));
            setEnabled(false);
        }

        public void actionPerformed(ActionEvent ev) {
            Document site = (Document) tableList.getSelectedItems()[0];
            JPluckX.getInstance().convert(ShowcaseFrame.this, new Document[] { site });
        }
View Full Code Here

TOP

Related Classes of net.sf.jpluck.jxl.Document

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.