src/it/ht/rcs/console/operations/view/agents/build/ExploitRenderer.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
autoDrawBackground="true">
<fx:Script>
<![CDATA[
override public function set data(o:Object):void
{
if (o == null)
return;
exploit.setStyle('fontWeight', 'normal');
exploit.text = o['name'];
if (o['category'] == 'zeroday')
exploit.setStyle('fontWeight', 'bold');
}
]]>
</fx:Script>
<s:Label id="exploit" top="3" bottom="3" left="3" text=""/>
</s:ItemRenderer>