List of usage examples for com.google.gwt.query.client.js JsNodeArray addNode
public final void addNode(Node n)
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/*w ww . j av a2s .com*/ */ 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.//from w ww .j a v a 2s . c om * * @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)); }