The following tables list the members exposed by UIBehaviorsObject.
Name | Description | |
---|---|---|
UIBehaviorsObject Constructor |
Name | Description | |
---|---|---|
dispose | Disposes of any objects created by the behavior. | |
dragCancel | Handles the DragCancel event off the DragDropBehavior and passes the information to the control, if the control implements the __dragCancel method. | |
dragEnd | Handles the DragEnd event off the DragDropBehavior and passes the information to the control, if the control implements the __dragEnd method. | |
dragEnter | Handles the DragEnter event off the DragDropBehavior and passes the information to the control, if the control implements the __dragEnter method. | |
dragLeave | Handles the DragLeave event off the DragDropBehavior and passes the information to the control, if the control implements the __dragLeave method. | |
dragMove | Handles the DragMove event off the DragDropBehavior and passes the information to the control, if the control implements the __dragMove method. | |
dragStart | Handles the DragStart event off the DragDropBehavior and passes the information to the control, if the control implements the __dragStart method. | |
drop | Handles the Drop event off the DragDropBehavior and passes the information to the control, if the control implements the __drop method. | |
getItemFromElem | If there is an item asociated with the element, or a parent of the element, the item is returned. Otherwise null is returned. | |
getSelectedItems | Returns an array of all selected items. | |
handleEvent | Handles all targeted browser events that are being listened to on the control's root element. It then determines if it should cause a behavior to occur. It it concludes that a behavior should occur, then it raises the correct functionality. | |
hover | Calls the associated control's _shouldHover method first. If it returns true, or the control doesn't implement _shouldHover, then the _hoverItem method is called on the control with a parameter of true. | |
initElemAttr | Allows controls using UI behaviors to initialize element attributes if needed, for example when lazy loading of items is implemented. | |
select | If an item is selectable and enabled, it adds the item to it's internal selected items list, and calls the _selectItem method off of the associated control. | |
setDragDropNotification | Sets whether or not the control should be notified for each element that is dragged over in the control, or if it should just be notified the first time the mouse enters the control. | |
unhover | Calls the associated control's _shouldHover method first. If it returns true, or the control doesn't implement _shouldHover, then the _hoverItem method is called on the control with a parameter of false. | |
unSelectAll | Removes the item from the internal selected items list, and calls the _selectItem method off of the associated control, with a parameter of false |