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

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


        final TreeSelectionModel selModel = treePanel.getSelectionModel();
        if (selModel instanceof DefaultSelectionModel) {
            ((DefaultSelectionModel) selModel).addSelectionModelListener(new DefaultSelectionModelListenerAdapter() {
                @Override
                public void onSelectionChange(final DefaultSelectionModel sm, final TreeNode node) {
                    notifySelectionListeners(new SelectionEvent(ClassTreePortlet.this));
                }
            });
        }
        else if (selModel instanceof MultiSelectionModel) {
            ((MultiSelectionModel) selModel).addSelectionModelListener(new MultiSelectionModelListener() {
                public void onSelectionChange(final MultiSelectionModel sm, final TreeNode[] nodes) {
                    notifySelectionListeners(new SelectionEvent(ClassTreePortlet.this));
                }
            });
        }
        else {
            GWT.log("Unknown tree selection model for class tree: " + selModel, null);
View Full Code Here


    }

    public void setClsValues(Collection<EntityData> newValues) {
        this.values = newValues;
        super.setValue(values == null ? "" : UIUtil.prettyPrintList(values));
        notifySelectionListeners(new SelectionEvent(this));
    }
View Full Code Here

        individualsList = new EntitiesListImpl<OWLNamedIndividualData>();
        add(individualsList.asWidget());
        individualsList.addSelectionHandler(new SelectionHandler<OWLNamedIndividualData>() {
            @Override
            public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<OWLNamedIndividualData> event) {
                notifySelectionListeners(new SelectionEvent(IndividualsListPortlet.this));
            }
        });
        addToolbarButtons();
        initConfiguration();
        if (preconfiguredClass != null && preconfiguredClass.isPresent()) {
View Full Code Here

    importsTree.addListener(new TreePanelListenerAdapter() {
      public void onClick(TreeNode node, EventObject e) {
        currentSelection = new ArrayList<EntityData>();
        currentSelection.add((EntityData) node.getUserObject());
        notifySelectionListeners(new SelectionEvent(ImportsTreePortlet.this));
      }
    });
   
    TreeNode root = new TreeNode();
    root.setText(getProject().getDisplayName());
View Full Code Here

    private void selectNode(TreeNode node) {
        lastSelectedTreeNode = node;
        currentSelection = new ArrayList<EntityData>();
        currentSelection.add((EntityData) node.getUserObject());
        notifySelectionListeners(new SelectionEvent(this));
    }
View Full Code Here

TOP

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

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.