rsence-pre 3.0.0.8 → 3.0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/client/conf/client_pkg.yaml +6 -2
  4. data/client/js/comm/queue/queue.js +32 -44
  5. data/client/js/comm/transporter/transporter.js +24 -16
  6. data/client/js/comm/values/values.js +27 -15
  7. data/client/js/controls/button/button.coffee +14 -5
  8. data/client/js/controls/button/themes/default/button.css +4 -2
  9. data/client/js/controls/checkbox/checkbox.js +4 -4
  10. data/client/js/controls/dialogs/sheet/sheet.js +11 -11
  11. data/client/js/controls/dialogs/sheet/themes/default/sheet.html +1 -1
  12. data/client/js/controls/imageview/imageview.js +15 -15
  13. data/client/js/controls/numerictextcontrol/numerictextcontrol.coffee +32 -10
  14. data/client/js/controls/onoffbutton/onoffbutton.coffee +5 -5
  15. data/client/js/controls/progress/progressbar/progressbar.js +6 -7
  16. data/client/js/controls/progress/progressbar/themes/default/progressbar.css +4 -4
  17. data/client/js/controls/progress/progressbar/themes/default/progressbar.html +1 -2
  18. data/client/js/controls/sliders/slider/slider.js +74 -79
  19. data/client/js/controls/stepper/stepper.js +31 -31
  20. data/client/js/controls/stringview/stringview.js +20 -8
  21. data/client/js/controls/tab/tab.js +57 -63
  22. data/client/js/controls/tab/themes/default/tab.html +4 -1
  23. data/client/js/controls/textcontrol/textcontrol.coffee +13 -3
  24. data/client/js/controls/validatorview/validatorview.js +4 -4
  25. data/client/js/controls/window/window.js +43 -56
  26. data/client/js/core/class/class.js +25 -23
  27. data/client/js/core/elem/elem.coffee +8 -1
  28. data/client/js/core/rsence_ns/rsence_ns.coffee +6 -2
  29. data/client/js/core/util/util_methods/util_methods.coffee +57 -15
  30. data/client/js/datetime/calendar/calendar.coffee +196 -199
  31. data/client/js/datetime/calendar/themes/default/calendar.css +81 -159
  32. data/client/js/datetime/calendar/themes/default/calendar.html +9 -18
  33. data/client/js/datetime/datepicker/datepicker.coffee +18 -3
  34. data/client/js/datetime/datetimepicker/datetimepicker.coffee +6 -1
  35. data/client/js/datetime/datetimevalue/datetimevalue.coffee +194 -0
  36. data/client/js/datetime/momentjs/momentjs.js +310 -76
  37. data/client/js/datetime/timepicker/timepicker.coffee +6 -1
  38. data/client/js/datetime/timesheet/timesheet.js +59 -61
  39. data/client/js/foundation/control/control.js +45 -44
  40. data/client/js/foundation/control/controldefaults/controldefaults.js +13 -9
  41. data/client/js/foundation/control/dyncontrol/dyncontrol.js +45 -57
  42. data/client/js/foundation/control/eventresponder/eventresponder.js +97 -97
  43. data/client/js/foundation/control/valuematrix/valuematrix.js +13 -13
  44. data/client/js/foundation/eventmanager/eventmanager.coffee +50 -32
  45. data/client/js/foundation/geom/rect/rect.js +43 -32
  46. data/client/js/foundation/locale_settings/locale_settings.js +36 -25
  47. data/client/js/foundation/system/system.js +79 -67
  48. data/client/js/foundation/thememanager/thememanager.coffee +11 -1
  49. data/client/js/foundation/value/pullvalue/pullvalue.coffee +7 -0
  50. data/client/js/foundation/value/pushvalue/pushvalue.coffee +25 -0
  51. data/client/js/foundation/value/value.js +22 -15
  52. data/client/js/foundation/view/view.js +94 -55
  53. data/client/js/foundation/view/viewdefaults/viewdefaults.js +5 -1
  54. data/client/js/lists/listitems/listitems.js +26 -4
  55. data/client/js/menus/combobox/combobox.coffee +55 -0
  56. data/client/js/menus/minimenu/minimenu.js +61 -30
  57. data/client/js/menus/minimenu/themes/default/minimenu.css +1 -6
  58. data/client/js/menus/minimenu/themes/default/minimenu.html +5 -4
  59. data/client/js/menus/minimenuitem/minimenuitem.js +6 -6
  60. data/client/js/menus/popupmenu/themes/default/popupmenu.css +1 -6
  61. data/client/js/menus/popupmenu/themes/default/popupmenu.html +5 -4
  62. data/client/js/tables/table/table.coffee +109 -64
  63. data/client/js/tables/table/themes/default/table.css +4 -0
  64. data/lib/rsence/msg.rb +64 -64
  65. data/lib/rsence/plugins/plugin.rb +68 -52
  66. data/lib/rsence/session/sequel_sessionstorage.rb +5 -5
  67. data/lib/rsence/value.rb +79 -59
  68. data/plugins/client_pkg/lib/client_pkg_build.rb +5 -1
  69. data/plugins/client_pkg/lib/client_pkg_serve.rb +40 -32
  70. data/plugins/main/js/main.js +46 -28
  71. metadata +6 -8
  72. data/client/js/datetime/calendar/themes/default/calendar_arrows.png +0 -0
  73. data/client/js/datetime/calendar/themes/default/calendar_bg.png +0 -0
  74. data/client/js/datetime/calendar/themes/default/calendar_parts1.png +0 -0
  75. data/client/js/datetime/calendar/themes/default/calendar_parts2.png +0 -0
  76. data/client/js/datetime/datetimepicker/datetimepicker.js +0 -210
  77. data/client/js/datetime/datetimevalue/datetimevalue.js +0 -265
