| basicPW-class {widgetTools} | R Documentation |
This class defines the behavior shared by primary widget object used to build a GUI type interface
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, ..
wName:"character" - a string
for the name of the objectwType:"character" - a string
defining the type of the primary widget. (e.g. button)wValue:"ANY" - the initial
value to be associated with the objectwWidth:"numeric" - an integer
for the width of the object to be rendered (if applicable)wHeight:"numeric" - an integer
for the height of the object to be rendered (if applicable)wFuns:"list" - a list of R
functions to be executed before the widget is activatedwPreFun:"function" - a list of
functions to be executed before the value of the widget to be updatedwPostFun:"function" - a list of
functions to be executed before the value of the widget to be retrievedwNotify:"list" - a list of
functions to be executed each time when the value of the widget changeswEnv:"environment" - an R
environment object within which the value of the object is storedwView:"widgetView" - a object
of the class widgetView to which the widget is renderedsignature(object = "basicPW"): Set the value for
wEnv slotsignature(object = "basicPW"): Get the value for
wEnv slot signature(object = "basicPW"): Set the value
for wFuns slotsignature(object = "basicPW"): Get the value for
wFuns slotsignature(object = "basicPW"): Set the value
for wHeight slotsignature(object = "basicPW"): Get the value
for wHeight slotsignature(object = "basicPW"): Set the value
for wName slotsignature(object = "basicPW"): Get the value for
wName slotsignature(object = "basicPW"): Set the value
for wNotify slotsignature(object = "basicPW"): Get the value
for wNotify slotsignature(object = "basicPW"): Set the value
for wPostFun slotsignature(object = "basicPW"): Get the value
for wPostFun slotsignature(object = "basicPW"): Set the value
for wPreFun slotsignature(object = "basicPW"): Get the value
for wPreFun slotsignature(object = "basicPW"): Set the value
for wType slotsignature(object = "basicPW"): Get the value for
wType slotsignature(object = "basicPW"): Set the value
for wValue slotsignature(object = "basicPW"): Get the value for
wValue slotsignature(object = "basicPW"): Set the value
for wView slot signature(object = "basicPW"): Get the value for
wView slot signature(object = "basicPW"): Set the value
for wWidth slot signature(object = "basicPW"): Get the value for
wWidth slotJianhua Zhang
Programming with data
# 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)