Codota Logo
Element.getNodeName
Code IndexAdd Codota 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)

  • Common ways to obtain Element
private void myMethod () {
Element e =
  • Codota IconDOM.createDiv()
  • Codota IconDOM.createTR()
  • Codota IconDOM.createTable()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now