Package edu.stanford.bmir.protege.web.client.ui.library.popupmenu

Examples of edu.stanford.bmir.protege.web.client.ui.library.popupmenu.PopupMenu


        showShareSettingsHandler.handleShowShareSettings();
    }

    @UiHandler("projectSettingsItem")
    protected void handleProjectSettingsItemClicked(ClickEvent clickEvent) {
        PopupMenu popupMenu = new PopupMenu();
        popupMenu.addItem("Project details...", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                showProjectDetailsHandler.handleShowProjectDetails();
            }
        });

        popupMenu.addItem("New entity settings...", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                showFreshEntitySettingsHandler.handleShowFreshEntitySettings();
            }
        });
        popupMenu.showRelativeTo(projectSettingsItem);
    }
View Full Code Here


        }
    }

    @UiHandler("helpItem")
    protected void handleHelpItemClicked(ClickEvent clickEvent) {
        PopupMenu popupMenu = new PopupMenu();
        popupMenu.addItem("User guide", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                showUserGuideHandler.handleShowUserGuide();
            }
        });
        popupMenu.addItem("Send feedback", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                MessageBox.showMessage("Send us feedback", WebProtegeClientBundle.BUNDLE.feedbackBoxText().getText());
            }
        });
        popupMenu.addItem("About", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                showAboutBoxHandler.handleShowAboutBox();
            }
        });
        popupMenu.showRelativeTo(helpItem);
    }
View Full Code Here

        });
        popupMenu.showRelativeTo(helpItem);
    }

    private void showSignedInPopup() {
        PopupMenu popupMenu = new PopupMenu();
        popupMenu.addItem("Sign out", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                signOutRequestHandler.handleSignOutRequest();
            }
        });
//        popupMenu.addItem("Account settings", new ClickHandler() {
//            @Override
//            public void onClick(ClickEvent event) {
//                showAccountSettingsHandler.handleShowAccountSettings();
//            }
//        });
        popupMenu.addItem("Change password", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                changePasswordHandler.handleChangePassword();
            }
        });
        popupMenu.addItem("Change email address", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                changeEmailAddressHandler.handleChangeEmailAddress();
            }
        });
        popupMenu.showRelativeTo(userNameItem);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.library.popupmenu.PopupMenu

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.