Debian Codegraph @

Nasal/canvas/PFD/UIElement.nas

raw
1 # MFD UI Element - abstract class
2 var UIElement =
3 {
4 new : func (name, value)
5 {
6 var obj = {
7 parents : [ UIElement ],
8 _name : name,
9 _edit : 0,
10 _value : value,
11 };
12
13 return obj;
14 },
15
16 getName : func() { return me._name; },
17 setValue : func(value) { me._value = value; },
18 getValue : func() { return me._value; },
19 highlightElement : func() { },
20 unhighlightElement : func() { },
21 isEditable : func () { return 0; },
22 isInEdit : func() { return me._edit; },
23 enterElement : func() { me._edit = 0; return me._value; },
24 clearElement : func() { me._edit = 0; },
25 editElement : func() { me._edit = 1; },
26 setVisible : func(vis) { },
27 incrSmall : func(value) { },
28 incrLarge : func(value) { },
29 };