mixinafReflux::RefluxEvents

afReflux::RefluxEvents

@Js

(Events) - Events raised by Reflux.

To handle these events, just implement this mixin and override the methods you want! You also need to registry yourself with the EventHub. You can do this in the ctor:

class MyService : RefluxEvents {
    new make(EventHub eventHub) {
        eventHub.register(this)
    }

    override Void onLoad(Resource resource) { ... }
}

Note that instances of Panels, Views and GlobalCommands are automatically added to EventHub by default.

onError

Source

virtual Void onError(Error error)

onLoad

Source

virtual Void onLoad(Resource resource)

onLoadSession

Source

virtual Void onLoadSession(Str:Obj? session)

onPanelActivated

Source

virtual Void onPanelActivated(Panel panel)

onPanelDeactivated

Source

virtual Void onPanelDeactivated(Panel panel)

onPanelHidden

Source

virtual Void onPanelHidden(Panel panel)

onPanelModified

Source

virtual Void onPanelModified(Panel panel)

onPanelShown

Source

virtual Void onPanelShown(Panel panel)

onRefresh

Source

virtual Void onRefresh(Resource? resource)

onSaveSession

Source

virtual Void onSaveSession(Str:Obj? session)

onViewActivated

Source

virtual Void onViewActivated(View view)

onViewDeactivated

Source

virtual Void onViewDeactivated(View view)

onViewHidden

Source

virtual Void onViewHidden(View view)

onViewModified

Source

virtual Void onViewModified(View view)

onViewShown

Source

virtual Void onViewShown(View view)