Package uk.gov.nationalarchives.droid.gui.treemodel

Examples of uk.gov.nationalarchives.droid.gui.treemodel.DirectoryComparableLong


                        setCursor(new Cursor(Cursor.HAND_CURSOR));
                    } else {
                        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                    }
                } else if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
                    DirectoryComparableLong value = (DirectoryComparableLong)
                        resultsOutline.getValueAt(resultsOutline.rowAtPoint(e.getPoint()),
                            resultsOutline.columnAtPoint(e.getPoint()));
                    if (value.getSource() != null && value.getSource() > 1) {
                        setCursor(new Cursor(Cursor.HAND_CURSOR));
                    } else {
                        setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
                    }
                } else {
View Full Code Here


            int colIndex = resultsOutline.columnAtPoint(mousePoint);
            int rowIndex = resultsOutline.rowAtPoint(mousePoint);
            int colModelIndex = resultsOutline.convertColumnIndexToModel(resultsOutline.columnAtPoint(mousePoint));

            if (colModelIndex == OutlineColumn.IDENTIFICATION_COUNT.ordinal() + 1) {
                DirectoryComparableLong count = (DirectoryComparableLong) resultsOutline
                    .getValueAt(rowIndex, colIndex);
                if (count != null && count.getSource() != null && count.getSource() > 1) {
                    int rowModelIndex = resultsOutline.convertRowIndexToModel(rowIndex);
                    DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) mdl.getValueAt(rowModelIndex, 0);
                    ProfileResourceNode node = (ProfileResourceNode) treeNode.getUserObject();
                    multiIdentificationDialog.showDialog(node);
                }
View Full Code Here

TOP

Related Classes of uk.gov.nationalarchives.droid.gui.treemodel.DirectoryComparableLong

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.