@@ -11,47 +11,47 @@
11
11
  ** +mouseDown+:: Called when the mouse button is pushed down
12
12
  ** +mouseUp+:: Called when the mouse button is released
13
13
  ** +mouseWheel+:: Called when the mouse wheel is used
14
- ** +startDrag+:: Called when the mouse button
14
+ ** +startDrag+:: Called when the mouse button
15
15
  ** is pressed (and item is draggable).
16
- ** +endDrag+:: Called when the mouse button
16
+ ** +endDrag+:: Called when the mouse button
17
17
  ** is released (and item is draggable).
18
- ** +drag+:: Called when the mouse is moved and mouse button
18
+ ** +drag+:: Called when the mouse is moved and mouse button
19
19
  ** is down (and item is draggable).
20
- ** +drop+:: Called when a draggable item is released
20
+ ** +drop+:: Called when a draggable item is released
21
21
  ** on the droppable.
22
- ** +startHover+:: Called when a draggable item is moved
22
+ ** +startHover+:: Called when a draggable item is moved
23
23
  ** over the droppable.
24
24
  ** +hover+:: Called while a dragged item is moved between
25
25
  ** startHover and endHover.
26
- ** +endHover+:: Called when a draggable item is moved out
26
+ ** +endHover+:: Called when a draggable item is moved out
27
27
  ** of the droppable.
28
- ** +keyDown+:: Called when the user presses a key, and
28
+ ** +keyDown+:: Called when the user presses a key, and
29
29
  ** the control is active.
30
- ** +keyUp+:: Called when the user releases a key, and
30
+ ** +keyUp+:: Called when the user releases a key, and
31
31
  ** the control is active.
32
- ** +textEnter+:: Called when the user releases a key regardless
32
+ ** +textEnter+:: Called when the user releases a key regardless
33
33
  ** if the control is active or not.
34
34
  ** +gainedActiveStatus+:: Called when the component gets activated.
35
35
  ** +lostActiveStatus+:: Called when the component gets deactivated.
