Class Index | File Index

Classes


Class Alfresco.util.Cursor

Helper class for setting the user mouse cursor and making sure its used the
same way in the whole application.

Use setCursor with the predefined state constants to set the cursor.
Each constant has a css selector in base.css where it can be styled
differently if needed.
Defined in: alfresco.js
Field Summary
Field Attributes Field Name and Description
<static>  
Alfresco.util.Cursor.DRAG
Show cursor in state to indicate that the current element is dragged.
<static>  
Alfresco.util.Cursor.DRAGGABLE
Show cursor in state to indicate that the current element is draggable.
<static>  
Alfresco.util.Cursor.DROP_INVALID
Show cursor in state to indicate that the element dragged over is NOT a valid drop point.
<static>  
Alfresco.util.Cursor.DROP_VALID
Show cursor in state to indicate that the element dragged over IS a valid drop point.
Method Summary
Method Attributes Method Name and Description
<static>  
Alfresco.util.Cursor.setCursorState(el, cursor)
Field Detail
<static> {string} Alfresco.util.Cursor.DRAG
Show cursor in state to indicate that the current element is dragged.
Styled through css selector ".drag" in base.css

<static> {string} Alfresco.util.Cursor.DRAGGABLE
Show cursor in state to indicate that the current element is draggable.
Styled through css selector ".draggable" in base.css

<static> {string} Alfresco.util.Cursor.DROP_INVALID
Show cursor in state to indicate that the element dragged over is NOT a valid drop point.
Styled through css selector ".dropInvalid" in base.css

<static> {string} Alfresco.util.Cursor.DROP_VALID
Show cursor in state to indicate that the element dragged over IS a valid drop point.
Styled through css selector ".dropValid" in base.css
Method Detail
<static> Alfresco.util.Cursor.setCursorState(el, cursor)
Parameters:
{HTMLElement} el
Object that is dragged and who's style affects the cursor
{string} cursor
Predifined constant from Alfresco.util.CURSOR_XXX

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:28 GMT-0000 (GMT)