//================================= CLASS CONSTRUCTOR ========================================
function GQBuilder()
{
//MEMBER VARIABLES
//Called when query needs initialization data ...
 this.eDataGet = null;
//Called when user changed query data ...
 this.eDataChanged = null;
//Called when user accepted the changes in query data ...
 this.eDataAccepted = null;
//Called when user canceled the current query data ... (doesn't want to change the data)
 this.eDataCancel = null;
}

//====================================== STATIC ==============================================
 
//====================================== MEMBERS =============================================
GQBuilder.prototype.setDefaults = function()
{
 this.eDataGet = null;
 this.eDataChanged = null;
 this.eDataAccepted = null;
 this.modalResult = Globals.MODALRESULT_NONE;
}

GQBuilder.prototype.initialize = function()
{
 this.setDefaults();
}

GQBuilder.prototype.callEDataGet = function()
{
 if (this.eDataGet != null)
  return this.eDataGet();
 else
  return null;
}

GQBuilder.prototype.setEDataGet = function(ieDataGet)
{
 this.eDataGet = ieDataGet;
}

GQBuilder.prototype.callEDataChanged = function(iqData)
{
 if (this.eDataChanged != null)
  this.eDataChanged(iqData);
}

GQBuilder.prototype.setEDataChanged = function(ieDataChanged)
{
 this.eDataChanged = ieDataChanged;
}

GQBuilder.prototype.callEDataAccepted = function(iqData)
{
 if (this.eDataAccepted != null)
  this.eDataAccepted(iqData);
}

GQBuilder.prototype.setEDataAccepted = function(ieDataAccepted)
{
 this.eDataAccepted = ieDataAccepted;
}

GQBuilder.prototype.callEDataCancel = function()
{
 if (this.eDataCancel != null)
  this.eDataCancel();
}

GQBuilder.prototype.setEDataCancel = function(ieDataCancel)
{
 this.eDataCancel = ieDataCancel;
}

GQBuilder.prototype.finalize = function()
{
 this.setDefaults();
}
