/* 
 * 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.PlaceHolder WebControl class
   --------------------------------------------------------------------------- */
WebControl.PlaceHolder = function(element, options){
  this.initialize(element, options);
}

WebControl.PlaceHolder.prototype = Object.extend(new Control(), Object.extend(new WebControl.Container(), {

  // "Constructor"
  initialize: function(element, options){
    // Calling base class constructor
    this.baseInitializeControl(element, options);
  },

  destroy: function(){
    // Destroying all CHILDREN controls
    this.destroyChildrenControls();

    // Dispatching to container DTOR
    this.destroyContainer(this.element.id);

    // Calling Object.destroy implementation...
    this._destroyImpl();
  },

  _getElementPostValue: function(){
    return '';
  }
}));

