1 jls.loader.provide('jls.win32.Label'); 2 3 jls.loader.require('jls.win32.WindowElement'); 4 jls.loader.require('jls.win32.Static'); 5 6 jls.win32.Label = jls.lang.Class.create(jls.win32.WindowElement, 7 { 8 initialize : function($super, parameters, parent) { 9 this._text = ''; 10 $super(parameters, parent); 11 }, 12 onCreate : function() { 13 this._window = new jls.win32.Static(this.getText(), this.getWindowStyle(), 14 this.getX(), this.getY(), this.getW(), this.getH(), 15 this.getParentWindow(true), this.getWindowId(true), this.getWindowExStyle()); 16 }, 17 getText : function() { 18 if (this._window != null) { 19 this._text = this._window.getText(); 20 } 21 return this._text; 22 }, 23 setText : function(value) { 24 if (this._window != null) { 25 this._window.setText(value); 26 } 27 this._text = value; 28 return this; 29 } 30 }); 31 32