public class MutationObserver
extends com.google.gwt.core.client.JavaScriptObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
MutationObserver.Callback
Define an handler for mutations observed.
|
static interface |
MutationObserver.LoadCallback
Interface used to load a new MutationObserver object.
|
static class |
MutationObserver.MutationRecord
MutationRecord is the object that will be passed to the observer's callback.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MutationObserver()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static MutationObserver |
create(MutationObserver.Callback callback) |
void |
disconnect()
Stops the MutationObserver instance from receiving notifications of DOM mutations.
|
static boolean |
isSupported()
Verify if the current browser supports the MutationObserver API.
|
static void |
load(MutationObserver.Callback callback,
MutationObserver.LoadCallback loadCallback)
If current browser supports the MutationObserver API, create a new Observer.
|
void |
observe(com.google.gwt.dom.client.Node node,
boolean children,
boolean attributes,
boolean characterData)
Observe the given node for modifications
Adding an observer to an element is just like addEventListener, if you observe the element
multiple times it does not make a difference.
|
void |
observeAttributes(com.google.gwt.dom.client.Node node)
Observe the given node for modifications on its attributes.
|
void |
observeChildren(com.google.gwt.dom.client.Node node)
Observe the given node for modifications on its children.
|
public final void disconnect()
public final void observe(com.google.gwt.dom.client.Node node,
boolean children,
boolean attributes,
boolean characterData)
node - the node to be monitored.children - if true, start monitoring changes on children list.attributes - if true, start monitoring changes on node attributes.characterData - if true, start monitoring changes on node data.public final void observeAttributes(com.google.gwt.dom.client.Node node)
node - the node to be monitored.public final void observeChildren(com.google.gwt.dom.client.Node node)
node - the node to be monitored.public static boolean isSupported()
public static void load(MutationObserver.Callback callback, MutationObserver.LoadCallback loadCallback)
callback - A handler for the mutations.protected static MutationObserver create(MutationObserver.Callback callback)
Copyright © 2015. All rights reserved.