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

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

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

origin: com.google.gwt/gwt-servlet

if ("body".equals(getElement().getNodeName().toLowerCase(Locale.ROOT))) {
 return;
origin: org.geomajas/geomajas-client-gwt2-impl

/**
 * Clone a single SVG element.
 * 
 * @param source
 *            The source SVG element.
 * @return Returns the clone.
 */
private static Element clone(Element source) {
  if (source == null || source.getNodeName() == null) {
    return null;
  }
  if ("#text".equals(source.getNodeName())) {
    return Document.get().createTextNode(source.getNodeValue()).cast();
  }
  Element clone = createElementNS(Dom.NS_SVG, source.getNodeName());
  cloneAttributes(source, clone);
  for (int i = 0; i < source.getChildCount(); i++) {
    Element child = source.getChild(i).cast();
    clone.appendChild(clone(child));
  }
  return clone;
}
origin: org.geomajas/geomajas-gwt-client-impl

/**
 * Clone a single SVG element.
 * 
 * @param source
 *            The source SVG element.
 * @return Returns the clone.
 */
private static Element clone(Element source) {
  if (source == null || source.getNodeName() == null) {
    return null;
  }
  if ("#text".equals(source.getNodeName())) {
    return Document.get().createTextNode(source.getNodeValue()).cast();
  }
  Element clone = createElementNS(Dom.NS_SVG, source.getNodeName());
  cloneAttributes(source, clone);
  for (int i = 0; i < source.getChildCount(); i++) {
    Element child = source.getChild(i).cast();
    clone.appendChild(clone(child));
  }
  return clone;
}
origin: org.geomajas/geomajas-client-common-gwt

/**
 * Clone a single SVG element.
 * 
 * @param source
 *            The source SVG element.
 * @return Returns the clone.
 */
public Element cloneSvgElement(Element source) {
  if (source == null || source.getNodeName() == null) {
    return null;
  }
  if ("#text".equals(source.getNodeName())) {
    return Document.get().createTextNode(source.getNodeValue()).cast();
  }
  Element clone = createElementNS(Dom.NS_SVG, source.getNodeName(), Dom.createUniqueId());
  cloneAttributes(source, clone);
  for (int i = 0; i < source.getChildCount(); i++) {
    Element child = source.getChild(i).cast();
    clone.appendChild(cloneSvgElement(child));
  }
  return clone;
}
origin: org.overlord/overlord-commons-gwt

/**
 * @see com.google.gwt.user.client.ui.Panel#add(com.google.gwt.user.client.ui.Widget)
 */
@Override
public void add(Widget w) {
  if (w == null)
    throw new NullPointerException("Cannot add a null widget."); //$NON-NLS-1$
  w.removeFromParent();
  children.add(w);
  
  Element li;
  if (w.getElement().getNodeName().toLowerCase().equals("li")) { //$NON-NLS-1$
    // The widget is a list item.  Simply use it. 
    li = w.getElement();
  } else {
    // The widget needs wrapped with a list item.
    li = Document.get().createLIElement().cast();
    DOM.appendChild(li, w.getElement());
  }
  liMap.put(w, li);
  DOM.appendChild(getElement(), li);
  adopt(w);
}
origin: net.wetheinter/gwt-user

if ("body".equals(getElement().getNodeName().toLowerCase(Locale.ROOT))) {
 return;
origin: com.vaadin.external.gwt/gwt-user

if ("body".equals(StringCase.toLower(getElement().getNodeName()))) {
 return;
com.google.gwt.user.clientElementgetNodeName

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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Notification (javax.management)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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