use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class CopyActionBuilder method doBuild.
@Override
public IAction doBuild() {
setDefaultTextIfNecessary();
setDefaultToolTipTextIfNecessary();
final BeanCopyCommand<BEAN_TYPE> command = new BeanCopyCommand<BEAN_TYPE>(model, transferableFactory, enabledCheckers, executableCheckers, multiSelection, beanModificationStatePolicy, beanMessageStatePolicy);
final IActionBuilder builder = getBuilder();
builder.setCommand((ICommand) command);
return builder.build();
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class PasteLinkActionBuilderImpl method buildAction.
private IAction buildAction() {
setDefaultTextIfNecessary();
final ICommand command = new PasteLinkCommand<SOURCE_BEAN_TYPE, LINK_BEAN_TYPE, LINKABLE_BEAN_TYPE>(linkCreatorService, source, sourceSelectionAutoRefresh, sourceMultiSelection, sourceModificationPolicy, sourceMessageStatePolicy, sourceExecutableCheckers, linkedModel, linkedCardinality, linkBeanTypeId, linkBeanType, linkDefaultFactory, linkableBeanTypeId, linkableBeanType, enabledCheckers, serviceBasedEnabledChecking, executionInterceptors, exceptionConverter, disposeObservable);
final IActionBuilder builder = getBuilder();
builder.setCommand(command);
return builder.build();
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class RefreshLookUpsActionBuilderImpl method doBuild.
@Override
protected IAction doBuild() {
final ICommand command = new RefreshLookUpsCommand();
final IActionBuilder builder = getBuilder();
builder.setCommand(command);
return builder.build();
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class LinkDeleterActionBuilderImpl method buildAction.
private IAction buildAction() {
setDefaultTextIfNecessary();
setDefaultToolTipTextIfNecessary();
final ICommand command = new BeanLinkDeleterCommand<SOURCE_BEAN_TYPE, LINKED_BEAN_TYPE>(deleterService, deletionConfirmDialog, source, sourceSelectionAutoRefresh, sourceMultiSelection, sourceModificationPolicy, sourceMessageStatePolicy, sourceExecutableCheckers, linkedModel, linkedMultiSelection, linkedModificationPolicy, linkedMessageStatePolicy, linkedExecutableCheckers, enabledCheckers, autoSelection, executionInterceptors, exceptionConverter);
final IActionBuilder builder = getBuilder();
builder.setCommand(command);
return builder.build();
}
use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.
the class PasteBeansActionBuilderImpl method doBuild.
@Override
public IAction doBuild() {
final BeanPasteCommand<BEAN_TYPE> command = new BeanPasteCommand<BEAN_TYPE>(beanTypeId, beanType, model, disposeObservable, attributes, enabledCheckers, anySelection);
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