GpsGate Server JavaScript API

Interface  1.0.0

GpsGate Server JavaScript API > Interface > istateful.js (source view)
Search:
 
Filters
// placeholder stub for doc-tags

/**
 *
 * @module Interface
 */

/**
 * Specification for the interface necessary to use with the StateManager system.
 * Typically for UI controls etc.
 * @class Franson.IStateful
 */
Franson.IStateful = function()
{
	/**
	 * @type string
	 */
	this.id = 123;
};


Franson.IStateful.prototype =
{
	/**
	 * @method _saveState
	 * @return {object} must be JSON-serializable.
	 */
	_saveState: function() // todo: remove underscore?
	{
		return {};
	},

	/**
	 * @method _restoreState
	 * @param {object} state (JSON-serializable)
	 */
	_restoreState: function(state) // todo: remove underscore?
	{
	}
};

Copyright © 2009 Franson Technology AB, Sweden. All rights reserved.