Search in sources :

Example 1 with IScrollComposite

use of org.jowidgets.api.widgets.IScrollComposite in project jo-client-platform by jo-source.

the class BeanGraphSettingsDialog method initializeTabFolder.

private BeanGraphAttributeListImpl initializeTabFolder(final int filterTabIndex) {
    tabFolder = add(BPF.tabFolder().setTabsCloseable(false), MigLayoutFactory.GROWING_CELL_CONSTRAINTS);
    final ITabItem itemGroupFilter = tabFolder.addItem(BPF.tabItem());
    itemGroupFilter.setText("GroupFilter");
    itemGroupFilter.setLayout(MigLayoutFactory.growingInnerCellLayout());
    final IScrollComposite contentGroup = itemGroupFilter.add(BPF.scrollComposite(), MigLayoutFactory.GROWING_CELL_CONSTRAINTS);
    contentGroup.setLayout(MigLayoutFactory.growingInnerCellLayout());
    // final ITabItem itemRelationFilter = tabFolder.addItem(BPF.tabItem());
    // itemRelationFilter.setText("RelationFilter");
    // itemRelationFilter.setLayout(MigLayoutFactory.growingInnerCellLayout());
    // final IScrollComposite contentRelations = itemRelationFilter.add(
    // BPF.scrollComposite(),
    // MigLayoutFactory.GROWING_CELL_CONSTRAINTS);
    // contentRelations.setLayout(MigLayoutFactory.growingInnerCellLayout());
    // beanGraphAttributeListImplRelations = new BeanGraphAttributeListImpl(vis, contentRelations.add(
    // BPF.composite(),
    // "aligny top, growx,  w 0::, h 0::"), edgeVisibilityMap, FilterType.RELATIONS);
    final IComposite content = contentGroup.add(BPF.composite(), "aligny top, growx,  w 0::, h 0::");
    final BeanGraphAttributeListImpl beanGraphAttributeListImplGroup = new BeanGraphAttributeListImpl(vis, content, groupVisibilityMap, FilterType.GROUPS, groupColorMap);
    tabFolder.setSelectedItem((getFilterTabByIndex(filterTabIndex) != null) ? getFilterTabByIndex(filterTabIndex).getIndex() : 0);
    return beanGraphAttributeListImplGroup;
}
Also used : ITabItem(org.jowidgets.api.widgets.ITabItem) IComposite(org.jowidgets.api.widgets.IComposite) IScrollComposite(org.jowidgets.api.widgets.IScrollComposite)

Aggregations

IComposite (org.jowidgets.api.widgets.IComposite)1 IScrollComposite (org.jowidgets.api.widgets.IScrollComposite)1 ITabItem (org.jowidgets.api.widgets.ITabItem)1