@Override protected void onComplete() { contentContainer.getStyle().clearPosition(); contentContainer.getStyle().clearTop(); contentContainer.getStyle().clearWidth(); super.onComplete(); }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
/** * Removes a iframe cover * * @param iframe * The iframe element which has been covered */ private static void removeIframeCover(Element iframe) { Element coverContainer = iframeCoverMap.get(iframe); if (coverContainer != null) { Element parent = coverContainer.getParentElement().cast(); parent.replaceChild(iframe, coverContainer); iframe.getStyle().clearPosition(); iframeCoverMap.remove(iframe); } }
/** * Removes a iframe cover * * @param iframe * The iframe element which has been covered */ private static void removeIframeCover(Element iframe) { Element coverContainer = iframeCoverMap.get(iframe); if (coverContainer != null) { Element parent = coverContainer.getParentElement().cast(); parent.replaceChild(iframe, coverContainer); iframe.getStyle().clearPosition(); iframeCoverMap.remove(iframe); } }
@Override protected void onComplete() { contentContainer.getStyle().clearPosition(); contentContainer.getStyle().clearTop(); contentContainer.getStyle().clearWidth(); super.onComplete(); }
@Override protected void onComplete() { contentContainer.getStyle().clearPosition(); contentContainer.getStyle().clearTop(); contentContainer.getStyle().clearWidth(); super.onComplete(); }
private void expand() { container.removeFromParent(); container.getElement().getStyle().clearTop(); container.getElement().getStyle().clearPosition(); container.getElement().getStyle().clearZIndex(); masterContainer.add( container ); tip.setText( WorkbenchConstants.INSTANCE.collapseToolbar() ); tip.setPlacement( Placement.LEFT ); tip.setWidget( viewControl ); tip.reconfigure(); new ExpandAnimation().animate( 8, getOffsetWidth() - 1, 500 ); state = State.EXPANDED; }
private void expand() { container.removeFromParent(); container.getElement().getStyle().clearTop(); container.getElement().getStyle().clearPosition(); container.getElement().getStyle().clearZIndex(); masterContainer.add(container); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); tip.reconfigure(); new ExpandAnimation().animate(8, getOffsetWidth() - 1, 500); state = State.EXPANDED; }
private void expand() { container.removeFromParent(); container.getElement().getStyle().clearTop(); container.getElement().getStyle().clearPosition(); container.getElement().getStyle().clearZIndex(); masterContainer.add(container); tip.setTitle(WorkbenchConstants.INSTANCE.collapseToolbar()); tip.setPlacement(Placement.LEFT); tip.setWidget(viewControl); tip.reconfigure(); new ExpandAnimation().animate(8, getOffsetWidth() - 1, 500); state = State.EXPANDED; }
private void clearTraces() { Style style = textWidget.getElement().getStyle(); style.clearLeft(); style.clearTop(); style.clearPosition(); style.clearZIndex(); stretchControl.getStyle().clearTop(); stretchControl.getStyle().clearLeft(); stretchControl.getStyle().clearDisplay(); JQueryWrapper.select("." + STRETCHER_BASE).setCss("display", ""); }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
public void removeChild(Element container, Element child) { container.removeFromParent(); // We want this code to be resilient to the child having already been // removed from its container (perhaps by widget code). if (child.getParentElement() == container) { child.removeFromParent(); } // Cleanup child styles set by fillParent(). Style style = child.getStyle(); style.clearPosition(); style.clearLeft(); style.clearTop(); style.clearWidth(); style.clearHeight(); } }
/** * Put the node back into a clean state and clear fields. */ private void cleanup() { if (opening) { animFrame.getStyle().clearDisplay(); } else { animFrame.getStyle().setDisplay(Display.NONE); childContainer.setInnerHTML(""); } animFrame.getStyle().clearHeight(); animFrame.getStyle().clearPosition(); this.contentContainer = null; this.childContainer = null; this.animFrame = null; } }
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition(); style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); } }
private void clearElementStyle() { Element e = this.getElement(); Style style = e.getStyle(); style.clearPosition(); style.clearTop(); style.clearBottom(); style.clearWidth(); style.clearHeight(); style.clearZIndex(); e.getParentElement().getStyle().clearPaddingTop(); } }
public void init() { if (!isShowAsPanel()) { captionNode.setClassName(getStylePrimaryName() + "-caption"); contentNode.setClassName(getStylePrimaryName() + "-content"); bottomDecoration.setClassName(getStylePrimaryName() + "-deco"); expander.setClassName(getStylePrimaryName() + "-expander"); contentNode.getStyle().clearPosition(); setExpanded(true); captionStartDeco.appendChild(DOM.createDiv()); captionStartDeco.setClassName(getStylePrimaryName() + "-caption-start-deco"); captionWrap.insertFirst(captionStartDeco); captionEndDeco.appendChild(DOM.createDiv()); captionEndDeco.setClassName(getStylePrimaryName() + "-caption-end-deco"); captionWrap.appendChild(captionEndDeco); captionNode.insertFirst(expander); captionTextNode.setClassName(getStylePrimaryName() + "-caption-text"); DOM.sinkEvents(expander, Event.ONCLICK); DOM.sinkEvents(captionTextNode, Event.ONCLICK); } }