goog.ui.IframeMask
Classgoog.ui.IframeMask
> goog.Disposable
goog.ui.IframeMask(opt_domHelper, opt_iframePool)
Controller for an iframe mask. The mask is only valid in the current document, or else the document of the given DOM helper.
opt_domHelper
{goog.dom.DomHelper
=}
opt_iframePool
{goog.structs.Pool
=}
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.applyMask()
Applies the iframe mask to the screen.
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
[protected]Removes the iframe from the DOM.
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.hideMask()
Removes the mask from the screen.
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.listenOnTarget(target, showEvent, hideEvent, opt_snapElement)
Listens on the specified target, hiding and showing the iframe mask when the given event types are dispatched.
target
{goog.events.EventTarget
}
showEvent
{string
}
hideEvent
{string
}
opt_snapElement
{Element
=}
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.removeHandlers()
Removes all handlers attached by listenOnTarget.
.setOpacity(opacity)
Sets the opacity of the mask. Will take effect the next time the mask is applied.
opacity
{number
}
.setSnapElement(snapElement)
Sets the element to use as the bounds of the mask. Takes effect immediately.
snapElement
{Element
}
.setZIndex(zIndex)
Sets the z-index of the mask. Will take effect the next time the mask is applied.
zIndex
{number
}