1 include(bbq.gui.button.GUIButton);
  2 
  3 /** 
  4  * 
  5  * NativeButton
  6  * 
  7  * This class is similar to the GUIButton class but uses a standard browser submit input button as its
  8  * base.
  9  * 
 10  * @class bbq.gui.button.NativeButton
 11  * @extends bbq.gui.button.GUIButton 
 12  */
 13 bbq.gui.button.NativeButton = Class.create(bbq.gui.button.GUIButton, {
 14 	/**
 15 	 * Supports the same options as bbq.gui.button.GUIButton
 16 	 * @param {mixed} options
 17 	 * @example 
 18 	 * Todo an example
 19 	 */
 20 	initialize: function($super, options) {
 21 		$super(options);
 22 
 23 		this.addClass("NativeButton");
 24 	},
 25 
 26 	_setUpRootNode: function() {
 27 		this.setRootNode("input");
 28 
 29 		this.setAttribute("type", "submit");
 30 
 31 		if (this.options.text) {
 32 			this.setAttribute("value", this.options.text);
 33 		}
 34 	},
 35 
 36 	/**
 37 	 * @param {boolean} disabled
 38 	 */
 39 	setDisabled: function(disabled) {
 40 		this._disabled = disabled;
 41 		this.getRootNode().disabled = this.disabled;
 42 	},
 43 
 44 	setText: function(text) {
 45 		this.setAttribue("value", text);
 46 	}
 47 });
 48