use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class BeanTableMenuFactoryImpl method packSelectedActionBuilder.
@Override
public IActionBuilder packSelectedActionBuilder(final IBeanTable<BEAN_TYPE> table) {
Assert.paramNotNull(table, "table");
IActionBuilder builder = new BeanTablePackSelectedActionBuilder(table);
for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
if (builder != null) {
builder = interceptor.packSelectedActionBuilder(table, builder);
} else {
break;
}
}
return builder;
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class BeanTableMenuFactoryImpl method packAllActionBuilder.
@Override
public IActionBuilder packAllActionBuilder(final IBeanTable<BEAN_TYPE> table) {
Assert.paramNotNull(table, "table");
IActionBuilder builder = new BeanTablePackAllActionBuilder(table);
for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
if (builder != null) {
builder = interceptor.packAllActionBuilder(table, builder);
} else {
break;
}
}
return builder;
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class BeanTableMenuFactoryImpl method settingsActionBuilder.
@Override
public IActionBuilder settingsActionBuilder(final IBeanTable<BEAN_TYPE> table) {
Assert.paramNotNull(table, "table");
IActionBuilder builder = new BeanTableSettingsActionBuilder(table);
for (final IBeanTableMenuInterceptor<BEAN_TYPE> interceptor : interceptors) {
if (builder != null) {
builder = interceptor.settingsActionBuilder(table, builder);
} else {
break;
}
}
return builder;
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class DeleterActionBuilder method buildAction.
private IAction buildAction() {
setDefaultTextIfNecessary();
setDefaultToolTipTextIfNecessary();
final BeanDeleterCommand<BEAN_TYPE> command = new BeanDeleterCommand<BEAN_TYPE>(model, enabledCheckers, executableCheckers, deleterService, executionInterceptors, multiSelection, beanModificationStatePolicy, beanMessageStatePolicy, exceptionConverter, autoSelection, deletionConfirmDialog);
final IActionBuilder builder = getBuilder();
if (model instanceof IDataModelContextProvider) {
builder.setCommand(new DataModelContextCommandWrapper((IDataModelContextProvider) model, DataModelChangeType.SELECTION_CHANGE, command));
} else {
builder.setCommand((ICommand) command);
}
return builder.build();
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class CreatorActionBuilderImpl method buildAction.
private IAction buildAction() {
final IBeanFormBluePrint<BEAN_TYPE> formBp = getBeanFormBp();
Collection<IAttribute<?>> attr = attributes;
if (attr == null && formBp != null) {
attr = formBp.getCreateModeAttributes();
}
final BeanCreatorCommand<BEAN_TYPE> command = new BeanCreatorCommand<BEAN_TYPE>(beanTypeId, beanType, beanPropertyValidators, model, attr, formBp, enabledCheckers, anySelection, creatorService, parentBeanKeysProvider, getDefaultValueProvider(attr), exceptionConverter, executionInterceptors, creatorInterceptors);
final IActionBuilder builder = getBuilder();
if (model instanceof IDataModelContextProvider) {
builder.setCommand(new DataModelContextCommandWrapper((IDataModelContextProvider) model, DataModelChangeType.SELECTION_CHANGE, command));
} else {
builder.setCommand((ICommand) command);
}
return builder.build();
}
Aggregations