/* 
 * Gaia Ajax Widgets, an Ajax Widget Library
 * Copyright (C) 2007  Frost Innovation AS
 * All rights reserved.
 * This program is distributed under either GPL version 2 
 * as published by the Free Software Foundation or the
 * Gaia Commercial License version 1 as published by
 * Frost Innovation AS
 * read the details at http://ajaxwidgets.com/
 */



/* ---------------------------------------------------------------------------
   Class basically wrapping the ASP.Label WebControl class
   --------------------------------------------------------------------------- */
WebControl.Label = function(element, options){
  this.initialize(element, options);
}

WebControl.Label.prototype = Object.extend(new WebControl(),{

  // "Constructor"
  initialize: function(element, options){
    // Calling base class constructor
    this.baseInitializeWebControl(element, options);
  },

  // Sets text of button
  setText: function(value){
    this.element.innerHTML = value;
    return this;
  },

  _getElementPostValue: function(){
    return '';
  },

  _shouldSerializeValue: function(){
    return false;
  }
});
