Search in sources :

Example 1 with ProcessMenuBar

use of org.activiti.explorer.ui.process.ProcessMenuBar in project Activiti by Activiti.

the class EditorProcessDefinitionPage method createMenuBar.

@Override
protected ToolBar createMenuBar() {
    ProcessMenuBar menuBar = new ProcessMenuBar();
    Button newModelButton = new Button(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_NEW));
    newModelButton.addListener(new NewModelClickListener());
    menuBar.addButton(newModelButton);
    Button importModelButton = new Button(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_IMPORT));
    importModelButton.addListener(new ImportModelClickListener());
    menuBar.addButton(importModelButton);
    return menuBar;
}
Also used : Button(com.vaadin.ui.Button) ImportModelClickListener(org.activiti.explorer.ui.process.listener.ImportModelClickListener) NewModelClickListener(org.activiti.explorer.ui.process.listener.NewModelClickListener) ProcessMenuBar(org.activiti.explorer.ui.process.ProcessMenuBar)

Aggregations

Button (com.vaadin.ui.Button)1 ProcessMenuBar (org.activiti.explorer.ui.process.ProcessMenuBar)1 ImportModelClickListener (org.activiti.explorer.ui.process.listener.ImportModelClickListener)1 NewModelClickListener (org.activiti.explorer.ui.process.listener.NewModelClickListener)1