Author: abelevich
Date: 2007-12-18 10:58:30 -0500 (Tue, 18 Dec 2007)
New Revision: 4897
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
add grab, grabbing, drop cursors
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
---
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-12-18
15:23:16 UTC (rev 4896)
+++
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-12-18
15:58:30 UTC (rev 4897)
@@ -31,6 +31,18 @@
this.eventSelectionClick = this.toggleSelection.bindAsEventListener(this);
this.eventMouseOut = this.processMouseOut.bindAsEventListener(this);
this.eventMouseOver = this.processMouseOver.bindAsEventListener(this);
+
+ var dragOpts = this.getDraggableOptions();
+ if(dragOpts) {
+ this.enableDraggableCursors(dragOpts.grab, dragOpts.grabbing);
+ }
+
+ var dropOpts = this.getDropzoneOptions();;
+ if (dropOpts) {
+ this.enableDropzoneCursors(dropOpts.acceptCursor, dropOpts.rejectCursor);
+ }
+
+
this.observeEvents(element);
},
@@ -404,5 +416,9 @@
hasChilds: function() {
return this.childs.length > 0;
+ },
+
+ getElement: function() {
+ return $(this.id);
}
}
Show replies by date