Search in sources :

Example 1 with UIAction

use of edu.stanford.bmir.protege.web.client.action.UIAction in project webprotege by protegeproject.

the class AvailableProjectViewImpl method handleMenuButtonClicked.

@UiHandler("menuButton")
protected void handleMenuButtonClicked(ClickEvent event) {
    PopupMenu popupMenu = new PopupMenu();
    for (final UIAction action : actions) {
        popupMenu.addItem(action);
    }
    popupMenu.showRelativeTo(menuButton);
}
Also used : UIAction(edu.stanford.bmir.protege.web.client.action.UIAction) PopupMenu(edu.stanford.bmir.protege.web.client.library.popupmenu.PopupMenu) UiHandler(com.google.gwt.uibinder.client.UiHandler)

Aggregations

UiHandler (com.google.gwt.uibinder.client.UiHandler)1 UIAction (edu.stanford.bmir.protege.web.client.action.UIAction)1 PopupMenu (edu.stanford.bmir.protege.web.client.library.popupmenu.PopupMenu)1