Search in sources :

Example 16 with IActionBuilder

use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.

the class PasswordChangeActionBuilderImpl method doBuild.

@Override
protected IAction doBuild() {
    final PasswordChangeCommand command = new PasswordChangeCommand(getPasswordChangeService(), passwordChangeDialogSetup, passwordValidatorBuilder.build());
    final IActionBuilder builder = getBuilder();
    builder.setCommand(command);
    return builder.build();
}
Also used : IActionBuilder(org.jowidgets.api.command.IActionBuilder)

Example 17 with IActionBuilder

use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.

the class EditActionBuilderImpl method doBuild.

@Override
public IAction doBuild() {
    final BeanEditCommand<BEAN_TYPE> command = new BeanEditCommand<BEAN_TYPE>(model, dataModel, getBeanFormBp(), enabledCheckers);
    final IActionBuilder builder = getBuilder();
    builder.setCommand((ICommand) command);
    return builder.build();
}
Also used : IActionBuilder(org.jowidgets.api.command.IActionBuilder)

Example 18 with IActionBuilder

use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.

the class ExecutorActionBuilderImpl method buildAction.

private IAction buildAction() {
    final ExecutorCommand<BEAN_TYPE> command = new ExecutorCommand<BEAN_TYPE>(listModel, Filter.and(selectionFilters), beanListExecutionPolicy, beanSelectionPolicy, beanModificationStatePolicy, beanMessageStatePolicy, getEnabledCheckers(), executableCheckers, exceptionConverter, parameterProviders, executionInterceptors, defaultParameter, executor);
    final IActionBuilder builder = getBuilder();
    builder.setCommand((ICommand) command);
    return builder.build();
}
Also used : IActionBuilder(org.jowidgets.api.command.IActionBuilder)

Example 19 with IActionBuilder

use of org.jowidgets.api.command.IActionBuilder in project jo-client-platform by jo-source.

the class LinkCreatorActionBuilderImpl method buildAction.

private IAction buildAction() {
    setDefaultTextIfNecessary();
    final ICommand command = new BeanLinkCreatorCommand<SOURCE_BEAN_TYPE, LINK_BEAN_TYPE, LINKABLE_BEAN_TYPE>(linkCreatorService, source, sourceSelectionAutoRefresh, sourceMultiSelection, sourceModificationPolicy, sourceMessageStatePolicy, sourceExecutableCheckers, linkedModel, linkedCardinality, linkBeanTypeId, linkBeanType, linkBeanForm, linkDefaultFactory, linkBeanPropertyValidators, linkableBeanTypeId, linkableBeanType, linkableBeanForm, linkableTable, linkableBeanPropertyValidators, enabledCheckers, executionInterceptors, exceptionConverter);
    final IActionBuilder builder = getBuilder();
    builder.setCommand(command);
    return builder.build();
}
Also used : ICommand(org.jowidgets.api.command.ICommand) IActionBuilder(org.jowidgets.api.command.IActionBuilder)

Aggregations

IActionBuilder (org.jowidgets.api.command.IActionBuilder)19 ICommand (org.jowidgets.api.command.ICommand)4 IDataModelContextProvider (org.jowidgets.cap.ui.api.model.IDataModelContextProvider)3 DataModelContextCommandWrapper (org.jowidgets.cap.ui.tools.command.DataModelContextCommandWrapper)3 UnsupportedFlavorException (java.awt.datatransfer.UnsupportedFlavorException)1 BufferedImage (java.awt.image.BufferedImage)1 IOException (java.io.IOException)1 IActionBuilderFactory (org.jowidgets.api.command.IActionBuilderFactory)1 ICommandAction (org.jowidgets.api.command.ICommandAction)1 ICommandExecutor (org.jowidgets.api.command.ICommandExecutor)1 IExecutionContext (org.jowidgets.api.command.IExecutionContext)1 ICheckedItemModel (org.jowidgets.api.model.item.ICheckedItemModel)1 IToolBarModel (org.jowidgets.api.model.item.IToolBarModel)1 IAttribute (org.jowidgets.cap.ui.api.attribute.IAttribute)1 IInputListener (org.jowidgets.common.widgets.controller.IInputListener)1 IItemStateListener (org.jowidgets.common.widgets.controller.IItemStateListener)1 InputControlItemModel (org.jowidgets.tools.model.item.InputControlItemModel)1 ToolBarModel (org.jowidgets.tools.model.item.ToolBarModel)1