function Controller(){require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="newsTableHeader",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var e=this,a={};e.__views.newsTableHeader=Ti.UI.createView({width:Ti.UI.FILL,height:222,id:"newsTableHeader"}),e.__views.newsTableHeader&&e.addTopLevelView(e.__views.newsTableHeader),e.__views.image=Ti.UI.createImageView({height:222,touchEnabled:!1,id:"image"}),e.__views.newsTableHeader.add(e.__views.image),e.__views.container=Ti.UI.createView({layout:"vertical",width:290,height:Ti.UI.SIZE,left:0,bottom:20,touchEnabled:!1,id:"container"}),e.__views.newsTableHeader.add(e.__views.container),e.__views.wrapperCategory=Ti.UI.createView({backgroundColor:Alloy.CFG.colors.white,width:Ti.UI.SIZE,height:Ti.UI.SIZE,left:0,touchEnabled:!1,id:"wrapperCategory"}),e.__views.container.add(e.__views.wrapperCategory),e.__views.labelCategory=Ti.UI.createLabel({font:{fontSize:13,fontFamily:Alloy.CFG.fonts.bold},color:Alloy.CFG.colors.darkBlue,width:Ti.UI.SIZE,height:Ti.UI.SIZE,left:8,right:8,top:5,bottom:5,touchEnabled:!1,id:"labelCategory"}),e.__views.wrapperCategory.add(e.__views.labelCategory),e.__views.wrapperHeadline=Ti.UI.createView({backgroundColor:Alloy.CFG.colors.darkBlue,width:Ti.UI.SIZE,height:Ti.UI.SIZE,left:0,touchEnabled:!1,id:"wrapperHeadline"}),e.__views.container.add(e.__views.wrapperHeadline),e.__views.labelHeadline=Ti.UI.createLabel({font:{fontSize:16,fontFamily:Alloy.CFG.fonts.bold},color:Alloy.CFG.colors.white,width:Ti.UI.SIZE,height:Ti.UI.SIZE,left:8,right:8,top:5,bottom:5,touchEnabled:!1,id:"labelHeadline"}),e.__views.wrapperHeadline.add(e.__views.labelHeadline),a.destroy=function(){},_.extend(e,e.__views);var l=require("helpers"),i=arguments[0]||{};l.i("creating news header | headline: "+i.headline),e.newsTableHeader.newsId=i.id,e.image.image=i.image,void 0!==i.category?e.labelCategory.text=i.category.toUpperCase():e.container.remove(e.wrapperCategory),e.labelHeadline.text=i.headline,_.extend(e,a)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;