GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Reaction::UI::ViewPort::Action::Role::Apply(3) User Contributed Perl Documentation Reaction::UI::ViewPort::Action::Role::Apply(3)

Reaction::UI::ViewPort::Action::Role::Apply - Integrate an Apply event into the ViewPort

  package 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;

This role integrates an "apply" event into the consuming viewport that will call the required "do_apply" role.

Will be called when an "apply" event comes in.

Defaults to 'apply', returned by "_build_apply_label".

CodeRef. Will be called after "apply" if "can_apply" and "do_apply" return true. See "apply" for argument details.

Returns true by default. Determines if "do_apply" can be called.

Calls 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.

Defaults to "apply".

Reaction::UI::ViewPort::Action::Role::Close

Reaction::UI::ViewPort::Action::Role::OK

See Reaction::Class for authors.

See Reaction::Class for the license.
2011-02-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.