Description Objects from the Class Slots Methods Author(s) References See Also Examples
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
: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
signature(object = "basicPW")
: Set the value for
wEnv slot
signature(object = "basicPW")
: Get the value for
wEnv slot
signature(object = "basicPW")
: Set the value
for wFuns slot
signature(object = "basicPW")
: Get the value for
wFuns slot
signature(object = "basicPW")
: Set the value
for wHeight slot
signature(object = "basicPW")
: Get the value
for wHeight slot
signature(object = "basicPW")
: Set the value
for wName slot
signature(object = "basicPW")
: Get the value for
wName slot
signature(object = "basicPW")
: Set the value
for wNotify slot
signature(object = "basicPW")
: Get the value
for wNotify slot
signature(object = "basicPW")
: Set the value
for wPostFun slot
signature(object = "basicPW")
: Get the value
for wPostFun slot
signature(object = "basicPW")
: Set the value
for wPreFun slot
signature(object = "basicPW")
: Get the value
for wPreFun slot
signature(object = "basicPW")
: Set the value
for wType slot
signature(object = "basicPW")
: Get the value for
wType slot
signature(object = "basicPW")
: Set the value
for wValue slot
signature(object = "basicPW")
: Get the value for
wValue slot
signature(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 slot
Jianhua Zhang
Programming with data
1 2 3 4 5 6 7 8 9 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.