Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.Element.appendChild()


                VConsole.error("Could not determine ApplicationConnection for current drag operation. The drag image will likely look broken");
                dragImageParent = RootPanel.getBodyElement();
            } else {
                dragImageParent = VOverlay.getOverlayContainer(connection);
            }
            dragImageParent.appendChild(dragElement);
        }

    }

    private Command deferredCommand;
View Full Code Here


                slot.setStyleName("v-datecellslot-even");
            } else {
                slot.setStyleName("v-datecellslot");
            }
            Event.sinkEvents(slot.getElement(), Event.MOUSEEVENTS);
            mainElement.appendChild(slot.getElement());
            slotElements[i] = slot.getElement();
            slots.add(slot);
            start = end;
            end = start + slotTime;
        }
View Full Code Here

            down.setInnerHTML("<span>Next</span>");
            DOM.sinkEvents(down, Event.ONCLICK);

            root.insertFirst(up);
            root.appendChild(down);
            root.appendChild(status);

            DOM.sinkEvents(root, Event.ONMOUSEDOWN | Event.ONMOUSEWHEEL);
            addCloseHandler(this);
View Full Code Here

            down.setInnerHTML("<span>Next</span>");
            DOM.sinkEvents(down, Event.ONCLICK);

            root.insertFirst(up);
            root.appendChild(down);
            root.appendChild(status);

            DOM.sinkEvents(root, Event.ONMOUSEDOWN | Event.ONMOUSEWHEEL);
            addCloseHandler(this);

            Roles.getListRole().set(getElement());
View Full Code Here

        if (dragStartMode == HTML5) {
            if (anchor == null) {
                anchor = Document.get().createAnchorElement();
                anchor.setHref("#");
                anchor.setClassName("drag-start");
                div.appendChild(anchor);
            }
            VConsole.log("IE get drag start element...");
            return anchor.cast();
        } else {
            if (anchor != null) {
View Full Code Here

                td.appendChild(container);
                getElement().appendChild(td);
                // ensure widget not attached to another element (possible tBody
                // change)
                w.removeFromParent();
                container.appendChild(w.getElement());
                adopt(w);
                childWidgets.add(w);
            }

            @Override
View Full Code Here

   
    if(jid!=null&&!jid.toString().isEmpty())
      e.setAttribute("jid", jid.toString());
   
    if(reason!=null&&!reason.isEmpty())
      e.appendChild(DOMHelper.textTag(doc, "reason", reason));
   
    switch (affiliation)
    {
    case NoAffiliation:
      e.setAttribute("affiliation","none");
View Full Code Here

      item.setAttribute("name", name);
    if(groups != null)
    {
      for(String group:groups)
      {
        item.appendChild(DOMHelper.textTag(iq.getDoc(), "group", group));
      }
    }
    send(iq);
  }
 
View Full Code Here

    iq.setIQ(null, XmppQuery.TYPE_SET, id());
    Element query = iq.setQuery("jabber:iq:private");
    Element prefsElement = iq.getDoc().createElement("ijab");
    prefsElement.setAttribute("xmlns", "ijab:prefs");
   
    prefsElement.appendChild(DOMHelper.textTag(iq.getDoc(), "showOnlineOnly", TextUtils.bool2str(iJabPrefs.instance().showOnlineOnly)));
   
    query.appendChild(prefsElement);
    send(iq);
  }
View Full Code Here

{
  static public Element textTag(final XmlDocument doc,final String name,final String content)
  {
    Element group = doc.createElement(name);
    Node textNode = doc.createTextNode(content);
    group.appendChild(textNode);
    return group;
  }
 
  static public Element emptyTag(final XmlDocument doc,final String name)
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.