/*****************************************************************************
 *
 * File     : GmlPanel.js
 * 
 * Project  : WMS Viewer Client
 * 
 * Contents : 
 *
 * Author: Milan Trninic
 *
 * Copyright 1999-2005 Galdos Systems, Inc.
 * All rights reserved.
 * 
 ***|***************************|***********************|*******************|*/

/************************************************************************
*
*	Global declarations
*
*
*************************************************************************/

/************************************************************************
*
*	function:	GmlPanel
*
*	purpose:	Constructor
*
*************************************************************************/
function GmlPanel()
{
	// superclass
	var uiElement = document.getElementById("gmlPanel");
	this._superClass = StackedPanel;
	this._superClass(uiElement);

	// method assignments
	this.init = GmlPanel.init;
	this.setSize = GmlPanel.setSize;
	
	// instance field declarations
	this._gmlPanelUI;
	this._gmlViewUI;

	// initialization
	this.init();
}

/************************************************************************
*
*	function:	init
*
*	purpose:	initializes the globals
*
*************************************************************************/
function GmlPanel.init()
{
	this._gmlPanelUI = document.getElementById("gmlPanel");;
	this._gmlViewUI = document.getElementById("gmlView");;
	this._gmlViewUI.attachEvent("onload", onGmlViewResult);
}
	
/************************************************************************
*
*	function:	setSize
*
*	purpose:	
*
*************************************************************************/
function GmlPanel.setSize(width, height)
{
	// For explanation of the purpose of the temp variable, see the documentation
	this.temp = this._superClass.setSize;
	this.temp(width, height);
	this._gmlViewUI.width = width;
	this._gmlViewUI.height = height;
}

