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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations