// $Id$ /** * Baseclass for all widgets. * * Provides abstract hooks for child classes. * * @param properties A map of fields to set. May be new or public fields. * @class AbstractWidget */ AjaxSolr.AbstractWidget = AjaxSolr.Class.extend( /** @lends AjaxSolr.AbstractWidget.prototype */ { /** * A unique identifier of this widget. * * @field * @public * @type String */ id: null, /** * The CSS selector for this widget's target HTML element, e.g. a specific * div or ul. A Widget is usually implemented to perform * all its UI changes relative to its target HTML element. * * @field * @public * @type String */ target: null, /** * A reference to the widget's manager. For internal use only. * * @field * @private * @type AjaxSolr.AbstractManager */ manager: null, /** * An abstract hook for child implementations. * *

This method should do any necessary one-time initializations.

*/ init: function () {}, /** * An abstract hook for child implementations. * *

This method is executed before the Solr request is sent.

*/ beforeRequest: function () {}, /** * An abstract hook for child implementations. * *

This method is executed after the Solr response is received.

*/ afterRequest: function () {} });