Version

UIBehaviorsObject class Members

The following tables list the members exposed by UIBehaviorsObject.

Public Constructors
 NameDescription
Public ConstructorUIBehaviorsObject Constructor  
Public Methods
 NameDescription
Public MethoddisposeDisposes of any objects created by the behavior.  
Public MethoddragCancelHandles the DragCancel event off the DragDropBehavior and passes the information to the control, if the control implements the __dragCancel method.  
Public MethoddragEndHandles the DragEnd event off the DragDropBehavior and passes the information to the control, if the control implements the __dragEnd method.  
Public MethoddragEnterHandles the DragEnter event off the DragDropBehavior and passes the information to the control, if the control implements the __dragEnter method.  
Public MethoddragLeaveHandles the DragLeave event off the DragDropBehavior and passes the information to the control, if the control implements the __dragLeave method.  
Public MethoddragMoveHandles the DragMove event off the DragDropBehavior and passes the information to the control, if the control implements the __dragMove method.  
Public MethoddragStartHandles the DragStart event off the DragDropBehavior and passes the information to the control, if the control implements the __dragStart method.  
Public MethoddropHandles the Drop event off the DragDropBehavior and passes the information to the control, if the control implements the __drop method.  
Public MethodgetItemFromElemIf there is an item asociated with the element, or a parent of the element, the item is returned. Otherwise null is returned.  
Public MethodgetSelectedItemsReturns an array of all selected items.  
Public MethodhandleEventHandles 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.  
Public MethodhoverCalls 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.  
Public MethodinitElemAttrAllows controls using UI behaviors to initialize element attributes if needed, for example when lazy loading of items is implemented.  
Public MethodselectIf 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.  
Public MethodsetDragDropNotificationSets 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.  
Public MethodunhoverCalls 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.  
Public MethodunSelectAllRemoves the item from the internal selected items list, and calls the _selectItem method off of the associated control, with a parameter of false  
See Also