List of usage examples for com.vaadin.server FontAwesome ARROW_CIRCLE_O_LEFT
FontAwesome ARROW_CIRCLE_O_LEFT
To view the source code for com.vaadin.server FontAwesome ARROW_CIRCLE_O_LEFT.
Click Source Link
From source file:org.jumpmind.vaadin.ui.sqlexplorer.DefaultButtonBar.java
License:Open Source License
protected void populate(MenuBar menuBar) { executeAtCursorButton = menuBar.addItem("", FontAwesome.PLAY, new Command() { private static final long serialVersionUID = 1L; @Override//from w w w. j a va 2 s . c om public void menuSelected(MenuItem selectedItem) { queryPanel.execute(false); } }); executeAtCursorButton.setDescription("Run sql under cursor (CTRL+ENTER)"); executeScriptButton = menuBar.addItem("", FontAwesome.FORWARD, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { queryPanel.execute(true); } }); executeScriptButton.setDescription("Run as script"); commitButton = menuBar.addItem("", FontAwesome.ARROW_CIRCLE_O_RIGHT, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { queryPanel.commit(); } }); commitButton.setStyleName("green"); commitButton.setDescription("Commit"); commitButton.setEnabled(false); rollbackButton = menuBar.addItem("", FontAwesome.ARROW_CIRCLE_O_LEFT, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { queryPanel.rollback(); } }); rollbackButton.setStyleName("red"); rollbackButton.setDescription("Rollback"); rollbackButton.setEnabled(false); historyButton = menuBar.addItem("", FontAwesome.SEARCH, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { new SqlHistoryDialog(settingsProvider, queryPanel).showAtSize(0.6); } }); historyButton.setDescription("Sql History"); historyButton.setEnabled(true); MenuItem optionsButton = menuBar.addItem("", FontAwesome.TASKS, null); optionsButton.setDescription("Options"); importButton = optionsButton.addItem("DB Import", FontAwesome.DOWNLOAD, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { new DbImportDialog(db.getPlatform()).showAtSize(0.6); } }); exportButton = optionsButton.addItem("DB Export", FontAwesome.UPLOAD, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { new DbExportDialog(db.getPlatform(), queryPanel).showAtSize(0.6); } }); fillButton = optionsButton.addItem("DB Fill", FontAwesome.BEER, new Command() { private static final long serialVersionUID = 1L; @Override public void menuSelected(MenuItem selectedItem) { new DbFillDialog(db.getPlatform(), queryPanel).showAtSize(0.6); } }); for (IDbMenuItem item : additionalMenuItems) { optionsButton.addItem(item.getCaption(), item.getIcon(), item.getCommand()); } }