2011-11-02 21:00:55 +00:00
|
|
|
/**
|
|
|
|
* Creates an es.TableView object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @constructor
|
|
|
|
* @extends {es.DocumentViewBranchNode}
|
|
|
|
* @param {es.TableModel} model Table model to view
|
|
|
|
*/
|
|
|
|
es.TableView = function( model ) {
|
|
|
|
// Inheritance
|
|
|
|
es.DocumentViewBranchNode.call( this, model, $( '<table>' ) );
|
|
|
|
|
|
|
|
// DOM Changes
|
|
|
|
this.$
|
|
|
|
.attr( 'style', model.getElementAttribute( 'html/style' ) )
|
|
|
|
.addClass( 'es-tableView' );
|
|
|
|
};
|
|
|
|
|
2011-11-14 23:59:36 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
es.DocumentModel.nodeRules.table = {
|
|
|
|
'self': false,
|
|
|
|
'children': false
|
|
|
|
};
|
|
|
|
|
2011-11-02 21:00:55 +00:00
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
es.extendClass( es.TableView, es.DocumentViewBranchNode );
|