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  -  ROSE::HTML::FORM::FIELD::RADIOBUTTON (3)

.ds Aq ’

NAME

Rose::HTML::Form::Field::RadioButton - Object representation of a single radio button field in an HTML form.

CONTENTS

SYNOPSIS



    $field =
      Rose::HTML::Form::Field::RadioButton->new(
        label => Run tests,
        name  => tests, 
        value => yes);

    $checked = $field->is_checked; # false

    $field->checked(1);

    print $field->html;

    ...



DESCRIPTION

Rose::HTML::Form::Field::RadioButton is an object representation of a single radio button field in an HTML form.

This class inherits from, and follows the conventions of, Rose::HTML::Form::Field. Inherited methods that are not overridden will not be documented a second time here. See the Rose::HTML::Form::Field documentation for more information.

HTML ATTRIBUTES

Valid attributes:



    accept
    accesskey
    checked
    class
    dir
    disabled
    id
    lang
    maxlength
    name
    onblur
    onchange
    onclick
    ondblclick
    onfocus
    onkeydown
    onkeypress
    onkeyup
    onmousedown
    onmousemove
    onmouseout
    onmouseover
    onmouseup
    onselect
    readonly
    size
    style
    tabindex
    title
    type
    value
    xml:lang



Required attributes (default values in parentheses):



    type (radio)
    value



Boolean attributes:



    checked
    disabled
    readonly



CONSTRUCTOR

<B>new PARAMSB> Constructs a new Rose::HTML::Form::Field::RadioButton object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.

OBJECT METHODS

<B>checked [BOOL]B> Check or uncheck the radio button by passing a boolean value. If BOOL is true, the radio button will be checked. If it is false, it will be unchecked. Returns true if the radio button is checked, false otherwise.
<B>hidden [BOOL]B> Get or set a boolean value that indicates whether or not this radio button will be shown in its parent radio button group. Setting it to true also sets checked to false.
<B>hideB> Calls hidden, passing a true value.
<B>html_radio_buttonB> Returns the HTML serialization of the radio button field only (i.e., without any label or error message)
<B>is_checkedB> Returns true if the radio button is checked, false otherwise.
<B>is_onB> Simply calls is_checked(). This method exists for API uniformity between radio buttons and checkboxes.
<B>showB> Calls hidden, passing a false value.
<B>value [VALUE]B> Gets or sets the value of the value HTML attribute.
<B>xhtml_radio_buttonB> Returns the XHTML serialization of the radio button field only (i.e., without any label or error message)

AUTHOR

John C. Siracusa (siracusa@gmail.com)

LICENSE

Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ROSE::HTML::FORM::FIELD::RADIOBUTTON (3) 2015-03-17

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