Package org.jbpm.formbuilder.client.form.items

Examples of org.jbpm.formbuilder.client.form.items.MIGLayoutFormItem


    }

    @Override
    protected void createStyles() {
        FBFormItem item = getItem();
        MIGLayoutFormItem container = getContainer(item);
       
        Map<String, Object> dataSnapshot = new HashMap<String, Object>();
        dataSnapshot.put("item", item);
        dataSnapshot.put("container", container);
        dataSnapshot.put("oldColspan", container.getColSpan(item));
        dataSnapshot.put("oldRowspan", container.getRowSpan(item));
        dataSnapshot.put("newColspan", colspan.getValue());
        dataSnapshot.put("newRowspan", rowspan.getValue());
        UndoableHandler rollbackHandler = new UndoableHandler() {
            @Override
            public void onEvent(UndoableEvent event) { }
            @Override
            public void doAction(UndoableEvent event) {
                Integer rowspan = (Integer) event.getData("newRowspan");
                Integer colspan = (Integer) event.getData("newColspan");
                MIGLayoutFormItem container = (MIGLayoutFormItem) event.getData("container");
                FBFormItem item = (FBFormItem) event.getData("item");
                container.setSpan(item, colspan, rowspan);
            }
            @Override
            public void undoAction(UndoableEvent event) {
                Integer rowspan = (Integer) event.getData("oldRowspan");
                Integer colspan = (Integer) event.getData("oldColspan");
                MIGLayoutFormItem container = (MIGLayoutFormItem) event.getData("container");
                FBFormItem item = (FBFormItem) event.getData("item");
                container.setSpan(item, colspan, rowspan);
            }
        };
        bus.fireEvent(new UndoableEvent(dataSnapshot, rollbackHandler));
        container.setSpan(item, colspan.getValue(), rowspan.getValue());
    }
View Full Code Here


    }
   
    @Override
    public PopupPanel createPanel() {
        FBFormItem item = getItem();
        MIGLayoutFormItem container = getContainer(item);
        colspan.setValue(container.getColSpan(item));
        rowspan.setValue(container.getRowSpan(item));
        final PopupPanel panel = new PopupPanel();
        Grid data = new Grid(3, 2);
        Button cancelButton = new Button(i18n.CancelButton(), new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
View Full Code Here

        return clone(new MIGLayoutMenuItem());
    }

    @Override
    public FBFormItem buildWidget() {
        return build(new MIGLayoutFormItem());
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formbuilder.client.form.items.MIGLayoutFormItem

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.