Line | |
---|
1 | /* ClearUnsavedViewsModelCommand.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.command
|
---|
4 | {
|
---|
5 | import com.adobe.cairngorm.commands.ICommand;
|
---|
6 | import com.adobe.cairngorm.control.CairngormEvent;
|
---|
7 |
|
---|
8 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
9 |
|
---|
10 | public class ClearUnsavedViewsModelCommand implements ICommand
|
---|
11 | {
|
---|
12 | private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
13 |
|
---|
14 | public function execute(event:CairngormEvent):void
|
---|
15 | {
|
---|
16 | //clear all dirty flags
|
---|
17 | model.logEdit.dirty = false;
|
---|
18 | model.config.bedMods = false;
|
---|
19 | model.config.boardMods = false;
|
---|
20 | model.config.colorMods = false;
|
---|
21 | model.config.paramMods = false;
|
---|
22 | model.config.selectionMods = false;
|
---|
23 | model.config.staffMods = false;
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.