/** * Add a new Widget as a child to this uiObject. This implementation just calls * {@link ForIsWidget#add(IsWidget)} or * {@link HasWidgets#add(com.google.gwt.user.client.ui.Widget)} according to which interface the * wrapped uiObject is implementing. * * @param wrapped The wrapped uiObject of this tag. * @param isWidget The child widget to be added. */ protected void addWidget(T wrapped, IsWidget isWidget) { if (ForIsWidget.class.isInstance(wrapped)) { ((ForIsWidget) wrapped).add(isWidget); } else if (HasWidgets.class.isInstance(wrapped)) { ((HasWidgets) wrapped).add(isWidget.asWidget()); } }
/** * Add a new Widget as a child to this uiObject. This implementation just calls * {@link ForIsWidget#add(IsWidget)} or * {@link HasWidgets#add(com.google.gwt.user.client.ui.Widget)} according to which interface the * wrapped uiObject is implementing. * * @param wrapped The wrapped uiObject of this tag. * @param isWidget The child widget to be added. */ protected void addWidget(T wrapped, IsWidget isWidget) { if (ForIsWidget.class.isInstance(wrapped)) { ((ForIsWidget) wrapped).add(isWidget); } else if (HasWidgets.class.isInstance(wrapped)) { ((HasWidgets) wrapped).add(isWidget.asWidget()); } }
/** * Set the widget into which the content for this pop-over will be put while the pop-over is NOT visible. The * content will be set to invisible so it will not interfere with the layout of the container. This needs to be * called BEFORE addContent otherwise the content will never get attached to the DOM. */ public void setContainer(ForIsWidget container) { container.add(this.contentContainer); }
public static <T extends HasWidgets.ForIsWidget> T addIn( T parent, IsWidget... children ) { for( IsWidget widget : children ) parent.add( widget ); return parent; }
public static <T extends HasWidgets.ForIsWidget> T addIn( T parent, IsWidget... children ) { for( IsWidget widget : children ) parent.add( widget ); return parent; }