*
* @param pinned true to pin the portlet so that it is not draggable.
*/
public void setPinned(boolean pinned) {
this.pinned = pinned;
Cursor c = pinned ? Cursor.DEFAULT : Cursor.MOVE;
getHeader().getElement().getStyle().setCursor(c);
if (getData("gxt.draggable") != null) {
Draggable d = (Draggable) getData("gxt.draggable");
d.setEnabled(!pinned);