Java Code Examples for com.google.gwt.user.client.ui.MenuItem#addStyleName()
The following examples show how to use
com.google.gwt.user.client.ui.MenuItem#addStyleName() .
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: CategoriesMenu.java From document-management-system with GNU General Public License v2.0 | 6 votes |
public CategoriesMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); create = new MenuItem(Util.menuHTML("img/icon/actions/add_folder.gif", Main.i18n("tree.menu.directory.create")), true, addFolder); create.addStyleName("okm-MenuItem"); dirMenu.addItem(create); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("tree.menu.directory.rename")), true, renFolder); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); move = new MenuItem(Util.menuHTML("img/icon/actions/move_folder.gif", Main.i18n("tree.menu.directory.move")), true, moveFolder); move.addStyleName("okm-MenuItem"); dirMenu.addItem(move); dirMenu.setStyleName("okm-MenuBar"); export = new MenuItem(Util.menuHTML("img/icon/actions/export.gif", Main.i18n("tree.menu.export")), true, exportToFile); export.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(export); initWidget(dirMenu); }
Example 2
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 6 votes |
/** * Browser menu */ public Menu() { // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values searchMenu = new MenuBar(true); download = new MenuItem(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("search.result.menu.download")), true, downloadFile); download.addStyleName("okm-MenuItem"); go = new MenuItem(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")), true, goDirectory); go.addStyleName("okm-MenuItem"); findSimilarDocument = new MenuItem(Util.menuHTML("img/icon/actions/similar_find.png", Main.i18n("general.menu.file.find.similar.document")), true, findSimilarOKM); findSimilarDocument.addStyleName("okm-MenuItem"); searchMenu.addItem(download); searchMenu.addItem(go); searchMenu.addItem(findSimilarDocument); searchMenu.setStyleName("okm-MenuBar"); initWidget(searchMenu); }
Example 3
Source File: TaxonomyMenu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public TaxonomyMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); create = new MenuItem(Util.menuHTML("img/icon/actions/add_folder.gif", Main.i18n("tree.menu.directory.create")), true, addFolder); create.addStyleName("okm-MenuItem"); dirMenu.addItem(create); remove = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("tree.menu.directory.remove")), true, delFolder); remove.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(remove); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("tree.menu.directory.rename")), true, renFolder); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); move = new MenuItem(Util.menuHTML("img/icon/actions/move_folder.gif", Main.i18n("tree.menu.directory.move")), true, moveFolder); move.addStyleName("okm-MenuItem"); dirMenu.addItem(move); copy = new MenuItem(Util.menuHTML("img/icon/actions/copy.gif", Main.i18n("tree.menu.directory.copy")), true, copyFolder); copy.addStyleName("okm-MenuItem"); dirMenu.addItem(copy); addDocument = new MenuItem(Util.menuHTML("img/icon/actions/add_document.gif", Main.i18n("tree.menu.directory.add.document")), true, addDocumentFolder); addDocument.addStyleName("okm-MenuItem"); dirMenu.addItem(addDocument); bookmark = new MenuItem(Util.menuHTML("img/icon/actions/add_bookmark.gif", Main.i18n("tree.menu.add.bookmark")), true, addBookmark); bookmark.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(bookmark); home = new MenuItem(Util.menuHTML("img/icon/actions/bookmark.gif", Main.i18n("tree.menu.set.home")), true, setHome); home.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(home); export = new MenuItem(Util.menuHTML("img/icon/actions/export.gif", Main.i18n("tree.menu.export")), true, exportToFile); export.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(export); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 4
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
/** * Browser menu */ public Menu() { // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values menu = new MenuBar(true); delete = new MenuItem(UtilComunicator.menuHTML("img/icon/actions/delete.png", GeneralComunicator.i18nExtension("messaging.message.delete")), true, deletePropose); delete.addStyleName("okm-MenuItem"); menu.addItem(delete); menu.setStyleName("okm-MenuBar"); initWidget(menu); }
Example 5
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
/** * Browser menu */ public Menu() { // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values menu = new MenuBar(true); delete = new MenuItem(UtilComunicator.menuHTML("img/icon/actions/delete.png", GeneralComunicator.i18nExtension("messaging.message.delete")), true, deletePropose); delete.addStyleName("okm-MenuItem"); menu.addItem(delete); menu.setStyleName("okm-MenuBar"); initWidget(menu); }
Example 6
Source File: PersonalMenu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
/** * PersonalMenu */ public PersonalMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); create = new MenuItem(Util.menuHTML("img/icon/actions/add_folder.gif", Main.i18n("tree.menu.directory.create")), true, addFolder); create.addStyleName("okm-MenuItem"); dirMenu.addItem(create); remove = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("tree.menu.directory.remove")), true, delFolder); remove.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(remove); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("tree.menu.directory.rename")), true, renFolder); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); move = new MenuItem(Util.menuHTML("img/icon/actions/move_folder.gif", Main.i18n("tree.menu.directory.move")), true, moveFolder); move.addStyleName("okm-MenuItem"); dirMenu.addItem(move); copy = new MenuItem(Util.menuHTML("img/icon/actions/copy.gif", Main.i18n("tree.menu.directory.copy")), true, copyFolder); copy.addStyleName("okm-MenuItem"); dirMenu.addItem(copy); export = new MenuItem(Util.menuHTML("img/icon/actions/export.gif", Main.i18n("tree.menu.export")), true, exportToFile); export.addStyleName("okm-MenuItem"); dirMenu.addItem(export); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 7
Source File: MassiveOperationsMenu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
/** * Category menu */ public MassiveOperationsMenu() { // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); selectAll = new MenuItem(Util.menuHTML("img/icon/actions/select_all.png", Main.i18n("filebrowser.menu.select.all")), true, massiveSelectAll); selectAll.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(selectAll); selectFolders = new MenuItem(Util.menuHTML("img/menuitem_empty.gif", Main.i18n("filebrowser.menu.select.all.folders")), true, massiveSelectFolders); selectFolders.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(selectFolders); selectDocuments = new MenuItem(Util.menuHTML("img/document.png", Main.i18n("filebrowser.menu.select.all.documents")), true, massiveSelectDocuments); selectDocuments.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(selectDocuments); selectMails = new MenuItem(Util.menuHTML("img/email.gif", Main.i18n("filebrowser.menu.select.all.mails")), true, massiveSelectMails); selectMails.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(selectMails); removeSelection = new MenuItem(Util.menuHTML("img/icon/actions/remove_all.png", Main.i18n("filebrowser.menu.remove.selection")), true, massiveRemoveSelection); removeSelection.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(removeSelection); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); enable(selectAll); enable(selectFolders); enable(selectDocuments); enable(selectMails); }
Example 8
Source File: TrashMenu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
public TrashMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); restoreItem = new MenuItem(Util.menuHTML("img/icon/actions/restore.gif", Main.i18n("general.menu.file.restore")), true, restore); restoreItem.addStyleName("okm-MenuItem"); dirMenu.addItem(restoreItem); purgeItem = new MenuItem(Util.menuHTML("img/icon/actions/purge.gif", Main.i18n("general.menu.file.purge")), true, purge); purgeItem.addStyleName("okm-MenuItem"); dirMenu.addItem(purgeItem); dirMenu.addStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 9
Source File: MainMenu.java From document-management-system with GNU General Public License v2.0 | 5 votes |
/** * initAvailableLanguage */ public void initAvailableLanguage(List<GWTLanguage> langs) { for (final GWTLanguage lang : langs) { MenuItem menuItem = new MenuItem(Util.flagMenuHTML(lang.getId(), lang.getName()), true, new Command() { @Override public void execute() { Main.get().refreshLang(lang.getId()); } }); menuItem.addStyleName("okm-MainMenuItem"); subMenuLanguage.addItem(menuItem); } }
Example 10
Source File: CubaGridWidget.java From cuba with Apache License 2.0 | 4 votes |
protected MenuItem createDeselectAllToggle() { MenuItem deselectAllToggle = new MenuItem(getDefaultToggleHTML(getDeselectAllLabel()), true, getDeselectAllCommand()); deselectAllToggle.addStyleName(COLUMN_HIDING_TOGGLE_STYLENAME); return deselectAllToggle; }
Example 11
Source File: CubaGridWidget.java From cuba with Apache License 2.0 | 4 votes |
protected MenuItem createSelectAllToggle() { MenuItem selectAllToggle = new MenuItem(getDefaultToggleHTML(getSelectAllLabel()), true, getSelectAllCommand()); selectAllToggle.addStyleName(COLUMN_HIDING_TOGGLE_STYLENAME); return selectAllToggle; }
Example 12
Source File: MailMenu.java From document-management-system with GNU General Public License v2.0 | 4 votes |
/** * MailMenu */ public MailMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); delete = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")), true, deleteFile); delete.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(delete); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("general.menu.edit.rename")), true, renameFile); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); move = new MenuItem(Util.menuHTML("img/icon/actions/move_document.gif", Main.i18n("general.menu.edit.move")), true, moveFile); move.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(move); copy = new MenuItem(Util.menuHTML("img/icon/actions/copy.gif", Main.i18n("general.menu.edit.copy")), true, copyFile); copy.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(copy); convert = new MenuItem(Util.menuHTML("img/icon/menu/convert.png", Main.i18n("general.menu.tools.convert")), true, showConvert); convert.addStyleName("okm-MainMenuItem"); dirMenu.addItem(convert); note = new MenuItem(Util.menuHTML("img/icon/actions/add_note.png", Main.i18n("general.menu.edit.add.note")), true, addNote); note.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(note); category = new MenuItem(Util.menuHTML("img/icon/stackpanel/table_key.gif", Main.i18n("category.add")), true, addCategory); category.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(category); keyword = new MenuItem(Util.menuHTML("img/icon/actions/book_add.png", Main.i18n("keyword.add")), true, addKeyword); keyword.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(keyword); propertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/add_property_group.gif", Main.i18n("general.menu.edit.add.property.group")), true, addPropertyGroup); propertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(propertyGroup); updatePropertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/update_property_group.png", Main.i18n("general.menu.edit.update.property.group")), true, updatePropertyGroupOKM); updatePropertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(updatePropertyGroup); merge = new MenuItem(Util.menuHTML("img/icon/actions/merge_pdf.png", Main.i18n("general.menu.edit.merge.pdf")), true, mergePdf); merge.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(merge); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 13
Source File: MetadataMenu.java From document-management-system with GNU General Public License v2.0 | 4 votes |
/** * MetadataMenu menu */ public MetadataMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); download = new MenuItem(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("filebrowser.menu.download")), true, downloadFile); download.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(download); checkout = new MenuItem(Util.menuHTML("img/icon/actions/checkout.gif", Main.i18n("filebrowser.menu.checkout")), true, checkoutFile); checkout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkout); checkin = new MenuItem(Util.menuHTML("img/icon/actions/checkin.gif", Main.i18n("filebrowser.menu.checkin")), true, checkinFile); checkin.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkin); cancelCheckout = new MenuItem(Util.menuHTML("img/icon/actions/cancel_checkout.gif", Main.i18n("filebrowser.menu.checkout.cancel")), true, cancelCheckinFile); cancelCheckout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(cancelCheckout); lock = new MenuItem(Util.menuHTML("img/icon/actions/lock.gif", Main.i18n("filebrowser.menu.lock")), true, lockFile); lock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(lock); unlock = new MenuItem(Util.menuHTML("img/icon/actions/unlock.gif", Main.i18n("filebrowser.menu.unlock")), true, unlockFile); unlock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(unlock); delete = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")), true, deleteFile); delete.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(delete); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("general.menu.edit.rename")), true, renameFile); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); note = new MenuItem(Util.menuHTML("img/icon/actions/add_note.png", Main.i18n("general.menu.edit.add.note")), true, addNote); note.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(note); category = new MenuItem(Util.menuHTML("img/icon/stackpanel/table_key.gif", Main.i18n("category.add")), true, addCategory); category.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(category); keyword = new MenuItem(Util.menuHTML("img/icon/actions/book_add.png", Main.i18n("keyword.add")), true, addKeyword); keyword.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(keyword); propertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/add_property_group.gif", Main.i18n("general.menu.edit.add.property.group")), true, addPropertyGroup); propertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(propertyGroup); updatePropertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/update_property_group.png", Main.i18n("general.menu.edit.update.property.group")), true, updatePropertyGroupOKM); updatePropertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(updatePropertyGroup); go = new MenuItem(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")), true, goDirectory); go.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(go); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 14
Source File: ThesaurusMenu.java From document-management-system with GNU General Public License v2.0 | 4 votes |
/** * Thesaurus menu */ public ThesaurusMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); download = new MenuItem(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("filebrowser.menu.download")), true, downloadFile); download.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(download); checkout = new MenuItem(Util.menuHTML("img/icon/actions/checkout.gif", Main.i18n("filebrowser.menu.checkout")), true, checkoutFile); checkout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkout); checkin = new MenuItem(Util.menuHTML("img/icon/actions/checkin.gif", Main.i18n("filebrowser.menu.checkin")), true, checkinFile); checkin.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkin); cancelCheckout = new MenuItem(Util.menuHTML("img/icon/actions/cancel_checkout.gif", Main.i18n("filebrowser.menu.checkout.cancel")), true, cancelCheckinFile); cancelCheckout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(cancelCheckout); lock = new MenuItem(Util.menuHTML("img/icon/actions/lock.gif", Main.i18n("filebrowser.menu.lock")), true, lockFile); lock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(lock); unlock = new MenuItem(Util.menuHTML("img/icon/actions/unlock.gif", Main.i18n("filebrowser.menu.unlock")), true, unlockFile); unlock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(unlock); delete = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")), true, deleteFile); delete.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(delete); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("general.menu.edit.rename")), true, renameFile); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); note = new MenuItem(Util.menuHTML("img/icon/actions/add_note.png", Main.i18n("general.menu.edit.add.note")), true, addNote); note.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(note); category = new MenuItem(Util.menuHTML("img/icon/stackpanel/table_key.gif", Main.i18n("category.add")), true, addCategory); category.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(category); keyword = new MenuItem(Util.menuHTML("img/icon/actions/book_add.png", Main.i18n("keyword.add")), true, addKeyword); keyword.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(keyword); propertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/add_property_group.gif", Main.i18n("general.menu.edit.add.property.group")), true, addPropertyGroup); propertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(propertyGroup); updatePropertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/update_property_group.png", Main.i18n("general.menu.edit.update.property.group")), true, updatePropertyGroupOKM); updatePropertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(updatePropertyGroup); go = new MenuItem(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")), true, goDirectory); go.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(go); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 15
Source File: CategoriesMenu.java From document-management-system with GNU General Public License v2.0 | 4 votes |
/** * Category menu */ public CategoriesMenu() { toolBarOption = new ToolBarOption(); // The item selected must be called on style.css : .okm-MenuBar .gwt-MenuItem-selected // First initialize language values dirMenu = new MenuBar(true); download = new MenuItem(Util.menuHTML("img/icon/actions/download.gif", Main.i18n("filebrowser.menu.download")), true, downloadFile); download.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(download); checkout = new MenuItem(Util.menuHTML("img/icon/actions/checkout.gif", Main.i18n("filebrowser.menu.checkout")), true, checkoutFile); checkout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkout); checkin = new MenuItem(Util.menuHTML("img/icon/actions/checkin.gif", Main.i18n("filebrowser.menu.checkin")), true, checkinFile); checkin.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(checkin); cancelCheckout = new MenuItem(Util.menuHTML("img/icon/actions/cancel_checkout.gif", Main.i18n("filebrowser.menu.checkout.cancel")), true, cancelCheckinFile); cancelCheckout.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(cancelCheckout); lock = new MenuItem(Util.menuHTML("img/icon/actions/lock.gif", Main.i18n("filebrowser.menu.lock")), true, lockFile); lock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(lock); unlock = new MenuItem(Util.menuHTML("img/icon/actions/unlock.gif", Main.i18n("filebrowser.menu.unlock")), true, unlockFile); unlock.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(unlock); delete = new MenuItem(Util.menuHTML("img/icon/actions/delete.gif", Main.i18n("filebrowser.menu.delete")), true, deleteFile); delete.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(delete); rename = new MenuItem(Util.menuHTML("img/icon/actions/rename.gif", Main.i18n("general.menu.edit.rename")), true, renameFile); rename.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(rename); note = new MenuItem(Util.menuHTML("img/icon/actions/add_note.png", Main.i18n("general.menu.edit.add.note")), true, addNote); note.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(note); category = new MenuItem(Util.menuHTML("img/icon/stackpanel/table_key.gif", Main.i18n("category.add")), true, addCategory); category.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(category); keyword = new MenuItem(Util.menuHTML("img/icon/actions/book_add.png", Main.i18n("keyword.add")), true, addKeyword); keyword.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(keyword); propertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/add_property_group.gif", Main.i18n("general.menu.edit.add.property.group")), true, addPropertyGroup); propertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(propertyGroup); updatePropertyGroup = new MenuItem(Util.menuHTML("img/icon/actions/update_property_group.png", Main.i18n("general.menu.edit.update.property.group")), true, updatePropertyGroupOKM); updatePropertyGroup.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(updatePropertyGroup); go = new MenuItem(Util.menuHTML("img/icon/actions/goto_folder.gif", Main.i18n("search.result.menu.go.folder")), true, goDirectory); go.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(go); export = new MenuItem(Util.menuHTML("img/icon/actions/export.gif", Main.i18n("general.menu.file.export")), true, exportToFile); export.addStyleName("okm-MenuItem-strike"); dirMenu.addItem(export); dirMenu.setStyleName("okm-MenuBar"); initWidget(dirMenu); }
Example 16
Source File: FindToolBarMenu.java From document-management-system with GNU General Public License v2.0 | 2 votes |
/** * Disable the menu item * * @param menuItem The menu item */ public void disable(MenuItem menuItem) { menuItem.removeStyleName("okm-MenuItem"); menuItem.addStyleName("okm-MenuItem-strike"); }
Example 17
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 2 votes |
/** * Enables menu item * * @param menuItem The menu item */ public void enable(MenuItem menuItem) { menuItem.addStyleName("okm-MenuItem"); menuItem.removeStyleName("okm-MenuItem-strike"); }
Example 18
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 2 votes |
/** * Enables menu item * * @param menuItem The menu item */ public void enable(MenuItem menuItem) { menuItem.addStyleName("okm-MenuItem"); menuItem.removeStyleName("okm-MenuItem-strike"); }
Example 19
Source File: MenuBase.java From document-management-system with GNU General Public License v2.0 | 2 votes |
/** * Enables menu item * * @param menuItem The menu item */ public void enable(MenuItem menuItem) { menuItem.addStyleName("okm-MenuItem"); menuItem.removeStyleName("okm-MenuItem-strike"); }
Example 20
Source File: Menu.java From document-management-system with GNU General Public License v2.0 | 2 votes |
/** * Disable the menu item * * @param menuItem The menu item */ public void disable(MenuItem menuItem) { menuItem.removeStyleName("okm-MenuItem"); menuItem.addStyleName("okm-MenuItem-strike"); }