PERGOLA LOGO

pergola.RadioButton

System events: YES.

User events and functions: YES.

This class implements a mechanism that allows the owner of multiple instances to manage their state. See Panel With Radio Buttons And Check Boxes in tutorial. Note: a radio button always has siblings; if you need a single fake radio button, use instead a regular Button, which can be easily customized to look like a radio button, or use a CheckBox instead.

Example.

Listed: class properties/methods; prototype properties and methods; instance properties. Prototype properties and methods inherited by the Class superclass are not listed.

class

None

prototype

PROPERTIES

parent

pergola.user.

fill

Defined in pergola.presentationAttributes – string.

stroke

Defined in pergola.presentationAttributes – string.

dotFill

Defined in pergola.presentationAttributes – string.

r

Defined in pergola.presentationAttributes – number (user space units); the button's radius.

dotR

Defined in pergola.presentationAttributes – number (user space units); the dot's radius.

METHODS

handleEvent(evt)

Manages the state of this siblings. Assigns this to this owner.selection; invokes this fn if specified; invokes this owner.fn() if specified.

build(object)

this inherits the properties specified in object. Prototype properties specified in object are overridden. Creates elements. Returns this.

instance

name

String. If not passed to the constructor, gets a generated XML name (Class).

id

String. The return value of this name.toXML(). This container ID. Used as prefix where other elements' IDs are attributed.

owner

Must be specified in the initialization object, designates the owner object.

container

<g> element.

dot

<circle> element.

caption

If specified, an object defining the required textNode string property, optional x, y number (user space units) properties, and optional position string property. These are pergola.Caption properties. This property is reassigned during processing, and references a new pergola.Caption instance.

manager

if specified, object for sibling radio buttons management.

fn

If specified, callback function.