チェンジセット 917
- コミット日時:
- 2008/07/30 17:13:02 (4 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/GeniusFramework/trunk/src/jp/seagirl/collections/LabelFunction.as
r867 r917 28 28 import mx.controls.dataGridClasses.DataGridColumn; 29 29 import mx.formatters.DateFormatter; 30 import mx.formatters.NumberFormatter; 30 31 31 32 /** … … 43 44 // 44 45 //-------------------------------------------------------------------------- 46 47 /** 48 * 数字を表示します。 49 * @param formatString 表示したい日付のフォーマットを指定します。 50 * @param useThousandsSeparator 数字を3桁毎に区切るかどうかを指定します。 51 * @return 52 */ 53 public static function displayNumber(formatString:String = 'N円', useThousandsSeparator:Boolean = true):Function 54 { 55 return function (data:Object, self:DataGridColumn):String 56 { 57 var formatter:NumberFormatter = new NumberFormatter(); 58 return formatString.replace(/N/, formatter.format(data[self.dataField])); 59 } 60 } 45 61 46 62 /**

