Tabnine Logo
Element.replaceChild
Code IndexAdd Tabnine to your IDE (free)

How to use
replaceChild
method
in
com.google.gwt.user.client.Element

Best Java code snippets using com.google.gwt.user.client.Element.replaceChild (Showing top 14 results out of 315)

origin: com.google.gwt/gwt-servlet

getElement().replaceChild(newInputElem, inputElem);
origin: org.vaadin.addons/dragdroplayouts

/**
 * 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);
  }
}
origin: com.haulmont.cuba/cuba-web-toolkit

/**
 * 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);
  }
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

public MessageBubbleWidget(String primaryStyleName) {
  super();
  setStyleName(primaryStyleName + "-inline");
  messageWrapper.addClassName(primaryStyleName);
  triangleSVG.addStyleName("triangle");
  compositeIcon.setStyleName("composite-icon");
  compositeIcon.addStyleName("message-bubble-icon");
  compositeIcon.getElement().getStyle().setProperty("lineHeight", "1.4");
  messageWrapper.replaceChild(compositeIcon.getElement(), icon);
  messageEl.getStyle().setDisplay(Style.Display.BLOCK);
  messageEl.getStyle().setMarginLeft(30, Style.Unit.PX);
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * Sets whether the Alert has a close icon or not.
 *
 * @param hasClose <code>false</code> if you don't want to have a close icon.
 *                 Default: <code>true</code>
 */
public void setClose(boolean hasClose) {
  this.hasClose = hasClose;
  if (!isAttached()) {
    return;
  }
  if (hasClose) {
    if (close == null) {
      close = new Close(DismissType.ALERT);
      getElement().replaceChild(close.getElement(), closeReplacement.getElement());
    }
  } else {
    if (close != null) {
      getElement().replaceChild(closeReplacement.getElement(), close.getElement());
      close = null;
    }
  }
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

public void setIcon(Icon icon) {
  if (icon == null) {
    if (this.icon != null) {
      getElement().removeChild(this.icon.getElement());
    }
  } else if (this.icon != null) {
    getElement()
        .replaceChild(this.icon.getElement(), icon.getElement());
  } else {
    getElement().insertFirst(icon.getElement());
  }
  this.icon = icon;
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

getBody().replaceChild( tre,
            rowHeaders[ iRow ] );
rowHeaders[ iRow ] = tre;
origin: kiegroup/drools-wb

getBody().replaceChild( tre,
            headerRows[ iRow ] );
headerRows[ iRow ] = tre;
origin: com.vaadin.external.gwt/gwt-user

getElement().replaceChild(newInputElem, inputElem);
origin: net.wetheinter/gwt-user

getElement().replaceChild(newInputElem, inputElem);
origin: com.googlecode.mgwt/mgwt

private void replaceInputElement(Element elem) {
 InputElement newInputElem = InputElement.as(elem);
 // Collect information we need to set
 boolean checked = getValue();
 boolean enabled = isEnabled();
 String formValue = getFormValue();
 String uid = inputRadio.getId();
 String accessKey = inputRadio.getAccessKey();
 int sunkEvents = Event.getEventsSunk(inputRadio);
 // Clear out the old input element
 DOM.setEventListener(inputRadio, null);
 getElement().replaceChild(newInputElem, inputRadio);
 // Sink events on the new element
 Event.sinkEvents(elem, Event.getEventsSunk(inputRadio));
 Event.sinkEvents(inputRadio, 0);
 inputRadio = newInputElem;
 // Setup the new element
 Event.sinkEvents(inputRadio, sunkEvents);
 inputRadio.setId(uid);
 if (!"".equals(accessKey)) {
  inputRadio.setAccessKey(accessKey);
 }
 setValue(checked);
 setEnabled(enabled);
 setFormValue(formValue);
 // Set the event listener
 if (isAttached()) {
  DOM.setEventListener(inputRadio, this);
 }
}
origin: dankurka/mgwt

private void replaceInputElement(Element elem) {
 InputElement newInputElem = InputElement.as(elem);
 // Collect information we need to set
 boolean checked = getValue();
 boolean enabled = isEnabled();
 String formValue = getFormValue();
 String uid = inputRadio.getId();
 String accessKey = inputRadio.getAccessKey();
 int sunkEvents = Event.getEventsSunk(inputRadio);
 // Clear out the old input element
 DOM.setEventListener(inputRadio, null);
 getElement().replaceChild(newInputElem, inputRadio);
 // Sink events on the new element
 Event.sinkEvents(elem, Event.getEventsSunk(inputRadio));
 Event.sinkEvents(inputRadio, 0);
 inputRadio = newInputElem;
 // Setup the new element
 Event.sinkEvents(inputRadio, sunkEvents);
 inputRadio.setId(uid);
 if (!"".equals(accessKey)) {
  inputRadio.setAccessKey(accessKey);
 }
 setValue(checked);
 setEnabled(enabled);
 setFormValue(formValue);
 // Set the event listener
 if (isAttached()) {
  DOM.setEventListener(inputRadio, this);
 }
}
origin: com.extjs/gxt

private void replaceInputElement(Element elem) {
 InputElement newInputElem = InputElement.as(elem);
 int tabIndex = getTabIndex();
 boolean checked = getValue();
 boolean enabled = isEnabled();
 String uid = input.getId();
 String accessKey = InputElement.as(input.dom).getAccessKey();
 int sunkEvents = Event.getEventsSunk(input.dom);
 String styleName = input.getStyleName();
 String valueAttribute = getValueAttribute();
 getElement().replaceChild(newInputElem, input.dom);
 Event.sinkEvents(elem, 0);
 input = new El((Element) Element.as(newInputElem));
 input.makePositionable();
 Event.sinkEvents(input.dom, sunkEvents);
 input.setId(uid);
 if (!"".equals(accessKey)) {
  InputElement.as(input.dom).setAccessKey(accessKey);
 }
 setTabIndex(tabIndex);
 setValueAttribute(valueAttribute);
 setValue(checked);
 setEnabled(enabled);
 input.setStyleName(styleName);
}
origin: gwtbootstrap/gwt-bootstrap

getElement().replaceChild(newInputElem, inputElem);
com.google.gwt.user.clientElementreplaceChild

Popular methods of Element

  • getStyle
  • setAttribute
  • appendChild
  • setId
  • getParentElement
  • cast
  • setInnerText
  • getId
  • setInnerHTML
  • addClassName
  • getAttribute
  • getInnerHTML
  • getAttribute,
  • getInnerHTML,
  • getFirstChildElement,
  • getInnerText,
  • getClientWidth,
  • removeChild,
  • getChildCount,
  • getOffsetHeight,
  • removeAttribute,
  • removeClassName

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now