ManaTools::Shared::GUI::ReplacePoint

Section: User Contributed Perl Documentation (3)
Updated: 2017-07-06
Page Index
 

NAME

ManaTools::Shared::GUI::ReplacePoint - Class to manage a yui YReplacePoint properly  

SYNOPSIS

use ManaTools::Shared::GUI::ReplacePoint;

my $hbox = ... my $replacepoint = ManaTools::Shared::GUI::ReplacePoint->new(eventHandler => $dialog, parentWidget => $hbox); my $container = $replacepoint->container(); my $vbox1 = $factory->createVBox($container); my $button1 = $self->addWidget($backendItem->label() .'_button1', $factory->createPushButton('Button 1', $vbox1), sub {
    my $self = shift;
    my $yevent = shift;
    my $backendItem = shift;
    my $replacepoint = $self->eventHandler();
    ... }, $backendItem); my $button2 = $self->addWidget($backendItem->label() .'_button2', $factory->createPushButton('Button 2', $vbox), sub {...}, $backendItem); my $vbox2 = $factory->createVBox($container); my $vbox3 = $factory->createVBox($container); $replacepoint->finished();

...

$replacepoint->clear(); ... # start anew with adding widgets, items, etc... ... $replacepoint->finished();  

DESCRIPTION

This class wraps YReplacePoint and it's child widgets to handle  

SUPPORT

You can find documentation for this module with the perldoc command:

perldoc ManaTools::Shared::GUI::ReplacePoint  

SEE ALSO

yui::YReplacePoint  

AUTHOR

Maarten Vanraes <alien@rmail.be>  

COPYRIGHT and LICENSE

Copyright (C) 2015-2016, Maarten Vanraes.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  

FUNCTIONS

 

new

INPUT

    hash ref containing
        eventHandler:       the parent that does eventHandlerRole
        parentWidget:       the parent widget

DESCRIPTION

    new is inherited from Moose, to create a ReplacePoint object

 

buildReplacePoint

INPUT

    $self: this object

DESCRIPTION

    builds the YReplacePoint widget

 

clear

INPUT

    $self: this object

DESCRIPTION

    clears the replacepoint to prepare for re-adding new items, call finished() afterwards

 

finished

INPUT

    $self: this object

DESCRIPTION

    finalizes the widgets on the ReplacePoint


 

Index

NAME
SYNOPSIS
DESCRIPTION
SUPPORT
SEE ALSO
AUTHOR
COPYRIGHT and LICENSE
FUNCTIONS
new
buildReplacePoint
clear
finished