Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.HasOneWidget


                    } else {
                        if (itemToHold instanceof LayoutFormItem) {
                            LayoutFormItem parentPanel = (LayoutFormItem) itemToHold;
                            parentPanel.add(itemToPaste);
                        } else if (itemToHold instanceof HasOneWidget) {
                            HasOneWidget parentPanel = (HasOneWidget) itemToHold;
                            parentPanel.setWidget(itemToPaste);
                        } else if (itemToHold instanceof HasWidgets) {
                            HasWidgets parentPanel = (HasWidgets) itemToHold;
                            parentPanel.add(itemToPaste);
                        }
                    }
                    bus.fireEvent(new FormItemAddedEvent(itemToPaste, itemToHold == null ? getFormDisplay() : itemToHold));
                }
            }
View Full Code Here


                CommonGlobals.getInstance().paste().enable();
                if (oldParent instanceof HasWidgets) {
                    HasWidgets oldParentPanel = (HasWidgets) oldParent;
                    oldParentPanel.add(item);
                } else if (oldParent instanceof HasOneWidget) {
                    HasOneWidget oldParentPanel = (HasOneWidget) oldParent;
                    oldParentPanel.setWidget(item);
                }
                bus.fireEvent(new FormItemAddedEvent(item, oldParent));
            }
            @Override
            public void onEvent(UndoableEvent event) { }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HasOneWidget

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.