Search in sources :

Example 6 with IMenuModel

use of org.jowidgets.api.model.item.IMenuModel in project jo-client-platform by jo-source.

the class BeanTableMenuFactoryImpl method columnsVisibilityMenu.

@Override
public IMenuModel columnsVisibilityMenu(final IBeanTableModel<BEAN_TYPE> model) {
    Assert.paramNotNull(model, "model");
    IMenuModel menuModel = new BeanTableColumnsVisibilityMenuModel(model);
    for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
        if (menuModel != null) {
            menuModel = interceptor.columnsVisibilityMenu(model, menuModel);
        } else {
            break;
        }
    }
    return menuModel;
}
Also used : IMenuModel(org.jowidgets.api.model.item.IMenuModel)

Example 7 with IMenuModel

use of org.jowidgets.api.model.item.IMenuModel in project jo-client-platform by jo-source.

the class BeanTableMenuFactoryImpl method filterMenu.

@Override
public IMenuModel filterMenu(final IBeanTable<BEAN_TYPE> table) {
    Assert.paramNotNull(table, "table");
    IMenuModel menuModel = new BeanTableFilterMenuModel<BEAN_TYPE>(table, this);
    for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
        if (menuModel != null) {
            menuModel = interceptor.filterMenu(table, menuModel);
        } else {
            break;
        }
    }
    return menuModel;
}
Also used : IMenuModel(org.jowidgets.api.model.item.IMenuModel)

Example 8 with IMenuModel

use of org.jowidgets.api.model.item.IMenuModel in project jo-client-platform by jo-source.

the class BeanTableMenuFactoryImpl method alignmentMenu.

@Override
public IMenuModel alignmentMenu(final IBeanTableModel<BEAN_TYPE> model, final int columnIndex) {
    Assert.paramNotNull(model, "model");
    IMenuModel menuModel = new BeanTableAlignmentMenuModel(model, columnIndex);
    for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
        if (menuModel != null) {
            menuModel = interceptor.alignmentMenu(model, columnIndex, menuModel);
        } else {
            break;
        }
    }
    return menuModel;
}
Also used : IMenuModel(org.jowidgets.api.model.item.IMenuModel)

Example 9 with IMenuModel

use of org.jowidgets.api.model.item.IMenuModel in project jo-client-platform by jo-source.

the class BeanTableMenuFactoryImpl method editMenu.

@Override
public IMenuModel editMenu(final IBeanTable<BEAN_TYPE> table, final int columnIndex) {
    Assert.paramNotNull(table, "table");
    IMenuModel menuModel = new BeanTableEditMenuModel<BEAN_TYPE>(table, columnIndex, this);
    for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
        if (menuModel != null) {
            menuModel = interceptor.editMenu(table, columnIndex, menuModel);
        } else {
            break;
        }
    }
    return menuModel;
}
Also used : IMenuModel(org.jowidgets.api.model.item.IMenuModel)

Example 10 with IMenuModel

use of org.jowidgets.api.model.item.IMenuModel in project jo-client-platform by jo-source.

the class BeanTableMenuFactoryImpl method cellPopupMenu.

@Override
public IMenuModel cellPopupMenu(final IBeanTable<BEAN_TYPE> table, final IMenuModel headerPopupMenuModel, final int columnIndex) {
    Assert.paramNotNull(table, "table");
    IMenuModel menuModel = new BeanTableCellMenuModel<BEAN_TYPE>(table, headerPopupMenuModel, columnIndex, this);
    for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
        if (menuModel != null) {
            menuModel = interceptor.cellPopupMenu(table, headerPopupMenuModel, columnIndex, menuModel);
        } else {
            break;
        }
    }
    return menuModel;
}
Also used : IMenuModel(org.jowidgets.api.model.item.IMenuModel)

Aggregations

IMenuModel (org.jowidgets.api.model.item.IMenuModel)17 IAction (org.jowidgets.api.command.IAction)4 MenuModel (org.jowidgets.tools.model.item.MenuModel)4 IMenuItemModel (org.jowidgets.api.model.item.IMenuItemModel)2 IToolBarModel (org.jowidgets.api.model.item.IToolBarModel)2 IActionItemModel (org.jowidgets.api.model.item.IActionItemModel)1 IMenuBarModel (org.jowidgets.api.model.item.IMenuBarModel)1 ISeparatorItemModel (org.jowidgets.api.model.item.ISeparatorItemModel)1 IEntityLinkDescriptor (org.jowidgets.cap.common.api.entity.IEntityLinkDescriptor)1 IEntityService (org.jowidgets.cap.common.api.service.IEntityService)1 IDataModelAction (org.jowidgets.cap.ui.api.command.IDataModelAction)1 IBeanTableMenuContributionPlugin (org.jowidgets.cap.ui.api.plugin.IBeanTableMenuContributionPlugin)1 IWorkbenchMenuInterceptorPlugin (org.jowidgets.cap.ui.api.plugin.IWorkbenchMenuInterceptorPlugin)1 IPluginProperties (org.jowidgets.plugin.api.IPluginProperties)1 IPluginPropertiesBuilder (org.jowidgets.plugin.api.IPluginPropertiesBuilder)1 MenuBarModel (org.jowidgets.tools.model.item.MenuBarModel)1