Line | |
---|
1 | /* ConfigAddColumnCommand.as */
|
---|
2 |
|
---|
3 | package gov.va.med.edp.command.config
|
---|
4 | {
|
---|
5 | import com.adobe.cairngorm.commands.ICommand;
|
---|
6 | import com.adobe.cairngorm.control.CairngormEvent;
|
---|
7 |
|
---|
8 | import gov.va.med.edp.control.config.ConfigAddColumnEvent;
|
---|
9 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
10 |
|
---|
11 | import mx.rpc.events.ResultEvent;
|
---|
12 |
|
---|
13 | public class ConfigAddColumnCommand implements ICommand
|
---|
14 | {
|
---|
15 | private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
16 |
|
---|
17 | public function execute(event:CairngormEvent):void
|
---|
18 | {
|
---|
19 | var loadEvent: ConfigAddColumnEvent = ConfigAddColumnEvent(event);
|
---|
20 | model.config.columns.addItem(loadEvent.data);
|
---|
21 | model.config.boardMods = true;
|
---|
22 | trace("config add column");
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.