1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package main
import (
"go.wit.com/log"
"go.wit.com/gui/widget"
)
func (n *node) addText(a *widget.Action) {
log.Log(CHANGE, "addText() START with a.S =", a.S)
t := n.tk
if (t == nil) {
log.Log(ERROR, "addText error. tk == nil", n.Name, n.WidgetId)
actionDump(debugError, a)
return
}
log.Log(CHANGE, "addText() Attempt on", n.WidgetType, "with", a.S)
switch n.WidgetType {
case widget.Dropdown:
n.AddDropdownName(a.S)
case widget.Combobox:
t.AddComboboxName(a.S)
default:
log.Log(ERROR, "plugin Send() Don't know how to addText on", n.WidgetType, "yet", a.ActionType)
}
log.Log(CHANGE, "addText() END with a.S =", a.S)
}
|