public NativeButton createNativeButton(ShotcutItem item) { NativeButton itemButton = new NativeButton(message.getString(item.getLabel())); itemButton.setHtmlContentAllowed(true); itemButton.setWidth("100%"); String icon = item.getIcon(); if (icon != null) { itemButton.setIcon(new ThemeResource(icon)); } itemButton.setData(item); itemButton.addListener(this); if (PresenterProperty.HOME.equals(item.getAction())) { itemButton.addStyleName("v-nativebutton-selected"); } if (PresenterProperty.NOTIFICATION.equals(item.getAction())) { notifyButton = itemButton; } shotcuts.add(itemButton); shotcutMaps.put(item.getAction(), itemButton); return itemButton; }