Examples of JListSelectionValueModelAdapter


Examples of de.mindcrimeilab.xsanalyzer.model.JListSelectionValueModelAdapter

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                logger.debug("Adjusting commands to new model");
                final ListModel listModel = (ListModel) evt.getNewValue();
                final ValueModel selectionModel = new ListSelectionValueModelAdapter(masterDetailList.getDetailList().getSelectionModel());
                final ValueModel vModel = new JListSelectionValueModelAdapter(listModel, (ListSelectionValueModelAdapter) selectionModel);
                typeHierarchyCommand.setValueModel(vModel);
                typeInspectionCommand.setValueModel(vModel);
                numTypes.setValue(listModel.getSize());
            }
        });
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.model.JListSelectionValueModelAdapter

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                logger.debug("Adjusting commands to new model " + evt.getPropertyName());
                final ListModel listModel = (ListModel) evt.getNewValue();
                final ValueModel selectionModel = new ListSelectionValueModelAdapter(masterDetailList.getMasterList().getSelectionModel());
                final ValueModel vModel = new JListSelectionValueModelAdapter(listModel, (ListSelectionValueModelAdapter) selectionModel);
                similarTypesTypeHierarchyCommand.setValueModel(vModel);
                similarTypesInspectionCommand.setValueModel(vModel);
                numSimilarTypesSchema.setValue(listModel.getSize());
            }
        });

        masterDetailList.addPropertyChangeListener(MasterListDetailList.PC_DETAILLIST_LISTMODEL, new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                logger.debug("Adjusting commands to new model " + evt.getPropertyName());
                final ListModel listModel = (ListModel) evt.getNewValue();
                final ValueModel selectionModel = new ListSelectionValueModelAdapter(masterDetailList.getDetailList().getSelectionModel());
                final ValueModel vModel = new JListSelectionValueModelAdapter(listModel, (ListSelectionValueModelAdapter) selectionModel);
                typesListTypeHierarchyCommand.setValueModel(vModel);
                typesListTypeInspectionCommand.setValueModel(vModel);
                numSimilarTypes.setValue(listModel.getSize());
            }
        });
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.model.JListSelectionValueModelAdapter

            final FilteredListModel filteredModel = new FilteredListModel(unusedTypesListModelAdapter, unusedTypesConstraint);
            jlUnusedTypes.setModel(filteredModel);
            numUnusedTypes.setValue(unusedTypesListModelAdapter.getSize());

            final ValueModel selectionModel = new ListSelectionValueModelAdapter(jlUnusedTypes.getSelectionModel());
            final ValueModel vModel = new JListSelectionValueModelAdapter(jlUnusedTypes.getModel(), (ListSelectionValueModelAdapter) selectionModel);
            unusedTypeHierarchyCommand.setValueModel(vModel);
            unusedTypeInspectionCommand.setValueModel(vModel);

        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.