Search in sources :

Example 1 with DetailPanel

use of org.activiti.explorer.ui.custom.DetailPanel in project Activiti by Activiti.

the class SimpleTableEditor method initUi.

@Override
protected void initUi() {
    super.initUi();
    setSizeFull();
    // Hide the column on the left side
    grid.setColumnExpandRatio(0, 0f);
    mainLayout = new DetailPanel();
    setDetailComponent(mainLayout);
    // Editor
    editorGrid = new GridLayout(2, 7);
    editorGrid.setSizeFull();
    editorGrid.setMargin(true);
    editorGrid.setColumnExpandRatio(0, 1.0f);
    editorGrid.setColumnExpandRatio(1, 9.0f);
    editorGrid.setSpacing(true);
    mainLayout.addComponent(editorGrid);
    initNameField(editorGrid);
    initDescriptionField(editorGrid);
    initTaskTable(editorGrid);
    initButtons(editorGrid);
    toolBar.setActiveEntry(KEY_EDITOR);
}
Also used : GridLayout(com.vaadin.ui.GridLayout) DetailPanel(org.activiti.explorer.ui.custom.DetailPanel)

Aggregations

GridLayout (com.vaadin.ui.GridLayout)1 DetailPanel (org.activiti.explorer.ui.custom.DetailPanel)1