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


Manual Reference Pages  -  GTK2::EX::FORMFACTORY::CHECKBUTTONGROUP (3)

.ds Aq ’

NAME

Gtk2::Ex::FormFactory::CheckButtonGroup - A group of checkbuttons

CONTENTS

SYNOPSIS



  Gtk2::Ex::FormFactory::CheckButtonGroup->new (
    max_columns        => Maximum number of columns,
    max_rows           => Maximum number of rows,
    column_labels      => Array of column label strings,
    row_labels         => Array of row label strings,

    attr_max_columns   => Object attribute for number of columns,
    attr_max_rows      => Object attribute for number of rows,
    attr_column_labels => Object attribute for column labels,
    attr_row_labels    => Object attribute for row labels,

    homogeneous        => Force homogeneous layout of underlying table?
    ...
    Gtk2::Ex::FormFactory::Widget attributes
  );



DESCRIPTION

This class implements a group of check buttons which allow a multiple selection out of a set from predefined values. It’s arranged in a two dimensional table. You can specify either the maximum number of rows or columns, the actual dimensions are calculated automatically.

Optionally you can add column and/or row labels, extending the corresponding table accordingly.

You can pass the configuration data statically or specify application object attributes controlling them, so the checkbutton group builds dynamically at runtime.

The value of a CheckBoxGroup is a hash. The value of each selected checkbox will result in a correspondent hash key with a true value assigned.

OBJECT HIERARCHY



  Gtk2::Ex::FormFactory::Intro

  Gtk2::Ex::FormFactory::Widget
  +--- Gtk2::Ex::FormFactory::CheckButtonGroup

  Gtk2::Ex::FormFactory::Layout
  Gtk2::Ex::FormFactory::Rules
  Gtk2::Ex::FormFactory::Context
  Gtk2::Ex::FormFactory::Proxy



ATTRIBUTES

Attributes are handled through the common get_ATTR(), set_ATTR() style accessors, but they are mostly passed once to the object constructor and must not be altered after the associated FormFactory was built.
<B>max_columnsB> = SCALAR [optional] Maximum number of columns the table should have. You must not set <B>max_rowsB> when you specify <B>max_columnsB>.
<B>max_rowsB> = SCALAR [optional] Maximum number of rows the table should have. You must not set <B>max_columnsB> when you specify <B>max_rowsB>. If you omit both attributes <B>max_rowsB> defaults to 1, so all buttons will appear in one row.
<B>column_labelsB> = ARRAY [optional] You can add column labels by setting an array of strings to the <B>column_labelsB> attribute. The number of entries should correspond to the <B>max_columnsB> setting.
<B>row_labelsB> = ARRAY [optional] You can add row labels by setting an array of strings to the <B>row_labelsB> attribute. The number of entries should correspond to the <B>max_rowsB> setting.
<B>attr_max_columnsB> = ‘‘object.attr’’ [optional] As an alternative to <B>max_columnsB> the maximum number of columns may be controlled by an application object attribute which needs to be passed here in object.attr notation.
<B>attr_max_rowsB> = ‘‘object.attr’’ [optional] As an alternative to <B>max_rowsB> the maximum number of rows may be controlled by an application object attribute which needs to be passed here in object.attr notation.
<B>attr_column_labelsB> = ‘‘object.attr’’ [optional] As an alternative to <B>column_labelsB> the column labels may be controlled by an application object attribute which needs to be passed here in object.attr notation.
<B>attr_row_labelsB> = ‘‘object.attr’’ [optional] As an alternative to <B>row_labelsB> the row labels may be controlled by an application object attribute which needs to be passed here in object.attr notation.
<B>homogeneousB> = BOOL [optional] Defaults to 1 forcing the underlying table to homogeneous layout.

REQUIREMENTS FOR ASSOCIATED APPLICATION OBJECTS

Application objects represented by a Gtk2::Ex::FormFactory::CheckButtonGroup must define additional methods. The naming of the methods listed beyond uses the standard <B>get_B> prefix for the attribute read accessor. <B>ATTRB> needs to be replaced by the actual name of the attribute associated with the widget.
<B>get_ATTR_listB> This method must return a two dimensional array resp. a list of lists which represent the values the user can select from.

Example:



  [
    [ 0, "Sun" ],
    [ 1, "Mon" ],
    [ 2, "Tue" ],
    ...
  ]



Each entry in the list consists of a list ref with two elements. The first is the value associated with the checkbox (which will become a hash key in the associated object attribute), the second the label of the checkbox on the GUI.

For more attributes refer to Gtk2::Ex::FormFactory::Widget.

AUTHORS



 Joern Reder <joern at zyn dot de>



COPYRIGHT AND LICENSE

Copyright 2004-2006 by Joern Reder.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library 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 Library General Public License for more details.

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

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 379: Non-ASCII character seen before =encoding in ’Joern’. Assuming ISO8859-1
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GTK2::EX::FORMFACTORY::CHECKBUTTONGROUP (3) 2006-02-27

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