basicPW-class {widgetTools} | R Documentation |
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
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 objectwType
: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 objectwWidth
: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 activatedwPreFun
:Object of class
"function"
- a list of functions to be executed before the value of the widget to be updatedwPostFun
:Object of class
"function"
- a list of functions to be executed before the value of the widget to be retrievedwNotify
:Object of class
"list"
- a list of functions to be executed each time when the value of the widget changeswEnv
:Object of class
"environment"
- an R environment object within which the value of the object is storedwView
: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
Author(s)
Jianhua Zhang
References
Programming with data
See Also
Examples
# 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)