![]() |
![]()
| ![]() |
![]()
NAMEReaction::UI::ViewPort::Action::Role::Apply - Integrate an Apply event into the ViewPort SYNOPSISpackage MyApp::UI::ViewPort::SomeAction; use Reaction::Class; use namespace::clean -except => 'meta'; extends 'Reaction::UI::ViewPort::Object::Mutable'; with 'Reaction::UI::ViewPort::Action::Role::Apply'; ... 1; DESCRIPTIONThis role integrates an "apply" event into the consuming viewport that will call the required "do_apply" role. REQUIRED METHODSdo_applyWill be called when an "apply" event comes in. ATTRIBUTESapply_labelDefaults to 'apply', returned by "_build_apply_label". on_apply_callbackCodeRef. Will be called after "apply" if "can_apply" and "do_apply" return true. See "apply" for argument details. METHODScan_applyReturns true by default. Determines if "do_apply" can be called. applyCalls a user-supplied "do_apply" and if it is successful runs the "on_apply_callback" passing $self and the result of "do_apply" as args. INTERNAL METHODS_build_apply_labelDefaults to "apply". SEE ALSOReaction::UI::ViewPort::Action::Role::Close Reaction::UI::ViewPort::Action::Role::OK AUTHORSSee Reaction::Class for authors. LICENSESee Reaction::Class for the license.
|