function NewSwaraSpacerViewContent()
{
    /**
     * return whether or not the view is currently selected as discernible from the
     * html contents of its view
     * @return true or false indicating as to whether the view is currently selected
     *	       or not
     * @type boolean
     */
    this.isSelected = function() { return this.fSelected; }

    /**
     * return whether or not the view is currently being edited as discernible from the
     * html contents of its view
     * @return true or false indicating as to whether the view is currently selected
     *	       or not
     * @type boolean
     */
    this.isBeingEdited = function() { return this.fIsBeingEdited; }

    /**
     * initialize the object - <b>must</b> be called first
     * @param {NewSwaraSpacerView} view	the swara view whose html content would be parsed to
     *				check if its display adheres to what we expect
     * @return null on success, else failure reason
     */
    this.init = function(view) {
	var contents = printNode(view.getContents());

	// remove new-lines
	var re = /\s/gm;
	var lContents = contents.replace( re, " " );

	var re_spacer = /(\<div[^\>]*class=["]*newswaraspacer["]*[^\>]*\>)/i;
	var i = re_spacer.exec(contents);

	if( i == null || !i.length || i.length != 2 ) return "not a swara spacer";

	var selre = /border[^\s]*:[^;]*rgb\(0[\s]*,[\s]*0[\s]*,[\s]*255[\s]*\)/i;
	var selre1 = /border[^\s]*:[^;]*#0000ff/i;
	if( i[1].match(selre) || i[1].match(selre1) ) this.fSelected = true;

	var editre = /insert-caret.gif/i;
	if( i[1].match(editre) ) this.fIsBeingEdited = true;

	return null;
    }

    this.fSelected    = false;
    this.fIsBeingEdited = false;
}
/**
 * @class
 * represents the html content of a new swara spacer view in the swara-editor
 */
@class
represents the html content of a new swara spacer view in the swara-editor
@class represents the html content of a new swara spacer view in the swara - editor
function NewSwaraSpacerViewContent()
{
    this.isSelected = function() { return this.fSelected; }
    this.isBeingEdited = function() { return this.fIsBeingEdited; }
    this.init = function(view) {
	var contents = printNode(view.getContents());
	var re = /\s/gm;
	var lContents = contents.replace( re, " " );
	var re_spacer = /(\<div[^\>]*class=["]*newswaraspacer["]*[^\>]*\>)/i;
	var i = re_spacer.exec(contents);
	if( i == null || !i.length || i.length != 2 ) return "not a swara spacer";
	var selre = /border[^\s]*:[^;]*rgb\(0[\s]*,[\s]*0[\s]*,[\s]*255[\s]*\)/i;
	var selre1 = /border[^\s]*:[^;]*#0000ff/i;
	if( i[1].match(selre) || i[1].match(selre1) ) this.fSelected = true;
	var editre = /insert-caret.gif/i;
	if( i[1].match(editre) ) this.fIsBeingEdited = true;
	return null;
    }
    this.fSelected    = false;
    this.fIsBeingEdited = false;
}
function NewSwaraSpacerViewContent ( ) { this . isSelected = function ( ) { return this . fSelected ; } this . isBeingEdited = function ( ) { return this . fIsBeingEdited ; } this . init = function ( view ) { var contents = printNode ( view . getContents ( ) ) ; var re = / \s / gm ; var lContents = contents . replace ( re , " " ) ; var re_spacer = / (\<div[^\>]*class=["]*newswaraspacer["]*[^\>]*\>) / i ; var i = re_spacer . exec ( contents ) ; if ( i == null || ! i . length || i . length != 2 ) return "not a swara spacer" ; var selre = / border[^\s]*:[^;]*rgb\(0[\s]*,[\s]*0[\s]*,[\s]*255[\s]*\) / i ; var selre1 = / border[^\s]*:[^;]*#0000ff / i ; if ( i [ 1 ] . match ( selre ) || i [ 1 ] . match ( selre1 ) ) this . fSelected = true ; var editre = / insert-caret.gif / i ; if ( i [ 1 ] . match ( editre ) ) this . fIsBeingEdited = true ; return null ; } this . fSelected = false ; this . fIsBeingEdited = false ; }
@class
 represents the html content of a new swara spacer view in the swara-editor
@class represents the html content of a new swara spacer view in the swara - editor
/**
     * return whether or not the view is currently selected as discernible from the
     * html contents of its view
     * @return true or false indicating as to whether the view is currently selected
     *	       or not
     * @type boolean
     */ /**
     * return whether or not the view is currently being edited as discernible from the
     * html contents of its view
     * @return true or false indicating as to whether the view is currently selected
     *	       or not
     * @type boolean
     */ /**
     * initialize the object - <b>must</b> be called first
     * @param {NewSwaraSpacerView} view	the swara view whose html content would be parsed to
     *				check if its display adheres to what we expect
     * @return null on success, else failure reason
     */ // remove new-lines
