Package edu.stanford.bmir.protege.web.client.ui.selection

Examples of edu.stanford.bmir.protege.web.client.ui.selection.SelectionListener


                }
            }
        });

        //listener for adjusting the watch button to the selection in tree
        addSelectionListener(new SelectionListener() {
            public void selectionChanged(SelectionEvent event) {
                updateWatchedMenuState(event.getSelectable().getSelection());
            }
        });
View Full Code Here


    }

    protected SelectionListener getSelectionControllingListener() {
        if (selectionControllingListener == null) {
            this.selectionControllingListener = new SelectionListener() {
                public void selectionChanged(final SelectionEvent event) {
                    onSelectionChange(event.getSelectable().getSelection());
                    GlobalSelectionManager.setGlobalSelection(project.getProjectId(), event.getSelectable().getSelection());
                }
            };
View Full Code Here

                insert(0, clsesPanel1);
                doLayout();
            }
        });

        clsTreePortlet.addSelectionListener(new SelectionListener() {
            public void selectionChanged(SelectionEvent event) {
                indListPorlet.setEntity(clsTreePortlet.getSelection().get(0));
            }
        });
View Full Code Here

        explanationHtml.setStylePrimaryName("explanation");
        add(explanationHtml);

        classField = new ClassSelectionField(projectId, "Class to move in hierarchy", false, topClass);
        add(classField, new AnchorLayoutData("100% - 53"));
        classField.addSelectionListener(selectionListener = new SelectionListener() {
            public void selectionChanged(SelectionEvent event) {
                parentsPanel.setClsEntity(UIUtil.getFirstItem(classField.getClsValues()));
            }
        });
View Full Code Here

        indListPorlet = (IndividualsListPortlet) getPortletByClassName(IndividualsListPortlet.class.getName());

        setControllingPortlet(indListPorlet);

        if (clsTreePortlet != null && indListPorlet != null) {
            clsTreePortlet.addSelectionListener(new SelectionListener() {
                public void selectionChanged(SelectionEvent event) {
                    List<EntityData> clsSel = clsTreePortlet.getSelection();
                    if (!clsSel.isEmpty()) {
                        EntityData selection = clsSel.get(0);
                        clsTreePortlet.setEntity(selection); //might cause later infinite cycles, if anything will happen in setEntity
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.selection.SelectionListener

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.