use of org.activiti.explorer.ui.custom.ToolBar in project Activiti by Activiti.
the class SimpleTableEditor method initToolbar.
protected ToolBar initToolbar() {
toolBar = new ToolBar();
toolBar.addToolbarEntry(KEY_EDITOR, ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_TITLE), new ToolbarCommand() {
public void toolBarItemSelected() {
if (imagePanel != null) {
imagePanel.setVisible(false);
editorGrid.setVisible(true);
toolBar.setActiveEntry(KEY_EDITOR);
}
}
});
toolBar.addToolbarEntry(KEY_PREVIEW, ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_EDITOR_BPMN_PREVIEW), new ToolbarCommand() {
public void toolBarItemSelected() {
editorGrid.setVisible(false);
showDiagram();
toolBar.setActiveEntry(KEY_PREVIEW);
}
});
return toolBar;
}
use of org.activiti.explorer.ui.custom.ToolBar in project Activiti by Activiti.
the class AbstractOneViewPage method addMenuBar.
/**
* Subclasses are expected to provide their own menuBar.
*/
protected void addMenuBar() {
// Remove any old menu bar
String activeEntry = null;
if (toolBar != null) {
activeEntry = toolBar.getCurrentEntryKey();
grid.removeComponent(toolBar);
}
// Create menu bar
ToolBar menuBar = createMenuBar();
if (menuBar != null) {
toolBar = createMenuBar();
grid.addComponent(toolBar, 0, 0);
if (activeEntry != null) {
toolBar.setActiveEntry(activeEntry);
}
}
}
use of org.activiti.explorer.ui.custom.ToolBar in project Activiti by Activiti.
the class AbstractPage method addMenuBar.
/**
* Subclasses are expected to provide their own menuBar.
*/
protected void addMenuBar() {
// Remove any old menu bar
String activeEntry = null;
if (toolBar != null) {
activeEntry = toolBar.getCurrentEntryKey();
grid.removeComponent(toolBar);
}
// Create menu bar
ToolBar menuBar = createMenuBar();
if (menuBar != null) {
toolBar = createMenuBar();
grid.addComponent(toolBar, 0, 0, 1, 0);
if (activeEntry != null) {
toolBar.setActiveEntry(activeEntry);
}
}
}
Aggregations