function Controller(){function e(e){Alloy.Globals.menuEdit.click(e)}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="menuTableHeader",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var t=this,l={},i={};t.__views.menuTableHeader=Ti.UI.createTableViewRow({backgroundColor:Alloy.CFG.colors.darkBlue,backgroundGradient:Alloy.CFG.gradients.darkBlue,width:Ti.UI.FILL,height:Ti.UI.SIZE,ignoreClicks:!0,id:"menuTableHeader"}),t.__views.menuTableHeader&&t.addTopLevelView(t.__views.menuTableHeader),t.__views.title=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.bold},color:Alloy.CFG.colors.white,width:250,height:43,left:12,text:"",id:"title"}),t.__views.menuTableHeader.add(t.__views.title),t.__views.edit=Ti.UI.createButton({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.bold},color:Alloy.CFG.colors.white,width:48,height:33,backgroundImage:"/images/buttonBlue.png",title:L("Button_Edit"),right:8,id:"edit"}),t.__views.title.add(t.__views.edit),e?t.__views.edit.addEventListener("click",e):i["$.__views.edit!click!toggleEdit"]=!0,l.destroy=function(){},_.extend(t,t.__views),require("helpers");var o=arguments[0]||{};t.title.text=o.title,!0===o.noEdit?(t.title.remove(t.edit),t.edit.destroy&&t.edit.destroy(),t.edit=null):Alloy.Globals.menuEdit.buttons.push(t.edit),t.menuTableHeader.locator=o.locator,i["$.__views.edit!click!toggleEdit"]&&t.__views.edit.addEventListener("click",e),_.extend(t,l)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;