Example usage for com.google.gwt.query.client.js JsNodeArray create

List of usage examples for com.google.gwt.query.client.js JsNodeArray create

Introduction

In this page you can find the example usage for com.google.gwt.query.client.js JsNodeArray create.

Prototype

public static JsNodeArray create() 

Source Link

Usage

From source file:gwtquery.plugins.draggable.client.gwt.DraggableWidget.java

License:Apache License

/**
 * Define if this DragableWidget will snap to the edges of the other widget
 * when it is near an edge of these elements.
 *
 * @param snap//from  ww  w  . ja  v  a2  s .  c o  m
 */
public void setSnap(List<Widget> snapWidgets) {
    if (snapWidgets == null) {
        return;
    }
    JsNodeArray snapElements = JsNodeArray.create();
    for (Widget w : snapWidgets) {
        snapElements.addNode(w.getElement());
    }
    options.setSnap($(snapElements));
}

From source file:gwtquery.plugins.draggable.client.gwt.DraggableWidget.java

License:Apache License

/**
 * Controls the z-Index of the selected Widget during the dragging, always
 * brings to front the dragged item. Very useful in things like window
 * managers.//ww  w . j a v a2 s .com
 *
 * @param stack
 */
public void setStack(List<Widget> stackWidgets) {
    if (stackWidgets == null) {
        return;
    }
    JsNodeArray stackElements = JsNodeArray.create();
    for (Widget w : stackWidgets) {
        stackElements.addNode(w.getElement());
    }
    options.setStack($(stackElements));
}