draglistgroup.js
No description.

File Location

/goog/fx/draglistgroup.js

Classes

goog.fx.DragListGroup
A class representing a group of one or more "drag lists" with items that can be dragged within them and between them. Example usage: var dragListGroup = new goog.fx.DragListGroup(); dragListGroup.setDragItemHandleHoverClass(className1, className2); dragListGroup.setDraggerElClass(className3); dragListGroup.addDragList(vertList, goog.fx.DragListDirection.DOWN); dragListGroup.addDragList(horizList, goog.fx.DragListDirection.RIGHT); dragListGroup.init();
goog.fx.DragListGroupEvent
The event object dispatched by DragListGroup. The fields draggerElCenter, hoverList, and hoverNextItem are only available for the BEFOREDRAGMOVE and DRAGMOVE events.

Public Protected Private

Enumerations

Global Functions

goog.fx.DragListGroup.getBottomBound_(itemBounds) number
Private helper for getHoverNextItem_(). Given the bounds of an item, computes the item's bottom y-value.
Arguments:
itemBounds : goog.math.Rect
The bounds of the item.
Returns: number  The item's bottom y-value.
code »
goog.fx.DragListGroup.getLeftBound_(itemBounds) number
Private helper for getHoverNextItem_(). Given the bounds of an item, computes the item's left x-value.
Arguments:
itemBounds : goog.math.Rect
The bounds of the item.
Returns: number  The item's left x-value.
code »
goog.fx.DragListGroup.getRightBound_(itemBounds) number
Private helper for getHoverNextItem_(). Given the bounds of an item, computes the item's right x-value.
Arguments:
itemBounds : goog.math.Rect
The bounds of the item.
Returns: number  The item's right x-value.
code »
goog.fx.DragListGroup.isGreaterThan_(ab) boolean
Private helper for getHoverNextItem_().
Arguments:
a : number
Number to compare.
b : number
Number to compare.
Returns: boolean  Whether a is greater than b.
code »
goog.fx.DragListGroup.isLessThan_(ab) boolean
Private helper for getHoverNextItem_().
Arguments:
a : number
Number to compare.
b : number
Number to compare.
Returns: boolean  Whether a is less than b.
code »
goog.fx.DragListGroup.verticalDistanceFromItem_(itemtarget) number
Private helper for getHoverNextItem(). Given an item and a target determine the vertical distance from the item's center to the target.
Arguments:
item : Element
The item to measure the distance from.
target : goog.math.Coordinate
The (x,y) coordinate of the target to measure the distance to.
Returns: number  The vertical distance between the center of the item and the target.
code »

Directory fx

File Reference