Package org.jbpm.formbuilder.client.bus

Examples of org.jbpm.formbuilder.client.bus.GetFormRepresentationResponseHandler


    private final String saveType = getClass().getName();
    private final String language;
   
    public ExportFormCommand(String language) {
        this.language = language;
        this.bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                FormRepresentation form = event.getRepresentation();
                String type = event.getSaveType();
                if (saveType.equals(type)) {
View Full Code Here


    private final EventBus bus = CommonGlobals.getInstance().getEventBus();
    private final FormBuilderService service = FormBuilderGlobals.getInstance().getService();
   
    public DeleteFormCommand() {
        super();
        bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                if (DELETE_TYPE.equals(event.getSaveType())) {
                    FormRepresentation form = event.getRepresentation();
                    showDeletePanel(form);
View Full Code Here

    private final EventBus bus = CommonGlobals.getInstance().getEventBus();
    private final FormBuilderService service = FormBuilderGlobals.getInstance().getService();
   
    public SaveFormCommand() {
        super();
        bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                if (SAVE_TYPE.equals(event.getSaveType())) {
                    FormRepresentation form = event.getRepresentation();
                    showSavePanel(form);
View Full Code Here

        EasyMock.expect(view.getFormDisplay()).andReturn(mockForm);
        final FormRepresentation formRep = new FormRepresentation();
        final String saveType = "ANYTHING";
        EasyMock.expect(mockForm.createRepresentation()).andReturn(formRep);
        EasyMock.replay(view, drag, mockForm);
        bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                assertEquals("both forms should be the same", event.getRepresentation(), formRep);
                assertEquals("both saveTypes should be the same", event.getSaveType(), saveType);
            }
View Full Code Here

    private final FormBuilderService server = FormBuilderGlobals.getInstance().getService();
    private final String saveType;
   
    public PreviewFormCommand(final String saveType) {
        this.saveType = saveType;
        this.bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                FormRepresentation form = event.getRepresentation();
                String type = event.getSaveType();
                if (saveType.equals(type)) {
View Full Code Here

            public void doAction(UndoableEvent event) { }
            @Override
            public void undoAction(UndoableEvent event) { }
        });
       
        bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(GetFormRepresentationResponseEvent event) {
                if (EXPORT_TYPE.equals(event.getSaveType())) {
                    exportForm(event.getRepresentation());
                }
View Full Code Here

            public void onClick(ClickEvent event) {
                mgr.redo();
            }
        });
       
        bus.addHandler(GetFormRepresentationResponseEvent.TYPE, new GetFormRepresentationResponseHandler() {
            @Override
            public void onEvent(final GetFormRepresentationResponseEvent event) {
                if (LOAD_TYPE.equals(event.getSaveType())) {
                    view.showDialog(i18n.RefreshButtonWarning(), new ClickHandler() {
                        @Override
View Full Code Here

TOP

Related Classes of org.jbpm.formbuilder.client.bus.GetFormRepresentationResponseHandler

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.