Obsah

tabLoader

Funkcie vytvoreného Tab-u

function _tabInit()
{
}
 
 
function _tabAfterInit()
{
}
 
 
function _tabDone()
{
}
 
 
function _tabSetData(formData)
{
}
 
 
function _tabGetData()
{
}
 
 
function _tabSetPartData(formData)
{
}
 
 
function _tabGetPartData()
{
}
 
 
function _tabSelect()
{
}
 
 
function _tabUnselect()
{
}
 
 
function _tabCanUnselect()
{
}
 
 
function getControlsList()
{
}
 
 
function getControlsPartList()
{
}
 
 
function _tabDataChanged()
{
}
 
 
function _tabGetSettingsStatus()
{
}

Príklad

function _tabInit()
{
}
 
 
function _tabSetData(formData)
{
	var helperData = this._tabSource.loadedHelperData;
 
 
	_UI_TOOLS.restoreTabFormData(formData, this.getControlsList(), helperData);
}
 
 
function _tabGetData()
{
	var result = {};
 
 
	_UI_TOOLS.storeTabFormData(result, this.getControlsList());
 
 
	return result;
}
 
 
function _tabSetPartData(formData)
{
	var helperData = this._tabSource.loadedHelperData;
 
 
	_UI_TOOLS.restoreTabFormData(formData, this.getControlsPartList(), helperData);
}
 
 
function _tabGetPartData()
{
	var result = {};
 
 
	_UI_TOOLS.storeTabFormData(result, this.getControlsPartList());
 
 
	return result;
}
 
 
function getControlsList()
{
	var result = [
		[TAB_FORM_COMBOBOX, 'module'            , this.txt_module],
		[TAB_FORM_STRING  , 'code'              , this.txt_code],
		[TAB_FORM_STRING  , 'idf'               , this.txt_idf],
 
		[TAB_FORM_DATE    , 'valid_from'        , this.txt_valid_from],
 
		[TAB_FORM_NUMBER  , 'ordinal_position'  , this.txt_ordinal_position],
 
		[TAB_FORM_COMBOBOX, 'type'              , this.txt_type],
 
		[TAB_FORM_CHECKBOX_STRING, 'active'     , this.chk_active]
	];
 
 
	result = result.concat(this.getControlsPartList());
 
 
	return result;
}
 
 
function getControlsPartList()
{
	var result = [];
	return result;
}