Examples of cloneItem()


Examples of org.jbpm.formapi.client.form.FBFormItem.cloneItem()

            public void doAction(UndoableEvent event) {
                FBFormItem item = (FBFormItem) event.getData("selectedItem");
                if (item == null) {
                    AbstractCopyPasteCommand.setMemory(null);
                } else {
                    AbstractCopyPasteCommand.setMemory(item.cloneItem());
                }
                CommonGlobals.getInstance().paste().enable();
            }
            @Override
            public void undoAction(UndoableEvent event) {
View Full Code Here

Examples of org.jbpm.formapi.client.form.FBFormItem.cloneItem()

            public void doAction(UndoableEvent event) {
                Widget itemToHold = (Widget) event.getData("itemToHold");
                Object obj = event.getData("memory");
                if (obj instanceof FBFormItem) {
                    FBFormItem itemToPaste = (FBFormItem) obj;
                    itemToPaste = itemToPaste.cloneItem();
                    if (itemToHold == null) {
                        getFormDisplay().add(itemToPaste);
                    } else {
                        if (itemToHold instanceof LayoutFormItem) {
                            LayoutFormItem parentPanel = (LayoutFormItem) itemToHold;
View Full Code Here

Examples of org.jbpm.formapi.client.form.FBFormItem.cloneItem()

                FBFormItem item = (FBFormItem) this.table.getWidget(row, column);
                if (item != null) {
                    clone.table.addCell(row);
                    int colspan = table.getFlexCellFormatter().getColSpan(row, column);
                    clone.table.getFlexCellFormatter().setColSpan(row, column, colspan);
                    clone.table.setWidget(row, column, item.cloneItem());
                }
            }
        }
        return clone;
    }
View Full Code Here

Examples of org.jbpm.formapi.client.form.FBFormItem.cloneItem()

            public void doAction(UndoableEvent event) {
                FBFormItem item = (FBFormItem) event.getData("selectedItem");
                if (item == null) {
                    AbstractCopyPasteCommand.setMemory(null);
                } else {
                    AbstractCopyPasteCommand.setMemory(item.cloneItem());
                    item.removeFromParent();
                }
                CommonGlobals.getInstance().paste().enable();
                bus.fireEvent(new FormItemRemovedEvent(item));
            }
View Full Code Here

Examples of org.jbpm.formapi.client.form.FBFormItem.cloneItem()

        for (int index = 0; index < clone.columns * clone.rows; index++) {
            int column = index%clone.columns;
            int row = index/clone.columns;
            FBFormItem item = (FBFormItem) this.grid.getWidget(row, column);
            if (item != null) {
                clone.grid.setWidget(row, column, item.cloneItem());
            }
        }
        List<FBFormItem> items = this.getItems();
        if (items != null) {
            for (FBFormItem item : items) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.