function HeadingBoldButton()
{
    /**
     * {@link EventListener} interface implementation
     */
    this.onEvent = function(evt, src, data) {
	if( evt == EventManager.EVENT_HEADING_SELECTED ) {
	    var headingView = src;
	    var model     = data;
	    this.fHeadingView = src;
	    if( model.fBold ) this.setSelected(true);
	    else             this.setSelected(false);
	    return;
	}
    }

    /**
     * {@link ActionHandler} interface implementation
     */
    this.doAction = function(src, actionID) {
	if( this.fHeadingView ) {
	    this.fHeadingView.setBold(this.isSelected());
	}
    }

    /**
     * override of base class method to provide real content
     */
    this.provideContent = function() {
	var div = document.createElement("div");
	div.style.fontSize = "85%";	// need to to this to match toolbar font
	div.style.fontWeight = "bold";	// need to to this to match toolbar font
	div.style.topMargin = "2";
	div.style.bottomMargin = "2";
	div.style.width = "1em";
	div.style.textAlign = "center";
	div.appendChild( document.createTextNode("B"));
	return div;
    }

    this.initButton(this, null);
    EventManager.addListener(EventManager.EVENT_HEADING_SELECTED, this);
}
/**
 * @class
 * represents bold button in heading toolbar - this is a toggle button
 */
@class
represents bold button in heading toolbar - this is a toggle button
@class represents bold button in heading toolbar - this is a toggle button
function HeadingBoldButton()
{
    this.onEvent = function(evt, src, data) {
	if( evt == EventManager.EVENT_HEADING_SELECTED ) {
	    var headingView = src;
	    var model     = data;
	    this.fHeadingView = src;
	    if( model.fBold ) this.setSelected(true);
	    else             this.setSelected(false);
	    return;
	}
    }
    this.doAction = function(src, actionID) {
	if( this.fHeadingView ) {
	    this.fHeadingView.setBold(this.isSelected());
	}
    }
    this.provideContent = function() {
	var div = document.createElement("div");
	div.style.fontSize = "85%";	
	div.style.fontWeight = "bold";	
	div.style.topMargin = "2";
	div.style.bottomMargin = "2";
	div.style.width = "1em";
	div.style.textAlign = "center";
	div.appendChild( document.createTextNode("B"));
	return div;
    }
    this.initButton(this, null);
    EventManager.addListener(EventManager.EVENT_HEADING_SELECTED, this);
}
function HeadingBoldButton ( ) { this . onEvent = function ( evt , src , data ) { if ( evt == EventManager . EVENT_HEADING_SELECTED ) { var headingView = src ; var model = data ; this . fHeadingView = src ; if ( model . fBold ) this . setSelected ( true ) ; else this . setSelected ( false ) ; return ; } } this . doAction = function ( src , actionID ) { if ( this . fHeadingView ) { this . fHeadingView . setBold ( this . isSelected ( ) ) ; } } this . provideContent = function ( ) { var div = document . createElement ( "div" ) ; div . style . fontSize = "85%" ; div . style . fontWeight = "bold" ; div . style . topMargin = "2" ; div . style . bottomMargin = "2" ; div . style . width = "1em" ; div . style . textAlign = "center" ; div . appendChild ( document . createTextNode ( "B" ) ) ; return div ; } this . initButton ( this , null ) ; EventManager . addListener ( EventManager . EVENT_HEADING_SELECTED , this ) ; }
@class
 represents bold button in heading toolbar - this is a toggle button
@class represents bold button in heading toolbar - this is a toggle button
/**
     * {@link EventListener} interface implementation
     */ /**
     * {@link ActionHandler} interface implementation
     */ /**
     * override of base class method to provide real content
     */ // need to to this to match toolbar font
 // need to to this to match toolbar font
