widgetTools (version 1.50.0)

basicPW-class: Class "basicPW", a basic class for primary widgets

Description

This class defines the behavior shared by primary widget object used to build a GUI type interface

Arguments

Objects from the Class

Objects can be created by calls of the form new("basicPW", ...). Constructors have been defined to create objects of this class for specific widgets such as buttons, list boxes, ..

Slots

wName:
Object of class "character" - a string for the name of the object
wType:
Object of class "character" - a string defining the type of the primary widget. (e.g. button)
wValue:
Object of class "ANY" - the initial value to be associated with the object
wWidth:
Object of class "numeric" - an integer for the width of the object to be rendered (if applicable)
wHeight:
Object of class "numeric" - an integer for the height of the object to be rendered (if applicable)
wFuns:
Object of class "list" - a list of R functions to be executed before the widget is activated
wPreFun:
Object of class "function" - a list of functions to be executed before the value of the widget to be updated
wPostFun:
Object of class "function" - a list of functions to be executed before the value of the widget to be retrieved
wNotify:
Object of class "list" - a list of functions to be executed each time when the value of the widget changes
wEnv:
Object of class "environment" - an R environment object within which the value of the object is stored
wView:
Object of class "widgetView" - a object of the class widgetView to which the widget is rendered

Methods

wEnv<-
signature(object = "basicPW"): Set the value for wEnv slot
wEnv
signature(object = "basicPW"): Get the value for wEnv slot
wFuns<-
signature(object = "basicPW"): Set the value for wFuns slot
wFuns
signature(object = "basicPW"): Get the value for wFuns slot
wHeight<-
signature(object = "basicPW"): Set the value for wHeight slot
wHeight
signature(object = "basicPW"): Get the value for wHeight slot
wName<-
signature(object = "basicPW"): Set the value for wName slot
wName
signature(object = "basicPW"): Get the value for wName slot
wNotify<-
signature(object = "basicPW"): Set the value for wNotify slot
wNotify
signature(object = "basicPW"): Get the value for wNotify slot
wPostFun<-
signature(object = "basicPW"): Set the value for wPostFun slot
wPostFun
signature(object = "basicPW"): Get the value for wPostFun slot
wPreFun<-
signature(object = "basicPW"): Set the value for wPreFun slot
wPreFun
signature(object = "basicPW"): Get the value for wPreFun slot
wType<-
signature(object = "basicPW"): Set the value for wType slot
wType
signature(object = "basicPW"): Get the value for wType slot
wValue<-
signature(object = "basicPW"): Set the value for wValue slot
wValue
signature(object = "basicPW"): Get the value for wValue slot
wView<-
signature(object = "basicPW"): Set the value for wView slot
view
signature(object = "basicPW"): Get the value for wView slot
wWidth<-
signature(object = "basicPW"): Set the value for wWidth slot
wWidth
signature(object = "basicPW"): Get the value for wWidth slot

References

Programming with data

See Also

widgetView-class,widget-class

Examples

Run this code
# Create an R environment to store the values of primary widgets
PWEnv <- new.env(hash = TRUE, parent = parent.frame(1))

# Create a label
label1 <- label(wName = "label1", wValue = "File Name: ", wEnv = PWEnv)

# Create an entry box with "Feed me using brows" as the default value
entry1 <- entryBox(wName = "entry1", wValue = "Feed me using browse",
                   wEnv = PWEnv)

Run the code above in your browser using DataLab