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::Close(3) User Contributed Perl Documentation Reaction::UI::ViewPort::Action::Role::Close(3)

Reaction::UI::ViewPort::Action::Role::Close - Integrate Close and Apply events into 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::Close';

  ...
  1;

This role integrates a "close" event and inherits an apply event into the consuming viewport.

Defaults to returned string value of "_build_close_label" ("close").

Defaults to returned string value of "_build_close_label_close" ("close").

This label is only shown when "changed" is true. It is initialised with the returned string value of "_build_close_label_cancel".

Default: 'cancel'

CodeRef. If set will be called on "close".

Calls "on_close_callback" if one is set.

Returns true.

Extends "apply" in Reaction::UI::ViewPort::Action::Role::Apply and sets the "close_label" to "close_label_cancel" if the original call to "apply" was not successfull.

Returns the result of the original "apply" call.

Extends "accept_events" in Reaction::UI::ViewPort::Action::Role::Apply with the "close" event if an "on_close_callback" was provided.

Reaction::UI::ViewPort::Action::Role::Apply

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.