function Button() 
{
    /**
     * initialize the button
     * 
     * @param {ActionHandler} actionHandler	action handler to call
     *						when button is selected
     * @param actionID				action id to pass to provider
     * @param {String} label	label of the button
     * @param {String} w	(optional) width of the button as a string specifiable
     *				in a css style
     */
    this.initButton = function(actionHandler, actionID, label, w) {
	var i = document.createElement("input");
	i.type = "button";
	if( w )
	    i.style.width = width;
	i.value = label;
	i.id    = Utils.getNewId("but");
	Utils.addToIdMap(i, this); // i.view  = this;
	i.onclick  = this._contentMouseClicked;
	this.fOuter = i;
	this.fActionHandler = actionHandler;
	this.fActionID      = actionID;
    }

    /**
     * called when mouse is leaves the button content area
     * @private
     */
    function _contentMouseOut() {
	var but = Utils.getObjForId(this);	// this.view;
	if(but)
	    but.fActionHandler.doAction(but, but.fActionID);
    }

}
/**
 * @class
 * represents a button, which can then be placed in toolbar or a form
 */
@class
represents a button, which can then be placed in toolbar or a form
@class represents a button which can then be placed in toolbar or a form
function Button() 
{
    this.initButton = function(actionHandler, actionID, label, w) {
	var i = document.createElement("input");
	i.type = "button";
	if( w )
	    i.style.width = width;
	i.value = label;
	i.id    = Utils.getNewId("but");
	Utils.addToIdMap(i, this); 
	i.onclick  = this._contentMouseClicked;
	this.fOuter = i;
	this.fActionHandler = actionHandler;
	this.fActionID      = actionID;
    }
    function _contentMouseOut() {
	var but = Utils.getObjForId(this);	
	if(but)
	    but.fActionHandler.doAction(but, but.fActionID);
    }
}
function Button ( ) { this . initButton = function ( actionHandler , actionID , label , w ) { var i = document . createElement ( "input" ) ; i . type = "button" ; if ( w ) i . style . width = width ; i . value = label ; i . id = Utils . getNewId ( "but" ) ; Utils . addToIdMap ( i , this ) ; i . onclick = this . _contentMouseClicked ; this . fOuter = i ; this . fActionHandler = actionHandler ; this . fActionID = actionID ; } function _contentMouseOut ( ) { var but = Utils . getObjForId ( this ) ; if ( but ) but . fActionHandler . doAction ( but , but . fActionID ) ; } }
@class
 represents a button, which can then be placed in toolbar or a form
@class represents a button which can then be placed in toolbar or a form
/**
     * initialize the button
     * 
     * @param {ActionHandler} actionHandler	action handler to call
     *						when button is selected
     * @param actionID				action id to pass to provider
     * @param {String} label	label of the button
     * @param {String} w	(optional) width of the button as a string specifiable
     *				in a css style
     */ // i.view  = this;
 /**
     * called when mouse is leaves the button content area
     * @private
     */ // this.view;
