SOURCE CODE: Uize.Widgets.Log.VisualSampler

VIEW REFERENCE

/*______________
|       ______  |   U I Z E    J A V A S C R I P T    F R A M E W O R K
|     /      /  |   ---------------------------------------------------
|    /    O /   |    MODULE : Uize.Widgets.Log.VisualSampler Class
|   /    / /    |
|  /    / /  /| |    ONLINE : http://uize.com
| /____/ /__/_| | COPYRIGHT : (c)2013-2014 UIZE
|          /___ |   LICENSE : Available under MIT License or GNU General Public License
|_______________|             http://uize.com/license.html
*/

/* Module Meta Data
  type: Class
  importance: 1
  codeCompleteness: 100
  docCompleteness: 100
*/

/*?
  Introduction
    The =Uize.Widgets.Log.VisualSampler= class implements a visual sampler widget for the =Uize.Widgets.Log.Widget= class.

    *DEVELOPERS:* `Chris van Rensburg`
*/

Uize.module ({
  name:'Uize.Widgets.Log.VisualSampler',
  superclass:'Uize.Widgets.VisualSampler.Widget',
  required:'Uize.Widgets.Log.Widget',
  builder:function (_superclass) {
    'use strict';

    return _superclass.subclass ({
      omegastructor:function () {
        var _log = this.addSample ({title:'LOG TITLE'});
        Uize.forEach (20,function () {_log.log ('a log message')});
      },

      set:{
        samplerWidgetClass:Uize.Widgets.Log.Widget
      }
    });
  }
});