36
36
  ***/
37
37
  var//RSence.Foundation
38
38
  HEventResponder = HClass.extend({
39
-
39
+
40
40
  /** Default event listeners.
41
41
  **/
42
42
  defaultEvents: {
43
43
  },
44
-
44
+
45
45
  /** = Description
46
46
  * The event responder interface for +HControl+.
47
- * Registers the events defined by boolean properties of
48
- * the events object to the control instance. The event manager
47
+ * Registers the events defined by boolean properties of
48
+ * the events object to the control instance. The event manager
49
49
  * handles the event mapping and abstraction itself.
50
- * NOTE startDrag vs mouseDown and endDrag vs mouseUp events
50
+ * NOTE startDrag vs mouseDown and endDrag vs mouseUp events
51
51
  * conflict, if both are set simultaneously.
52
52
  *
53
53
  * = Parameters
54
- * +_events+:: A +{ event: state }+ Object structure, sets events based on the
54
+ * +_events+:: A +{ event: state }+ Object structure, sets events based on the
55
55
  * keys and the flag. All states are Booleans (true or false).
56
56
  * A true state means the event listening for the event is
57
57
  * enabled and a false state means the event listening is disabled.
@@ -159,9 +159,9 @@ HEventResponder = HClass.extend({
159
159
  },
160
160
 
161
161
  /** = Description
162
- * Enables the HControl instance, if the enabled flag is true, and disables
163
- * it if enabled is false. A disabled HControl won't respond events.
164
- * Component themes reflect the disabled state typically with
162
+ * Enables the HControl instance, if the enabled flag is true, and disables
163
+ * it if enabled is false. A disabled HControl won't respond events.
164
+ * Component themes reflect the disabled state typically with
165
165
  * a dimmer appearance.
166
166
  *
167
167
  * = Parameters
@@ -172,7 +172,7 @@ HEventResponder = HClass.extend({
172
172
  *
173
173
  **/
174
174
  setEnabled: function(_flag) {
175
-
175
+
176
176
  var
177
177
  _this = this,
178
178
  _elemId = this.elemId,
@@ -181,33 +181,33 @@ HEventResponder = HClass.extend({
181
181
  _views = _this.views,
182
182
  _view,
183
183
  _viewsLen = _views.length;
184
-
184
+
185
185
  // Enable/disable the children first.
186
186
  for (; i < _viewsLen; i++) {
187
187
  _view = _sysViews[_views[i]];
188
188
  _view['setEnabled'] && _view.setEnabled(_flag);
189
189
  }
190
-
190
+
191
191
  if (_this.enabled === _flag) {
192
192
  // No change in enabled status, do nothing.
193
193
  return this;
194
194
  }
195
-
195
+
196
196
  _this.enabled = _flag;
197
-
197
+
198
198
  if(_flag) {
199
199
  EVENT.reg(_this, _this.events);
200
200
  }
201
201
  else {
202
202
  EVENT.unreg(_this);
203
203
  }
204
-
204
+
205
205
  // Toggle the CSS class: enabled/disabled
206
206
  _this.toggleCSSClass(_elemId, HControl.CSS_ENABLED, _flag);
207
207
  _this.toggleCSSClass(_elemId, HControl.CSS_DISABLED, !_flag);
208
208
  return this;
209
209
  },
210
-
210
+
211
211
  /** = Description
212
212
  * Alias for #setEnabled(true)
213
213
  *
@@ -215,7 +215,7 @@ HEventResponder = HClass.extend({
215
215
  enable: function(){
216
216
  return this.setEnabled(true);
217
217
  },
218
-
218
+
219
219
  /** = Description
220
220
  * Alias for #setEnabled(false)
221
221
  *
@@ -223,9 +223,9 @@ HEventResponder = HClass.extend({
223
223
  disable: function(){
224
224
  return this.setEnabled(false);
225
225
  },
226
-
226
+
227
227
  /** = Description
228
- * Alternative flag setter for the mouseMove event type. If set to true,
228
+ * Alternative flag setter for the mouseMove event type. If set to true,
229
229
  * starts listening to mouseDown events when the component has focus.
230
230
  *
231
231
  * = Parameters
@@ -243,7 +243,7 @@ HEventResponder = HClass.extend({
243
243
  },
244
244
 
245
245
  /** = Description
246
- * Alternative flag setter for the click event type. If set to true,
246
+ * Alternative flag setter for the click event type. If set to true,
247
247
  * starts listening to click events when the component has focus.
248
248
  *
249
249
  * = Parameters
@@ -259,9 +259,9 @@ HEventResponder = HClass.extend({
259
259
  this.setEvents();
260
260
  return this;
261
261
  },
262
-
262
+
263
263
  /** = Description
264
- * Registers or releases event listening for mouseDown events depending on
264
+ * Registers or releases event listening for mouseDown events depending on
265
265
  * the value of the flag argument.
266
266
  *
267
267
  * = Parameters
@@ -277,9 +277,9 @@ HEventResponder = HClass.extend({
277
277
  this.setEvents();
278
278
  return this;
279
279
  },
280
-
280
+
281
281
  /** = Description
282
- * Registers or releases event listening for doubleClick events depending on
282
+ * Registers or releases event listening for doubleClick events depending on
283
283
  * the value of the flag argument.
284
284
  *
285
285
  * = Parameters
@@ -295,9 +295,9 @@ HEventResponder = HClass.extend({
295
295
  this.setEvents();
296
296
  return this;
297
297
  },
298
-
298
+
299
299
  /** = Description
300
- * Registers or releases event listening for contextMenu events depending on
300
+ * Registers or releases event listening for contextMenu events depending on
301
301
  * the value of the flag argument.
302
302
  *
303
303
  * = Parameters
@@ -313,9 +313,9 @@ HEventResponder = HClass.extend({
313
313
  this.setEvents();
314
314
  return this;
315
315
  },
316
-
316
+
317
317
  /** = Description
318
- * Registers or releases event listening for mouseUp events depending on the
318
+ * Registers or releases event listening for mouseUp events depending on the
319
319
  * value of the flag argument.
320
320
  *
321
321
  * = Parameters
@@ -331,9 +331,9 @@ HEventResponder = HClass.extend({
331
331
  this.setEvents();
332
332
  return this;
333
333
  },
334
-
334
+
335
335
  /** = Description
336
- * Alternative flag setter for the mouseWheel event type. If set to true,
336
+ * Alternative flag setter for the mouseWheel event type. If set to true,
337
337
  * starts listening to mouseWheel events when the component has focus.
338
338
  *
339
339
  * = Parameters
@@ -349,13 +349,13 @@ HEventResponder = HClass.extend({
349
349
  this.setEvents();
350
350
  return this;
351
351
  },
352
-
352
+
353
353
  /** = Description
354
- * Registers or releases event listening for startDrag, drag and
354
+ * Registers or releases event listening for startDrag, drag and
355
355
  * endDrag -events depending on the value of the flag argument.
356
356
  *
357
357
  * = Parameters
358
- * +_flag+:: Set the startDrag, drag and endDrag event listening
358
+ * +_flag+:: Set the startDrag, drag and endDrag event listening
359
359
  * on/off (true/false) for the component instance.
360
360
  *
361
361
  * = Returns
@@ -367,13 +367,13 @@ HEventResponder = HClass.extend({
367
367
  this.setEvents();
368
368
  return this;
369
369
  },
370
-
370
+
371
371
  /** = Description
372
- * Registers or releases event listening for startHover, drop and
372
+ * Registers or releases event listening for startHover, drop and
373
373
  * endHover -events depending on the value of the flag argument.
374
374
  *
375
375
  * = Parameters
376
- * +_flag+:: Set the startHover, drop and endHover event listening
376
+ * +_flag+:: Set the startHover, drop and endHover event listening
377
377
  * on/off (true/false) for the component instance.
378
378
  *
379
379
  * = Returns
@@ -385,10 +385,10 @@ HEventResponder = HClass.extend({
385
385
  this.setEvents();
386
386
  return this;
387
387
  },
388
-
389
-
388
+
389
+
390
390
  /** = Description
391
- * Registers or releases event listening for keyDown events depending on the
391
+ * Registers or releases event listening for keyDown events depending on the
392
392
  * value of the flag argument.
393
393
  *
394
394
  * = Parameters
@@ -405,10 +405,10 @@ HEventResponder = HClass.extend({
405
405
  this.setEvents();
406
406
  return this;
407
407
  },
408
-
409
-
408
+
409
+
410
410
  /** = Description
411
- * Registers or releases event listening for keyUp events depending on
411
+ * Registers or releases event listening for keyUp events depending on
412
412
  * the value of the flag argument.
413
413
  *
414
414
  * = Parameters
@@ -424,9 +424,9 @@ HEventResponder = HClass.extend({
424
424
  this.setEvents();
425
425
  return this;
426
426
  },
427
-
427
+
428
428
  /** = Description
429
- * Registers or releases event listening for textEnter events
429
+ * Registers or releases event listening for textEnter events
430
430
  * depending on the value of the flag argument.
431
431
  *
432
432
  * = Returns
@@ -438,34 +438,34 @@ HEventResponder = HClass.extend({
438
438
  this.setEvents();
439
439
  return this;
440
440
  },
441
-
441
+
442
442
  /** Same as +setClickable+
443
443
  **/
444
444
  setClick: function(_flag) {
445
445
  return this.setClickable(_flag);
446
446
  },
447
-
447
+
448
448
  /** Same as +setDoubleClickable+
449
449
  **/
450
450
  setDoubleClick: function(_flag) {
451
451
  return this.setDoubleClickable(_flag);
452
452
  },
453
-
453
+
454
454
  /** = Description
455
455
  * Default focus event responder method. Does nothing by default.
456
456
  * Called when the component gets focus.
457
457
  *
458
458
  **/
459
459
  focus: function() {},
460
-
460
+
461
461
  /** = Description
462
462
  * Default blur event responder method. Does nothing by default.
463
463
  * Called when the component loses focus.
464
464
  *
465
465
  **/
466
466
  blur: function() {},
467
-
468
-
467
+
468
+
469
469
  /** = Description
470
470
  * Default gainedActiveStatus event responder method. Does nothing by default.
471
471
  * Called when the component gains active status; both focused and clicked.
@@ -477,11 +477,11 @@ HEventResponder = HClass.extend({
477
477
  *
478
478
  **/
479
479
  gainedActiveStatus: function(_lastActiveControl) {
480
-
480
+
481
481
  var
482
482
  _parents = this.parents,
483
483
  _parentIdx = _parents.length-1;
484
-
484
+
485
485
  if ( (HSystem.windowFocusMode === 1) && ( _parentIdx > 1 ) ) {
486
486
  for( ; _parentIdx > 0; _parentIdx-- ){
487
487
  // Send gainedActiveStatus to HWindow parent(s)
@@ -490,18 +490,18 @@ HEventResponder = HClass.extend({
490
490
  }
491
491
  }
492
492
  }
493
-
493
+
494
494
  },
495
-
495
+
496
496
  // A low-level handler for active status, don't extend this.
497
497
  _gainedActiveStatus: function(_lastActiveControl) {
498
498
  if(this.enabled) {
499
- this.toggleCSSClass(this.elemId, HControl.CSS_ACTIVE, true);
499
+ this.setCSSClass(HControl.CSS_ACTIVE);
500
500
  }
501
501
  return this.gainedActiveStatus(_lastActiveControl);
502
502
  },
503
-
504
-
503
+
504
+
505
505
  /** = Description
506
506
  * Default lostActiveStatus event responder method. Does nothing by default.
507
507
  * Called when the component loses active status; another component was
@@ -516,19 +516,19 @@ HEventResponder = HClass.extend({
516
516
  lostActiveStatus: function(_newActiveControl) {
517
517
  return true;
518
518
  },
519
-
519
+
520
520
  // --A low-level handler for lost active status, don't extend this.++
521
521
  _lostActiveStatus: function(_newActiveControl) {
522
522
  if( this.lostActiveStatus(_newActiveControl) !== false ){
523
523
  if(this.enabled) {
524
- this.toggleCSSClass(this.elemId, HControl.CSS_ACTIVE, false);
524
+ this.unsetCSSClass(HControl.CSS_ACTIVE);
525
525
  }
526
526
  return true;
527
527
  }
528
528
  return false;
529
529
  },
530
-
531
-
530
+
531
+
532
532
  /** = Description
533
533
  * Default mouseMove event responder method. Does nothing by default.
534
534
  * Called whenever the mouse cursor is moved regardless if the
@@ -540,72 +540,72 @@ HEventResponder = HClass.extend({
540
540
  *
541
541
  **/
542
542
  mouseMove: function(x,y) {},
543
-
544
-
543
+
544
+
545
545
  /** = Description
546
546
  * Default click event responder method. Does nothing by default.
547
547
  *
548
548
  * = Parameters
549
- * +x+:: The horizontal coordinate units (px) of the
549
+ * +x+:: The horizontal coordinate units (px) of the
550
550
  * mouse cursor position.
551
- * +y+:: The vertical coordinate units (px) of the
551
+ * +y+:: The vertical coordinate units (px) of the
552
552
  * mouse cursor position.
553
553
  * +_isLeftButton+:: Boolean flag; false if the right(context) mouse
554
554
  * button is pressed.
555
555
  *
556
556
  **/
557
557
  click: function(x,y,_isLeftButton){},
558
-
558
+
559
559
  /** = Description
560
560
  * Default click event responder method. Does nothing by default.
561
561
  *
562
562
  * = Parameters
563
- * +x+:: The horizontal coordinate units (px) of the
563
+ * +x+:: The horizontal coordinate units (px) of the
564
564
  * mouse cursor position.
565
- * +y+:: The vertical coordinate units (px) of the
565
+ * +y+:: The vertical coordinate units (px) of the
566
566
  * mouse cursor position.
567
567
  * +_isLeftButton+:: Boolean flag; false if the right(context) mouse
568
568
  * button is pressed.
569
569
  *
570
570
  **/
571
571
  doubleClick: function(x,y,_isLeftButton){},
572
-
572
+
573
573
  /** = Description
574
574
  * Default contextMenu event responder method. Does nothing by default.
575
575
  * Extend to return true to allow the default action of the browser.
576
576
  *
577
577
  **/
578
578
  contextMenu: function(x,y,_isLeftButton){},
579
-
579
+
580
580
  /** = Description
581
581
  * Default mouseDown event responder method. Does nothing by default.
582
582
  *
583
583
  * = Parameters
584
- * +x+:: The horizontal coordinate units (px) of the
584
+ * +x+:: The horizontal coordinate units (px) of the
585
585
  * mouse cursor position.
586
- * +y+:: The vertical coordinate units (px) of the
586
+ * +y+:: The vertical coordinate units (px) of the
587
587
  * mouse cursor position.
588
588
  * +_isLeftButton+:: Boolean flag; false if the right(context) mouse
589
589
  * button is pressed.
590
590
  *
591
591
  **/
592
592
  mouseDown: function(x,y,_isLeftButton) {},
593
-
594
-
593
+
594
+
595
595
  /** = Description
596
596
  * Default mouseDown event responder method. Does nothing by default.
597
597
  *
598
598
  * = Parameters
599
- * +x+:: The horizontal coordinate units (px) of the
599
+ * +x+:: The horizontal coordinate units (px) of the
600
600
  * mouse cursor position.
601
- * +y+:: The vertical coordinate units (px) of the
601
+ * +y+:: The vertical coordinate units (px) of the
602
602
  * mouse cursor position.
603
603
  * +_isLeftButton+:: Boolean flag; false if the right(context) mouse
604
604
  * button is pressed.
605
605
  *
606
606
  **/
607
607
  mouseUp: function(x,y,_isLeftButton) {},
608
-
608
+
609
609
  /** = Description
610
610
  * Default mouseWheel event responder method. Does nothing by default.
611
611
  *
@@ -615,7 +615,7 @@ HEventResponder = HClass.extend({
615
615
  *
616
616
  **/
617
617
  mouseWheel: function(_delta) {},
618
-
618
+
619
619
  /** = Description
620
620
  * Default startDrag event responder method. Sets internal flags by default.
621
621
  * This is the preferred method to extend if you want to do something
@@ -627,7 +627,7 @@ HEventResponder = HClass.extend({
627
627
  *
628
628
  **/
629
629
  startDrag: function(x, y) {},
630
-
630
+
631
631
  /** = Description
632
632
  * Default drag event responder method. Does nothing by default.
633
633
  * This is the preferred method to extend while a drag method is ongoing.
@@ -642,8 +642,8 @@ HEventResponder = HClass.extend({
642
642
  this.doDrag(x,y);
643
643
  },
644
644
  doDrag: function(x, y) {},
645
-
646
-
645
+
646
+
647
647
  /** = Description
648
648
  * Default endDrag event responder method. Sets internal flags by default.
649
649
  * This is the preferred method to extend if you want to do something
@@ -659,7 +659,7 @@ HEventResponder = HClass.extend({
659
659
 
660
660
  /** = Description
661
661
  * Default drop event responder method. Does nothing by default.
662
- * Extend the drop method, if you want to do something
662
+ * Extend the drop method, if you want to do something
663
663
  * when this instance is the target of another instance's endDrag event.
664
664
  * Called when a dragged component instance is dropped on the target instance.
665
665
  *
@@ -674,7 +674,7 @@ HEventResponder = HClass.extend({
674
674
 
675
675
  /** = Description
676
676
  * Default startHover event responder method. Does nothing by default.
677
- * Extend the startHover method, if you want to do something
677
+ * Extend the startHover method, if you want to do something
678
678
  * when this instance is the target of another instance's drag event.
679
679
  * Called when a dragged component instance is dragged over
680
680
  * the target instance.
@@ -687,14 +687,14 @@ HEventResponder = HClass.extend({
687
687
  this.onHoverStart(obj);
688
688
  },
689
689
  onHoverStart: function(obj) {},
690
-
690
+
691
691
  hover: function(obj){
692
692
 
693
693
  },
694
694
 
695
695
  /** = Description
696
696
  * Default endHover event responder method. Does nothing by default.
697
- * Extend the endHover method, if you want to do something
697
+ * Extend the endHover method, if you want to do something
698
698
  * when this instance is no longer the target of another instance's
699
699
  * drag event. Called when a dragged component instance is dragged
700
700
  * away from the target instance.
@@ -707,7 +707,7 @@ HEventResponder = HClass.extend({
707
707
  this.onHoverEnd(obj);
708
708
  },
709
709
  onHoverEnd: function(obj) {},
710
-
710
+
711
711
  /** = Description
712
712
  * Default keyDown event responder method. Does nothing by default.
713
713
  * Extend the keyDown method, if you want to do something
@@ -718,7 +718,7 @@ HEventResponder = HClass.extend({
718
718
  *
719
719
  **/
720
720
  keyDown: function(_keycode) {},
721
-
721
+
722
722
  /** = Description
723
723
  * Default keyUp event responder method. Does nothing by default.
724
724
  * Extend the keyUp method, if you want to do something
@@ -729,7 +729,7 @@ HEventResponder = HClass.extend({
729
729
  *
730
730
  **/
731
731
  keyUp: function(_keycode) {},
732
-
732
+
733
733
  /** = Description
734
734
  * Default textEnter event responder method. Does nothing by default.
735
735
  * Extend the textEnter method, if you want to do something
@@ -7,7 +7,7 @@
7
7
  ***/
8
8
  var//RSence.Foundation
9
9
  HValueMatrixInterface = {
10
-
10
+
11
11
  /** = Description
12
12
  * Standard +HControl+ constructor model.
13
13
  * Passes parameters through to its base class's constructor,
@@ -18,7 +18,7 @@ HValueMatrixInterface = {
18
18
  this.base(_rect, _parent, _options);
19
19
  this.setValueMatrix();
20
20
  },
21
-
21
+
22
22
  /** = Description
23
23
  * Binds itself to the parent's HValueMatrix instance.
24
24
  *
@@ -27,12 +27,12 @@ HValueMatrixInterface = {
27
27
  *
28
28
  **/
29
29
  setValueMatrix: function(){
30
- if(this.parent['valueMatrix'] === undefined){
30
+ if(this.parent.valueMatrix === undefined){
31
31
  this.parent.valueMatrix = HValueMatrix.nu();
32
32
  }
33
33
  this.valueMatrixIndex = this.parent.valueMatrix.addControl(this);
34
34
  },
35
-
35
+
36
36
  /** Sets itself active using the parent's valueMatrix on the click event.
37
37
  **/
38
38
  click: function(){
@@ -40,13 +40,13 @@ HValueMatrixInterface = {
40
40
  this.parent.valueMatrix.setValue( this.valueMatrixIndex );
41
41
  }
42
42
  },
43
-
43
+
44
44
  /** The destructor makes sure +self+ is released from the parent's valueMatrix
45
45
  * upon destruction.
46
46
  **/
47
47
  die: function(){
48
- if(this['parent']){
49
- if(this.parent['valueMatrix']){
48
+ if(this.parent){
49
+ if(this.parent.valueMatrix){
50
50
  this.parent.valueMatrix.release(this);
51
51
  }
52
52
  }
@@ -61,7 +61,7 @@ HValueMatrixInterface = {
61
61
  ***/
62
62
  var//RSence.Foundation
63
63
  HValueMatrix = HClass.extend({
64
-
64
+
65
65
  /** The constructor doesn't take parameters.
66
66
  **/
67
67
  constructor: function(){
@@ -71,15 +71,15 @@ HValueMatrix = HClass.extend({
71
71
  this.value = -1;
72
72
  this.valueObj = new HDummyValue();
73
73
  },
74
-
74
+
75
75
  /** Method for value interfaces, called by the HValue instance when bound.
76
76
  **/
77
77
  setValueObj: function(_valueObj){
78
78
  this.valueObj = _valueObj;
79
79
  this.setValue(_valueObj.value);
80
80
  },
81
-
82
- /** Method for value interfaces, the +_index+ is the
81
+
82
+ /** Method for value interfaces, the +_index+ is the
83
83
  * index of the item to select.
84
84
  **/
85
85
  setValue: function(_index){
@@ -101,7 +101,7 @@ HValueMatrix = HClass.extend({
101
101
  this.valueObj.set(_index);
102
102
  }
103
103
  },
104
-
104
+
105
105
  /** A method for attaching a +HControl+ -derived class to the matrix.
106
106
  **/
107
107
  addControl: function(_ctrl) {
@@ -112,7 +112,7 @@ HValueMatrix = HClass.extend({
112
112
  }
113
113
  return _newIndex;
114
114
  },
115
-
115
+
116
116
  /** A method for releasing a +HControl+ -derived class from the matrix.
117
117
  **/
118
118
  release: function(_ctrl) {