Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Reaction::UI::ViewPortUsertContributedoPerlIDoViewPort::Action::Role::Apply(3)

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

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

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

REQUIRED METHODS
   do_apply
       Will be called when an "apply" event comes in.

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

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

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

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

INTERNAL METHODS
   _build_apply_label
       Defaults	to "apply".

SEE ALSO
       Reaction::UI::ViewPort::Action::Role::Close

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

AUTHORS
       See Reaction::Class for authors.

LICENSE
       See Reaction::Class for the license.

perl v5.32.0			Reaction::UI::ViewPort::Action::Role::Apply(3)

NAME | SYNOPSIS | DESCRIPTION | REQUIRED METHODS | ATTRIBUTES | METHODS | INTERNAL METHODS | SEE ALSO | AUTHORS | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Reaction::UI::ViewPort::Action::Role::Apply&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help