1 function createFigure(uid) {
2 var __parent__ = document.getElementById('scilab');
3 var __temp__ = createElement("DIV");
4 __temp__.id = getIdString(uid);
5 __temp__.className = 'GO_FIGURE';
6 __parent__.appendChild(__temp__);
7 __parent__.innerHTML += '<br>';
11 function createPushButton(uid) {
12 return createCommonIUControl(uid, 'BUTTON', 'btn');
15 function createFrame(uid) {
16 return createCommonIUControl(uid, 'DIV', 'GO_UI_FRAME');
19 function createText(uid) {
20 return createCommonIUControl(uid, 'LABEL', 'GO_UI_TEXT');
23 function createEdit(uid) {
24 var __temp__ = createCommonIUControl(uid, 'INPUT', 'GO_UI_EDIT');
25 __temp__.type = 'text';
29 function createCheckbox(uid) {
30 //for checkbox we need to create 3 elements.
32 //a div to enclose others
33 var __main__ = createCommonIUControl(uid, 'DIV', 'GO_UI_CHECKBOX');
35 var __temp__ = createCommonIUControl(uid, 'INPUT', 'GO_UI_CHECKBOX_CHECKBOX');
36 __temp__.type = 'checkbox';
37 __temp__.id = getIdString(uid, '_checkbox');
38 __main__.appendChild(__temp__);
40 //the label of the checkbox
41 var __label__ = createCommonIUControl(uid, 'LABEL', 'GO_UI_CHECKBOX_LABEL');
42 __label__.id = getIdString(uid, '_label');
43 __label__.htmlFor = __temp__.id;
44 __main__.appendChild(__label__);
49 function createRadio(uid) {
50 //for checkbox we need to create 3 elements.
52 //a div to enclose others
53 var __main__ = createCommonIUControl(uid, 'DIV', 'GO_UI_RADIOBUTTON');
55 var __temp__ = createCommonIUControl(uid, 'INPUT', 'GO_UI_RADIOBUTTON_RADIO');
56 __temp__.type = 'radio';
57 __temp__.id = getIdString(uid, '_radio');
58 __main__.appendChild(__temp__);
60 //the label of the radio
61 var __label__ = createCommonIUControl(uid, 'LABEL', 'GO_UI_RADIOBUTTON_LABEL');
62 __label__.id = getIdString(uid, '_label');
63 __label__.htmlFor = __temp__.id;
64 __main__.appendChild(__label__);
69 function createSlider(uid) {
70 var __temp__ = createCommonIUControl(uid, 'INPUT', 'GO_UI_SLIDER');
71 __temp__.type = 'range';
75 function createListbox(uid) {
76 return createCommonIUControl(uid, 'SELECT', 'GO_UI_LISTBOX');
79 function createCombobox(uid) {
80 var __temp__ = createCommonIUControl(uid, 'SELECT', 'GO_UI_POPUPMENU');
85 function createSpinner(uid) {
86 var __temp__ = createCommonIUControl(uid, 'INPUT', 'GO_UI_SPINNER');
87 __temp__.type = 'number';
88 //$("#" + getIdString(uid)).TouchSpin({verticalbuttons: true});
92 function createTab(uid) {
93 var __temp__ = createCommonIUControl(uid, 'DIV', 'GO_UI_TAB');
95 //create a list for tab headers
96 var __ul__ = createElement('UL');
97 __ul__.id = getIdString(uid, '_ul');
98 __temp__.appendChild(__ul__);
102 function deleteObject(uid) {
103 var __child__ = getElementById(uid);
105 __child__.parentNode.removeChild(__child__);