goog.Disposable | |
goog.ui.ContainerScroller | goog.Disposable |
container
: !goog.ui.Container
The container to attach behavior to.
|
![]()
No description.
|
code » | ||
![]()
Centers the currently highlighted item, if this is scrollable.
Arguments:
|
code » | ||
![]()
Handles AFTER_SHOW events on the container. Makes the container
scroll to the previously scrolled position (if there was one),
then adjust it to make the highlighted element be in view (if there is one).
If there was no previous scroll position, then center the highlighted
element (if there is one).
Arguments:
|
code » | ||
![]()
Handles hover events on the container's children.
Helps enforce two constraints: scrolling should not cause mouse highlights,
and mouse highlights should not cause scrolling.
Arguments:
|
code » | ||
![]()
Handles hide events on the container. Clears out the last enter target,
since it is no longer applicable, and remembers the scroll position of
the menu so that it can be restored when the menu is reopened.
Arguments:
|
code » | ||
![]()
Handles highlight events on the container's children.
Arguments:
|
code » | ||
![]()
Temporarily disables hover events from changing highlight.
|
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 » |
![]()
No description.
|
Code » | |
The container that we are bestowing scroll behavior on.
|
Code » | |
![]()
Whether we are disabling the default handler for hovering.
|
Code » | |
Event handler for this object.
|
Code » | |
The last target the user hovered over.
|
Code » | |
![]()
The scrollTop of the container before it was hidden.
Used to restore the scroll position when the container is shown again.
|
Code » |
![]()
No description.
|
Code » |