Search in sources :

Example 1 with ToolBar

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;
}
Also used : ToolbarCommand(org.activiti.explorer.ui.custom.ToolbarEntry.ToolbarCommand) ToolBar(org.activiti.explorer.ui.custom.ToolBar)

Example 2 with 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);
        }
    }
}
Also used : ToolBar(org.activiti.explorer.ui.custom.ToolBar)

Example 3 with ToolBar

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);
        }
    }
}
Also used : ToolBar(org.activiti.explorer.ui.custom.ToolBar)

Aggregations

ToolBar (org.activiti.explorer.ui.custom.ToolBar)3 ToolbarCommand (org.activiti.explorer.ui.custom.ToolbarEntry.ToolbarCommand)1