Package org.jbpm.formapi.client.bus

Examples of org.jbpm.formapi.client.bus.FormItemSelectionEvent


        EasyMock.expectLastCall().once();
        view.populate(EasyMock.same(formItem));
        EasyMock.expectLastCall().once();
        EasyMock.replay(view, formItem);
        new EditionPresenter(view);
        bus.fireEvent(new FormItemSelectionEvent(formItem, true));
        EasyMock.verify(view, formItem);
    }
View Full Code Here


    @Test
    public void testFormItemSelectionDeselected() throws Exception {
        FBFormItem formItem = EasyMock.createMock(FBFormItem.class);
        EasyMock.replay(view, formItem);
        new EditionPresenter(view);
        bus.fireEvent(new FormItemSelectionEvent(formItem, false));
        EasyMock.verify(view, formItem);
    }
View Full Code Here

        super(FormBuilderGlobals.getInstance().getI18n().RemoveEffectLabel(), false);
    }
   
    @Override
    protected void createStyles() {
        getItem().fireSelectionEvent(new FormItemSelectionEvent(getItem(), false));
        Map<String, Object> dataSnapshot = new HashMap<String, Object>();
        dataSnapshot.put("itemParent", getItem().getParent());
        dataSnapshot.put("item", getItem());
        bus.fireEvent(new UndoableEvent(dataSnapshot, new UndoableHandler() {
            @Override
View Full Code Here

        super(FormBuilderGlobals.getInstance().getI18n().DoneEffectLabel(), false);
    }
   
    @Override
    protected void createStyles() {
        getItem().fireSelectionEvent(new FormItemSelectionEvent(getItem(), false));
    }
View Full Code Here

        });
    }

    private void makeEditor() {
        if (!getFormItemPropertiesMap().isEmpty() && !isAlreadyEditing()) {
            fireSelectionEvent(new FormItemSelectionEvent(this, true));
        }
        FBInplaceEditor inplaceEditor = createInplaceEditor();
        if (inplaceEditor != null && !isAlreadyEditing()) {
            auxiliarWidget = getWidget();
            clear();
View Full Code Here

    public void reset() {
        if (auxiliarWidget != null && !getEditor().isFocused()) {
            clear();
            add(auxiliarWidget);
            setAlreadyEditing(false);
            fireSelectionEvent(new FormItemSelectionEvent(this, false));
        }
    }
View Full Code Here

        sinkEvents(Event.ONMOUSEUP | Event.ONDBLCLICK | Event.ONCONTEXTMENU);
        addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                if (item != null) {
                    bus.fireEvent(new FormItemSelectionEvent(item, true));
                }
            }
        });
        add(panel);
        addRightClickHandler(new RightClickHandler() {
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.client.bus.FormItemSelectionEvent

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.