Package org.jbpm.formapi.client.bus.ui

Examples of org.jbpm.formapi.client.bus.ui.NotificationEvent


        }
        try {
            representation.setDataMap(dataMap);
        } catch (FormEncodingException e) {
            CommonGlobals.getInstance().getEventBus().fireEvent(
                    new NotificationEvent(Level.ERROR, "Couldn't create validation", e));
        }
        return representation;
    }
View Full Code Here


   
    public void saveForm(FormRepresentation form, Map<String, Object> inputMap) {
        try {
            server.generateForm(form, this.saveType, inputMap);
        } catch (FormBuilderException e) {
            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.UnexpectedWhilePreviewForm(this.saveType), e));
        }
    }
View Full Code Here

        FormRepresentationEncoder encoder = FormEncodingFactory.getEncoder();
        try {
            String formAsJson = encoder.encode(form);
            setClientExportForm(formAsJson);
        } catch (FormEncodingException e) {
            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.CouldntExportAsJson(), e));
        }
    }
View Full Code Here

        this.errorMessage = onErrorMessage;
    }
   
    @Override
    public void onFailure(Method method, Throwable exception) {
        bus.fireEvent(new NotificationEvent(Level.ERROR, this.errorMessage, exception));
    }
View Full Code Here

                    public void undoAction(UndoableEvent event) {
                        FormRepresentation oldForm = (FormRepresentation) event.getData("oldForm");
                        try {
                            layoutView.getFormDisplay().populate(oldForm);
                        } catch (FormBuilderException e) {
                            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.CouldntPopulateWithForm(), e));
                        }
                    }
                    @Override
                    public void onEvent(UndoableEvent event) { }
                    @Override
                    public void doAction(UndoableEvent event) {
                        FormRepresentation newForm = (FormRepresentation) event.getData("newForm");
                        try {
                            layoutView.getFormDisplay().populate(newForm);
                        } catch (FormBuilderException e) {
                            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.CouldntPopulateWithForm(), e));
                        }
                    }
                }));
            }
        });
View Full Code Here

    public boolean add(FBFormItem item) {
        if (loopBlock.getWidget() == null) {
            loopBlock.setWidget(item);
            return super.add(item);
        } else {
            bus.fireEvent(new NotificationEvent(Level.WARN, i18n.LoopBlockFull()));
            return false;
        }
    }
View Full Code Here

                    break;
                }
            }
        }
        if (!added) {
            bus.fireEvent(new NotificationEvent(NotificationEvent.Level.WARN, i18n.TableFull()));
            return false;
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.client.bus.ui.NotificationEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.