My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.tearaway_tea.model
{
import flash.events.EventDispatcher;

import mx.collections.ArrayCollection;

import org.goverla.interfaces.IPropertiesInvalidable;
import org.goverla.managers.PropertiesInvalidationManager;

public class OpportunityDTO extends EventDispatcher implements IPropertiesInvalidable
{
public function get date() : Date
{
return _date;
}

public function set date(value : Date) : void
{
_date = value;
_dateChanged = true;
invalidateProperties();
}

public function get children() : ArrayCollection
{
return _children;
}

public function set children(value : ArrayCollection) : void
{
_children = value;
_childrenChanged = true;
invalidateProperties();
}

public function invalidateProperties() : void
{
PropertiesInvalidationManager.instance.invalidateProperties(this);
}

public function commitProperties() : void
{
if (_dateChanged && _childrenChanged)
{
_dateChanged = false;
_childrenChanged = false;

for each (var item : ItemDTO in children)
{
item.name += "/" + date.toString();
}
}
}

private var _date : Date;

private var _dateChanged : Boolean;

private var _children : ArrayCollection;

private var _childrenChanged : Boolean;
}
}
Show details Hide details

Change log

r23 by tearaway.tea on Apr 16, 2009   Diff
[No log message]
Go to: 

Older revisions

All revisions of this file

File info

Size: 1344 bytes, 63 lines
Hosted by Google Code