goog.Disposable | |
goog.fx.DragScrollSupport | goog.Disposable |
containerNode
: Element
A container that can be scrolled.
|
opt_margin
: number=
Optional margin to use while scrolling.
|
opt_externalMouseMoveTracking
: boolean=
Whether mouse move events
are tracked externally by the client object which calls the mouse move
event handler, useful when events are generated for more than one source
element and/or are not real mousemove events.
|
Calculates scroll delta.
Arguments:
Returns: number
The calculated scroll delta.
|
code » | ||||
Constrains the container bounds with respect to the margin.
Arguments:
Returns: goog.math.Rect
The bounding rectangle used to calculate scrolling
direction.
|
code » | ||||
![]()
No description.
|
code » | ||||
Gets whether the input coordinate is in the container bounds.
|
code » | ||||
![]()
Handler for mouse moves events.
Arguments:
|
code » | ||||
![]()
Handler for timer tick event, scrolls the container by one scroll step if
needed.
Arguments:
|
code » | ||||
![]()
Sets whether scrolling should be constrained to happen only when the cursor
is inside the container node.
NOTE: If a margin is not set, then it does not make sense to
contain the scroll, because in that case scroll will never be triggered.
Arguments:
|
code » | ||||
![]()
Sets whether horizontal scrolling is allowed.
Arguments:
|
code » | ||||
![]()
Attaches listeners and activates automatic scrolling.
Arguments:
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
Whether scrolling should be constrained to happen only when the cursor is
inside the container node.
|
Code » | |
![]()
No description.
|
Code » | |
The container bounds.
|
Code » | |
![]()
The container to be scrolled.
|
Code » | |
EventHandler used to set up and tear down listeners.
|
Code » | |
![]()
Whether horizontal scrolling is allowed.
|
Code » | |
![]()
The margin for triggering a scroll.
|
Code » | |
The bounding rectangle which if left triggers scrolling.
|
Code » | |
The current scroll delta.
|
Code » | |
Scroll timer that will scroll the container until it is stopped.
It will scroll when the mouse is outside the scrolling area of the
container.
|
Code » |
![]()
The suggested scrolling margin.
|
Code » | |
![]()
The scroll step in pixels.
|
Code » | |
![]()
The scroll timer step in ms.
|
Code » | |
![]()
No description.
|
Code » |