Colo(u)r in the background of the background data values, depending on how they relat...
[potlatch2.git] / net / systemeD / potlatch2 / panels / BackgroundMergeFieldComponent.as
1 package net.systemeD.potlatch2.panels {
2
3     import mx.controls.Label;
4     import mx.controls.dataGridClasses.*;
5     import net.systemeD.potlatch2.panels.BackgroundMergePanel;
6
7     public class BackgroundMergeFieldComponent extends Label {
8
9      override public function set data(value:Object):void
10      {
11         if(value != null)
12         {
13             super.data = value;
14             textField.background = true;
15             textField.backgroundColor = BackgroundMergePanel(listData.owner.parent).getColorFor(listData.rowIndex);
16         }
17      }
18   }
19
20 }