function TextMenuItem(tr, txt, actionHandler, actionID) 
{
    /**
     * called by @{link MenuItem} so that we can provide content for the menu item
     */
    this.provideContent = function() {
	var d = document.createElement("div");
	d.style.textAlign = "left";
	this.fTextNode = document.createTextNode(this.fText);
	d.appendChild(this.fTextNode);
	return d;
    }

    /**
     * set the text of the menu item
     */
    this.setText = function(txt) {
	this.fText = txt;
	if( this.fTextNode ) 
	    this.fTextNode.nodeValue = text;
    }

    /**
     * the text of the menu item
     * @type String
     * @private
     */
    this.fText = txt;

    /**
     * the text node of the menu item
     * @type DOMElement
     * @private
     */
    this.fTextNode = null;

    this.initMenuItem(tr, actionHandler, actionID);
}
/**
 * @class
 * represents a simple menu item whose context is a label/text
 * @constructor
 * @param {DOMElement_TR} tr		the row for the menu under which this menu item
 *			      		is to be displayed
 * @param {String} txt			the menu item text
 *
 * @param actionHandler   		the object whose doMenuItemAction method would be called
 *			      		when the menu item is selected
 * @param actionID        		the action handler specific actionID to pass to 
 *			      		the action handler's actionID method
 */
@class
represents a simple menu item whose context is a label/text
@constructor
@param {DOMElement_TR} tr            the row for the menu under which this menu item
is to be displayed
@param {String} txt                  the menu item text

@param actionHandler                 the object whose doMenuItemAction method would be called
when the menu item is selected
@param actionID                      the action handler specific actionID to pass to
the action handler's actionID method
@class represents a simple menu item whose context is a label / text @constructor @param { DOMElement_TR } tr the row for the menu under which this menu item is to be displayed @param { String } txt the menu item text @param actionHandler the object whose doMenuItemAction method would be called when the menu item is selected @param actionID the action handler specific actionID to pass to the action handler ' s actionID method
function TextMenuItem(tr, txt, actionHandler, actionID) 
{
    this.provideContent = function() {
	var d = document.createElement("div");
	d.style.textAlign = "left";
	this.fTextNode = document.createTextNode(this.fText);
	d.appendChild(this.fTextNode);
	return d;
    }
    this.setText = function(txt) {
	this.fText = txt;
	if( this.fTextNode ) 
	    this.fTextNode.nodeValue = text;
    }
    this.fText = txt;
    this.fTextNode = null;
    this.initMenuItem(tr, actionHandler, actionID);
}
function TextMenuItem ( tr , txt , actionHandler , actionID ) { this . provideContent = function ( ) { var d = document . createElement ( "div" ) ; d . style . textAlign = "left" ; this . fTextNode = document . createTextNode ( this . fText ) ; d . appendChild ( this . fTextNode ) ; return d ; } this . setText = function ( txt ) { this . fText = txt ; if ( this . fTextNode ) this . fTextNode . nodeValue = text ; } this . fText = txt ; this . fTextNode = null ; this . initMenuItem ( tr , actionHandler , actionID ) ; }
@class
 represents a simple menu item whose context is a label/text
 @constructor
 @param {DOMElement_TR} tr            the row for the menu under which this menu item
                                      is to be displayed
 @param {String} txt                  the menu item text
@class represents a simple menu item whose context is a label / text @constructor @param { DOMElement_TR } tr the row for the menu under which this menu item is to be displayed @param { String } txt the menu item text
/**
     * called by @{link MenuItem} so that we can provide content for the menu item
     */ /**
     * set the text of the menu item
     */ /**
     * the text of the menu item
     * @type String
     * @private
     */ /**
     * the text node of the menu item
     * @type DOMElement
     * @private
     */