Class Index | File Index

## Classes

- _global_
- jQuery
- RichFaces
- RichFaces.ajax
- RichFaces.BaseComponent
- RichFaces.Event
- RichFaces.queue

# Class RichFaces.BaseComponent

Base class for all components. All RichFaces components should use this class as base or another RichFaces class which based on it.

    		//Inheritance example:
    		(function ($, richfaces, params) {

    			// Constructor definition
    			richfaces.MyComponent = function(componentId, [options]) {
    				// call constructor of parent class
    				$super.constructor.call(this, componentId, [options]);
    			};

    			// define private method
    			var myPrivateMethod = function () {
    			}

    			// Extend component class and add protected methods from parent class to our container
    			richfaces.BaseComponent.extend(richfaces.BaseComponent, richfaces.MyComponent);

    			// define super class link
    			var $super = richfaces.MyComponent.$super;

    			// Add new properties and methods
    			$.extend(richfaces.MyComponent.prototype, (function (params) {
    				return {
    		 				name:"MyComponent",
    						f:function (){alert("hello");
    					}
    				};
    			})(params));
    		})(jQuery, RichFaces);

Defined in: richfaces-base-component.js.

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| RichFaces.BaseComponent(componentId)

Class Detail
RichFaces.BaseComponent(componentId)

Parameters:
{String} componentId
  - component id

Documentation generated by JsDoc Toolkit 2.0.0 on Tue Aug 24 2010 20:28:54 GMT-0400 (EDT)