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

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


            grid.setWidget(row, col, item);
            locations.put(currentPosition, item);
            currentPosition = null;
            super.add(item);
        } else {
            bus.fireEvent(new NotificationEvent(NotificationEvent.Level.WARN, i18n.BorderLayoutPositionPopulated()));
        }
    }
View Full Code Here


        view.append(EasyMock.eq(color3), EasyMock.eq(message3), EasyMock.eq(throwable3));
        EasyMock.expectLastCall().once();
       
        EasyMock.replay(view);
        new NotificationsPresenter(view);
        bus.fireEvent(new NotificationEvent(message1));
        bus.fireEvent(new NotificationEvent(level2, message2));
        bus.fireEvent(new NotificationEvent(level3, message3, throwable3));
        EasyMock.verify(view);
    }
View Full Code Here

                    if (obj instanceof FBScriptHelper) {
                        FBScriptHelper helper = (FBScriptHelper) obj;
                        helpersAvailable.put(helper.getName(), className);
                    }
                } catch (Exception e) {
                    bus.fireEvent(new NotificationEvent(Level.ERROR, "Problem loading script helper " + className, e));
                }
            }
        }
        for (Map.Entry<String, String> entry : helpersAvailable.entrySet()) {
            helperSelectionCombo.addItem(entry.getKey());
        }
        addHelperButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                String helperName = helperSelectionCombo.getValue(helperSelectionCombo.getSelectedIndex());
                String eventName = eventSelectionCombo.getValue(eventSelectionCombo.getSelectedIndex());
                String helperClassName = helpersAvailable.get(helperName);
                try {
                    FBScriptHelper helper = (FBScriptHelper) ReflectionHelper.newInstance(helperClassName);
                    FBScript fbScript = eventActions.get(eventName);
                    if (fbScript == null) {
                        fbScript = new FBScript();
                        eventActions.put(eventName, fbScript);
                    }
                    List<FBScriptHelper> helpers = getHelpersForEvent(fbScript);
                    helpers.add(helper);
                    ScriptHelperListPanel editors = new ScriptHelperListPanel();
                    for (FBScriptHelper helper2 : helpers) {
                        editors.addScriptHelper(helper2, newScriptOrderHandler(fbScript));
                    }
                    mainPanel.remove(1);
                    mainPanel.insert(editors, 1);
                } catch (Exception e) {
                    bus.fireEvent(new NotificationEvent(Level.ERROR, "Problem starting script helper " + helperClassName, e));
                }
            }
        });
        for (Map.Entry<String, FBScript> entry : this.eventActions.entrySet()) {
            FBScript script = entry.getValue();
View Full Code Here

            public void onEvent(TaskNameFilterEvent event) {
                String filter = event.getTaskNameFilter();
                try {
                    model.getExistingIoAssociations(filter);
                } catch (Exception e) {
                    bus.fireEvent(new NotificationEvent(Level.WARN, i18n.CouldntPopulateAutocomplete(), e));
                }
            }
        });
        ExistingTasksResponseHandler handler = new ExistingTasksResponseHandler() {
            @Override
View Full Code Here

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

   
    @Override
    public boolean add(FBFormItem item) {
        boolean retval = false;
        if (ifBlock != null && elseBlock != null) {
            bus.fireEvent(new NotificationEvent(Level.WARN, i18n.ConditionalBlockFull()));
        } else if (ifBlock == null && elseBlock == null) {
            ifBlock = item;
            display.setWidget(0, 0, item);
            retval = true;
        } else if (ifBlock != null && elseBlock == null) {
View Full Code Here

        super();
        this.view = fbView;
        GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
            @Override
            public void onUncaughtException(Throwable exception) {
                bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.ErrorInTheUI(), exception));
            }
        });
        bus.addHandler(UserIsLoggedOutEvent.TYPE, new UserIsLoggedOutHandler() {
            @Override
            public void onEvent(UserIsLoggedOutEvent event) {
View Full Code Here

   
    private void populateRepresentationFactory(FormBuilderService model) {
        try {
            model.populateRepresentationFactory();
        } catch (FormBuilderException e) {
            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.ProblemLoadingRepresentationFactory(), e));
        }
    }
View Full Code Here

                        roles.addAll(responseRoles);
                    }
                });
            }
        } catch (FormBuilderException e) {
            bus.fireEvent(new NotificationEvent(Level.ERROR, i18n.RolesNotRead(), e));
        }
    }
View Full Code Here

        popup.setWidget(this.effectView);
        this.effectView.setParentPopup(popup);
        try {
            server.getExistingValidations();
        } catch (FormBuilderException e) {
            bus.fireEvent(new NotificationEvent(Level.WARN,
                FormBuilderGlobals.getInstance().getI18n().CouldntConnectServer(), e));
        }
        return popup;
    }
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.