public void remove() { if (returned != null) { SimplePanel.this.remove(returned); } } };
/** * Removes the specified widget, although in practice the specified widget * must be the content widget. * * @param w the widget to remove; note that anything other than the Widget * returned by {@link #getContentWidget()} will have no effect */ public boolean remove(Widget w) { return ((SimplePanel) getWidget()).remove(w); }
@Override public boolean remove(Widget w) { /* * Removal of items from the TabBar is delegated to the TabLayoutPanel to * ensure consistency. */ int index = tabs.indexOf(this); if (replacingWidget || index < 0) { /* * The tab contents are being replaced, or this tab is no longer in the * panel, so just remove the widget. */ return super.remove(w); } else { // Delegate to the TabLayoutPanel. return TabLayoutPanel.this.remove(index); } }
/** * Sets this panel's widget. Any existing child widget will be removed. * * @param w the panel's new widget, or <code>null</code> to clear the panel */ public void setWidget(Widget w) { // Validate if (w == widget) { return; } // Detach new child. if (w != null) { w.removeFromParent(); } // Remove old child. if (widget != null) { remove(widget); } // Logical attach. widget = w; if (w != null) { // Physical attach. DOM.appendChild(getContainerElement(), widget.getElement()); adopt(w); } }
@Override public boolean remove(Widget w) { if (w == scroller) { scroller = null; return wrapper.remove(w); } return false; }
@Override public boolean remove(Widget w) { if (w == scroller) { scroller = null; return wrapper.remove(w); } return false; }
public void remove() { if (returned != null) { SimplePanel.this.remove(returned); } } };
public void remove() { if (returned != null) { SimplePanel.this.remove(returned); } } };
@Override public boolean remove(Widget w) { return widgetContainer.remove(w); }
@Override public boolean remove(Widget w) { return widgetContainer.remove(w); }
/** * Removes the specified widget, although in practice the specified widget * must be the content widget. * * @param w the widget to remove; note that anything other than the Widget * returned by {@link #getContentWidget()} will have no effect */ public boolean remove(Widget w) { return ((SimplePanel) getWidget()).remove(w); }
/** * Removes the specified widget, although in practice the specified widget * must be the content widget. * * @param w the widget to remove; note that anything other than the Widget * returned by {@link #getContentWidget()} will have no effect */ public boolean remove(Widget w) { return ((SimplePanel) getWidget()).remove(w); }
@Override public boolean remove(Widget w) { /* * Removal of items from the TabBar is delegated to the TabLayoutPanel to * ensure consistency. */ int index = tabs.indexOf(this); if (replacingWidget || index < 0) { /* * The tab contents are being replaced, or this tab is no longer in the * panel, so just remove the widget. */ return super.remove(w); } else { // Delegate to the TabLayoutPanel. return TabLayoutPanel.this.remove(index); } }
@Override public boolean remove(Widget w) { /* * Removal of items from the TabBar is delegated to the TabLayoutPanel to * ensure consistency. */ int index = tabs.indexOf(this); if (replacingWidget || index < 0) { /* * The tab contents are being replaced, or this tab is no longer in the * panel, so just remove the widget. */ return super.remove(w); } else { // Delegate to the TabLayoutPanel. return TabLayoutPanel.this.remove(index); } }
public void init(String imageUrl, int canvasWidth, int canvasHeight, double aspectRatio) { if (image != null) super.remove(image); this.canvasWidth = canvasWidth; this.canvasHeight = canvasHeight; image = new Image(imageUrl); image.getElement().getStyle().setPosition(Position.ABSOLUTE); add(image); }
public void hide() { final Widget w = panel.getWidget(); if ( w != null ) { panel.remove( w ); } final RootPanel root = RootPanel.get(); // Not sure if this will ever happen if ( root != null ) { root.remove( this ); } alreadyShowing = false; }
/** * For internal usage only. * GWTCropper initializes this widget, after * image will be loaded and all the dimensions will be known * * @param imageUrl - image URL for preview * @param canvasWidth * @param canvasHeight * @param aspectRatio */ public void init(String imageUrl, int canvasWidth, int canvasHeight, double aspectRatio) { if (embeddedImage != null) super.remove(embeddedImage); this.embeddedImage = new Image(imageUrl); this.cropCanvasWidth = canvasWidth; this.cropCanvasHeight = canvasHeight; this.isSquare = (aspectRatio == 1); if (this.isSquare) { if (0 == this.width) this.width = this.height; if (0 == this.height) this.height = this.width; } this.setImageStyleProperty(); add(embeddedImage); }
/** * Sets this panel's widget. Any existing child widget will be removed. * * @param w the panel's new widget, or <code>null</code> to clear the panel */ public void setWidget(Widget w) { // Validate if (w == widget) { return; } // Detach new child. if (w != null) { w.removeFromParent(); } // Remove old child. if (widget != null) { remove(widget); } // Logical attach. widget = w; if (w != null) { // Physical attach. DOM.appendChild(getContainerElement(), widget.getElement()); adopt(w); } }
/** * Sets this panel's widget. Any existing child widget will be removed. * * @param w the panel's new widget, or <code>null</code> to clear the panel */ public void setWidget(Widget w) { // Validate if (w == widget) { return; } // Detach new child. if (w != null) { w.removeFromParent(); } // Remove old child. if (widget != null) { remove(widget); } // Logical attach. widget = w; if (w != null) { // Physical attach. DOM.appendChild(getContainerElement(), widget.getElement()); adopt(w); } }