Package de.mindcrimeilab.xsanalyzer.model

Examples of de.mindcrimeilab.xsanalyzer.model.SimilarTypeListModelEntry


    @Override
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
        final JLabel cell;

        if (value instanceof SimilarTypeListModelEntry) {
            SimilarTypeListModelEntry entry = (SimilarTypeListModelEntry) value;

            cell = (JLabel) renderDelegate.getListCellRendererComponent(list, entry.getType(), index, isSelected, cellHasFocus);
            cell.setText(cell.getText());
            cell.setToolTipText("Computed similarity md5 sum:" + entry.getTypeSignature() + ".");
        }
        else {
            cell = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
        }
        return cell;
View Full Code Here


        masterList.addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent evt) {
                Map<String, XSObject> parameters = new HashMap<String, XSObject>();
                final SimilarTypeListModelEntry similarTypeListModelEntry = (SimilarTypeListModelEntry) masterList.getSelectedValue();
                if (null == similarTypeListModelEntry) return;
                parameters.put(XsElementPropertiesExecutor.OBJECT, similarTypeListModelEntry.getType());
                xsElementPropertiesExecutor.execute(parameters);
            }
        });

        // build client view
View Full Code Here

            return true;
        }

        @Override
        public void execute() {
            SimilarTypeListModelEntry selectedValue = (SimilarTypeListModelEntry) masterDetailList.getMasterList().getSelectedValue();
            Map<String, XSObject> parameters = new HashMap<String, XSObject>();
            parameters.put(XsElementPropertiesExecutor.OBJECT, selectedValue.getType());
            xsElementPropertiesExecutor.execute(parameters);
        }
View Full Code Here

TOP

Related Classes of de.mindcrimeilab.xsanalyzer.model.SimilarTypeListModelEntry

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.