@JsType(namespace="xgl")
public interface ReflowScheduler<T extends ReflowScheduler<T>>
ReflowScheduler provides a convenient access to core Presto methods to instances of a class, without having to prefix the invocations with "Presto." or to import statically the methods.
Widget
Modifier and Type | Method and Description |
---|---|
default T |
cancelMeasure(Measure measure)
Cancels a measure scheduled in the next Presto's cycle.
|
default T |
cancelMutation(Mutation mutation)
Cancels a mutation scheduled in the next Presto's cycle.
|
default T |
measureAsSoonAsPossible(Measure measure)
Runs a measure as soon as possible, which means that if the scheduler is in
the
Presto.State.MEASURING state, the measure is run immediately. |
default T |
mutateAsSoonAsPossible(Mutation mutation)
Runs a mutation as soon as possible, which means that if the scheduler is in
the
Presto.State.MEASURING or Presto.State.MUTATING state, the mutation is
run in the current cycle. |
default T |
mutateAsSoonAsPossible(Mutation mutation,
boolean attached)
If the widget is attached to the DOM, runs a mutation as soon as possible, which means that if the scheduler is in
the
Presto.State.MEASURING or Presto.State.MUTATING state, the mutation is
run in the current cycle. |
default T |
scheduleMeasure(Measure measure)
Runs a measure in next Presto's cycle.
|
default T |
scheduleMutation(Mutation mutation)
Runs a mutation in the next Presto's cycle.
|
default T measureAsSoonAsPossible(Measure measure)
Presto.State.MEASURING
state, the measure is run immediately.measure
- the measure to perform as soon as possible@JsIgnore default T mutateAsSoonAsPossible(Mutation mutation)
Presto.State.MEASURING
or Presto.State.MUTATING
state, the mutation is
run in the current cycle. It should never be used when a measure is needed
to perform a mutation. The measure may or may not be performed when the
mutation is performed.mutation
- the mutation to perform as soon as possible@JsIgnore default T mutateAsSoonAsPossible(Mutation mutation, boolean attached)
If the widget is attached to the DOM, runs a mutation as soon as possible, which means that if the scheduler is in
the Presto.State.MEASURING
or Presto.State.MUTATING
state, the mutation is
run in the current cycle.
If the widget is not attached to the DOM, the mutation is performed synchronously.
It should never be used when a measure is needed to perform a mutation. The measure may or may not be performed when the mutation is performed.
mutation
- the mutation to perform as soon as possibleattached
- True if the widget is attached to the DOM, false otherwisedefault T scheduleMeasure(Measure measure)
measure
- the measure to perform during the next cycledefault T scheduleMutation(Mutation mutation)
Runs a mutation in the next Presto's cycle.
Note: Mutations are performed after all scheduled measures are executed.
mutation
- the mutation to perform during the next cycledefault T cancelMeasure(Measure measure)
Cancels a measure scheduled in the next Presto's cycle.
measure
- the measure to cancelCopyright © 2018 Xalys. All rights reserved.