All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.stjs.bridge.react.internal.ReactReconcileTransaction Maven / Gradle / Ivy

There is a newer version: 16.7.0.bv0
Show newest version
package org.stjs.bridge.react.internal;

/**
 * Currently:
 * - The order that these are listed in the transaction is critical:
 * - Suppresses events.
 * - Restores selection range.
 *
 * Future:
 * - Restore document/overflow scroll positions that were unintentionally
 * modified via DOM insertions above the top viewport boundary.
 * - Implement/integrate with customized constraint based layout system and keep
 * track of which dimensions must be remeasured.
 */
public class ReactReconcileTransaction extends Transaction {

    public enum TRANSACTION_WRAPPERS {
        PUT_LISTENER_QUEUEING, SELECTION_RESTORATION, EVENT_SUPPRESSION, ON_DOM_READY_QUEUEING
    }

    /**
     * @return {array} List of operation wrap proceedures.
     * TODO: convert to array
     */
    public native TRANSACTION_WRAPPERS getTransactionWrappers();

    /**
     * @return {object} The queue to collect `onDOMReady` callbacks with.
     */
    //TODO :: finish signature
    public native Object getReactMountReady();

    //TODO :: finish signature
    public native Object getPutListenerQueue();

    /**
     * `PooledClass` looks for this, and will invoke this before allowing this
     * instance to be reused.
     */
    public native void destructor();
}