public final class SacSetter extends CoalescingSchedulerS implements Scheduler.ScheduledCommand, ValueChangeHandler<String>
SacSelection.aSacSwitch()
CoalescingSchedulerS.Phaser
CoalescingScheduler.Tester
DEFERRED, ENTRY, FINALLY
Constructor and Description |
---|
SacSetter(SacSelection _sacSelection,
CoalescingSchedulerS.Phaser _phaser,
CoalescingSchedulerS.Phaser eventsPhaser)
Constructs the SacSetter for a given selection model.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Synchronizes the superaccount setting from the 'a' switch, and schedules a
selection change event for any state change that results.
|
void |
onValueChange(ValueChangeEvent<String> _e) |
SacJS |
sac()
The superaccount that is currently set, which is also to be used as the return
value in the implementation of SacSelection.
|
command, init, phaser, schedule
baseScheduler
public SacSetter(SacSelection _sacSelection, CoalescingSchedulerS.Phaser _phaser, CoalescingSchedulerS.Phaser eventsPhaser)
_sacSelection
- the superaccount selection model in which this controller
operates. This is also the source for all events._phaser
- the scheduling phaser for state changes, which is exposed as
phaser().eventsPhaser
- the scheduling phaser for the dispatch of events
consequent on state changes.public SacJS sac()
public void execute()
execute
in interface Scheduler.ScheduledCommand
public void onValueChange(ValueChangeEvent<String> _e)
onValueChange
in interface ValueChangeHandler<String>