SimpleW-class {widgetInvoke}R Documentation

Class "SimpleW": A Class To Represent A Widget Type

Description

The SimpleW is a virtual class used to provide a framework for representing the type of widget used to display and obtain information in the widgetInvoke package. There are currently three subclasses, providing for radio buttons (RadButtonW), a drop down list (DropDownW) or text entry (TypeInW)

Objects from the Class

Objects can be created by calls of the form new("SimpleW", ...).

Slots

defaultValue:
Object of class "character": This is the only slot defined by SimpleW and represents the default value of the argument.
nItems:
Object of class "numeric": This is used by the RadButtonW and DropDownW subclasses, and describes how many objects are to be represented in their widget.
itemNames:
Object of class "character": This is used by the RadButtonW and DropDownW subclasses, and is a character vector detailing the names of the objects to display in the widget. The length of itemNames must match the value stored in the nItems slot.
returnType:
Object of class "character": This is used by the TypeInW subclass, and specifies the return type of this argument (e.g. character, numeric, logical).

Methods

defaultValue
signature(object = "SimpleW"): Retrieves the defaultValue slot.
nItems
signature(object = "RadButtonW"): Retrieves the nItems slot.
nItems
signature(object = "DropDownW"): Retrieves the nItems slot.
returnType
signature(object = "TypeInW"): Retrieves the returnType slot.

Author(s)

Jeff Gentry

See Also

createWF, widgetInvoke

Examples






[Package widgetInvoke version 0.0.9 Index]