// Gaia Ajax Copyright (C) 2008 - 2009 Gaiaware AS. details at http://gaiaware.net/

/* 
 * Gaia Ajax - Ajax Control Library for ASP.NET
 * Copyright (C) 2008 - 2009 Gaiaware AS
 * All rights reserved.
 * This program is distributed under either GPL version 3 
 * as published by the Free Software Foundation or the
 * Gaia Commercial License version 1 as published by
 * Gaiaware AS
 * read the details at http://gaiaware.net
 */

/* ---------------------------------------------------------------------------
   Class basically wrapping the ASP.Label WebControl class
   --------------------------------------------------------------------------- */
Gaia.Label = Class.create(Gaia.WebControl, {

  // "Constructor"
  initialize: function(element, options){
    this.initializeLabel(element, options);
  },

  initializeLabel: function(element, options){
    // Calling base class constructor
    this.initializeWebControl(element, options);
  },

  // Sets text of button
  setText: function(value){
    this.element.innerHTML = value;
    return this;
  },
  
  setTabIndex: function(value) {
    // label does not support tab index
    return this;
  },

  _getElementPostValue: function(){
    return '';
  }
});

Gaia.Label.browserFinishedLoading = true;
