* @param portlet the portlet to add
* @param index the insert index
* @param column the column to insert into
*/
public void insert(Portlet portlet, int index, int column) {
Draggable d = portlet.getData("gxt.draggable");
if (d == null) {
d = new Draggable(portlet, portlet.getHeader());
d.setConstrainClient(false);
portlet.setData("gxt.draggable", d);
}
d.setUseProxy(true);
HandlerRegistration reg = handlerRegistrations.get(portlet.getId());
if (reg != null) {
reg.removeHandler();
}
d.addDragHandler(handler);
d.setMoveAfterProxyDrag(false);
d.setSizeProxyToSource(true);
d.setEnabled(!portlet.isPinned());
getWidget(column).insert(portlet, index, new VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0)));
getWidget(column).forceLayout();
}