com.vaadin.ui.MenuBar.Command Java Examples
The following examples show how to use
com.vaadin.ui.MenuBar.Command.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DSTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getUpdateButtonCommand() { return command -> { dSTypeFilterButtons.addUpdateColumn(); getEventBus().publish(this, new DistributionSetTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #2
Source File: DSTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getDeleteButtonCommand() { return command -> { dSTypeFilterButtons.addDeleteColumn(); getEventBus().publish(this, new DistributionSetTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #3
Source File: SMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getDeleteButtonCommand() { return command -> { smTypeFilterButtons.addDeleteColumn(); getEventBus().publish(this, new SoftwareModuleTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #4
Source File: SMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getUpdateButtonCommand() { return command -> { smTypeFilterButtons.addUpdateColumn(); getEventBus().publish(this, new SoftwareModuleTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #5
Source File: DistSMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getUpdateButtonCommand() { return command -> { filterButtons.addUpdateColumn(); getEventBus().publish(this, new SoftwareModuleTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #6
Source File: DistSMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getDeleteButtonCommand() { return command -> { filterButtons.addDeleteColumn(); getEventBus().publish(this, new SoftwareModuleTypeFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #7
Source File: DistributionTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getUpdateButtonCommand() { return command -> { distributionTagButtons.addUpdateColumn(); getEventBus().publish(this, new DistributionSetTagFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #8
Source File: DistributionTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Override protected Command getDeleteButtonCommand() { return command -> { distributionTagButtons.addDeleteColumn(); getEventBus().publish(this, new DistributionSetTagFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #9
Source File: DistributionTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getAddButtonCommand() { return command -> new CreateDistributionSetTagLayout(getI18n(), distributionSetTagManagement, entityFactory, getEventBus(), getPermChecker(), uiNotification); }
Example #10
Source File: ContextMenu.java From context-menu with Apache License 2.0 | 4 votes |
public MenuItem addItemBefore(String caption, Resource icon, Command command, MenuItem itemToAddBefore) { return rootItem.addItemBefore(caption, icon, command, itemToAddBefore); }
Example #11
Source File: ContextMenu.java From context-menu with Apache License 2.0 | 4 votes |
public MenuItem addItem(String caption, Resource icon, Command command) { return rootItem.addItem(caption, icon, command); }
Example #12
Source File: ContextMenu.java From context-menu with Apache License 2.0 | 4 votes |
public MenuItem addItem(String caption, Command command) { return rootItem.addItem(caption, command); }
Example #13
Source File: DSTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getAddButtonCommand() { return command -> new CreateDistributionSetTypeLayout(getI18n(), entityFactory, getEventBus(), getPermChecker(), uiNotification, softwareModuleTypeManagement, distributionSetTypeManagement); }
Example #14
Source File: DistSMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getAddButtonCommand() { return command -> new CreateSoftwareModuleTypeLayout(getI18n(), entityFactory, getEventBus(), getPermChecker(), uiNotification, softwareModuleTypeManagement); }
Example #15
Source File: MultipleTargetFilter.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
protected Command getUpdateButtonCommand() { return command -> { filterByButtons.addUpdateColumn(); eventBus.publish(this, new TargetTagFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #16
Source File: MultipleTargetFilter.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
protected Command getDeleteButtonCommand() { return command -> { filterByButtons.addDeleteColumn(); eventBus.publish(this, new TargetTagFilterHeaderEvent(FilterHeaderEnum.SHOW_CANCEL_BUTTON)); }; }
Example #17
Source File: MultipleTargetFilter.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
protected Command getAddButtonCommand() { return command -> new CreateTargetTagLayout(i18n, targetTagManagement, entityFactory, eventBus, permChecker, uiNotification); }
Example #18
Source File: TargetTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getUpdateButtonCommand() { return null; }
Example #19
Source File: TargetTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getDeleteButtonCommand() { return null; }
Example #20
Source File: TargetTagFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getAddButtonCommand() { return null; }
Example #21
Source File: SMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Override protected Command getAddButtonCommand() { return command -> new CreateSoftwareModuleTypeLayout(getI18n(), entityFactory, getEventBus(), getPermChecker(), uiNotification, softwareModuleTypeManagement); }
Example #22
Source File: ContextMenu.java From cuba with Apache License 2.0 | 4 votes |
public MenuItem addItemBefore(String caption, Resource icon, Command command, MenuItem itemToAddBefore) { return rootItem.addItemBefore(caption, icon, command, itemToAddBefore); }
Example #23
Source File: ContextMenu.java From cuba with Apache License 2.0 | 4 votes |
public MenuItem addItem(String caption, Resource icon, Command command) { return rootItem.addItem(caption, icon, command); }
Example #24
Source File: ContextMenu.java From cuba with Apache License 2.0 | 4 votes |
public MenuItem addItem(String caption, Command command) { return rootItem.addItem(caption, command); }
Example #25
Source File: CubaFoldersPane.java From cuba with Apache License 2.0 | 4 votes |
protected Command createCommand(FolderAction action) { return new CommandFolderActionAdapter(action, this::getSelectedFolder); }
Example #26
Source File: SideMenu.java From sidemenu-addon with Apache License 2.0 | 2 votes |
/** * Adds a menu entry to the user drop down menu with given icon. The given * handler is called when the user clicks the entry. * * @param text * menu text * @param icon * menu icon * @param handler * menu click handler * * @return menu registration */ public MenuRegistration addUserMenuItem(String text, Resource icon, final MenuClickHandler handler) { Command menuCommand = selectedItem -> handler.click(); MenuItem menuItem = userItem.addItem(text, icon, menuCommand); return new MenuRegistrationImpl<>(menuItem, menuCommand::menuSelected, userItem::removeChild); }
Example #27
Source File: AbstractFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 2 votes |
/** * Command which should be executed when clicking on the delete tag button * in the menubar * * @return Command */ protected abstract Command getDeleteButtonCommand();
Example #28
Source File: AbstractFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 2 votes |
/** * Command which should be executed when clicking on the update tag button * in the menubar * * @return Command */ protected abstract Command getUpdateButtonCommand();
Example #29
Source File: AbstractFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 2 votes |
/** * Command which should be executed when clicking on the create tag button * in the menubar * * @return Command */ protected abstract Command getAddButtonCommand();