﻿
/**
*	@class AbstractSitePage
*
*	The AbstractSitePage is the base class for all front-end site pages. All pages will extend this object
*
*	@author			Daniel Ivanovic dan@anti-blanks.co.uk
*/

var AbstractSitePage = AbstractPage.extend(
	{
		/**
		*   init
		*
		*   Constructs the screen
		*
		*	@param	t - type string
		*/
		init: function(t)
		{
			this._super( t );
		},
		
		/**
		*   setup
		*
		*   Sets up the view instance
		*/
		setup: function()
		{
			//this.debug( "setting up" );
			
			// call super last once all setup is complete
			// this will init the screen & build all the views
			this._super();
		},
		
		/**
		*   build
		*
		*   Builds the view
		*/
		build: function()
		{
			//this.debug( "building" );
			
			// build all abstract page elements
			this._super();
		},
		
		/**
		*   buildDialogues
		*
		*   Builds the page dialogues
		*/
		buildDialogues: function()
		{
			//this.debug( "building page dialogues " );
			
			// build all abstract page dialogues
			this._super();
		},
		
		/**
		*   buildComponents
		*
		*   Builds the page components
		*/
		buildComponents: function()
		{
			//this.debug( "building page components " );
			
			// build all abstract page components
			this._super();
		},
		
		/**
		*   update
		*
		*   Updates the view
		*
		*	@param	t - event type
		*	@param	d - data
		*/
		update: function(t, d)
		{
			//this.debug( "updating " + t + " : " + d );
			
			// update page elements
			this._super( t, d );
		}
	}
);
