Thanks.
I tried to implement you given example in eclipse Helios.
But i got errors in SortableCellDragAndDropHandler Class
Please guide to solve problems
1.$(draggedCell).css(CSS.DISPLAY.with(Display.NONE)); --- The method
with(Style.Display) is undefined for the type DisplayProperty
2.$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK)); ---- The
method with(Style.Display) is undefined for the type DisplayProperty
3.allCells.isEmpty() --- The method isEmpty() is undefined for the
type GQuery
public void onDragStart(DragStartEvent event) {
Element draggedCell = event.getDraggable();
$(draggedCell).css(CSS.DISPLAY.with(Display.NONE));
}
public void onDragStop(DragStopEvent event) {
Element draggedCell = event.getDraggable();
$(draggedCell).css(CSS.DISPLAY.with(Display.BLOCK));
}
if (allCells.isEmpty()) {
// no cells, the placeholder should just be added in the begin
of the cell
// list
return null;
}
Thanks
Jee
On May 30, 2:18 pm, Julien Dramaix <
julien.dram...@gmail.com> wrote:
> Yes you can...
> I wrote an example on how to use gwtquery drag-and-drop plugin for
> implementing re-ordering in CellList :
>
> Example :
http://julien-labs.googlecode.com/svn-history/r7/trunk/sortablecellwi...
>
> Java code :
http://code.google.com/p/julien-labs/source/browse/trunk/sortablecell...