widgetView-class {widgetTools} | R Documentation |
Class "widgetView", a class for a GUI type widget holding widget elements
Description
"widgetView" renders element widgets
Objects from the Class
Objects can be created by calls of the form new("widgetView",
...)
. This class is for internal use by class
widget-class
. Users trying to create GUI type widget do
not need to use this class.
Slots
WVTitle
:Object of class
"character"
- a character string that will be displayed as the title of the widget to be createdvName
:Object of class
"character"
- a character string for the vName of the widgetwinid
:Object of class
"tkwin"
- a tkwin object for the id of the top window for the widgetwidgetids
:Object of class
"list"
- a list of tkwin ids for element widgetstheWidget
:Object of class
"widget"
- a widget object that creates the widgetView
Methods
- killWin
signature(tkWidget = "widgetView")
: destroys the window representing the widgetView- vName<-
signature(object = "widgetView")
: set the value for vName- vName
signature(object = "widgetView")
: get the value for vName- renderWidgets
signature(widgetView = "widgetView", pWidgets = "list")
: takes a list of "basicPW" objects (pWidgets) and renders them accordingly- renewView
signature(widgetView = "widgetView", pWidgets = "list")
: using values contained by the "basicPW" objects of pWidgets to update the values of widget elements displayed- theWidget<-
signature(object = "widgetView")
: set the value for theWidget- theWidget
signature(object = "widgetView")
: get the value for theWidget- updateDisplay
signature(widgetView = "widgetView")
: update the value of list box or text box element widgets- widgetids<-
signature(object = "widgetView")
: set the value of widgetids- widgetids
signature(object = "widgetView")
: get the value of widgetids- winid<-
signature(object = "widgetView")
: set the value of winid- winid
signature(object = "widgetView")
: set the value of winid- winWait
signature(tkWidget = "widgetView")
: make widgetView modal- WVTitle
signature(object = "widgetView")
: get the value for WVTitle
Author(s)
Jianhua Zhang
References
Programming with data
See Also
Examples
## Not run:
## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the widgetTools package loaded
widgetView <- widgetView(WVTitle = "demo", vName = "widget1")
## End(Not run)