source: EDIS/tags/ed/tracking-ui-core/src/main/flex/gov/va/med/edp/command/config/ConfigRemoveColumnCommand.as@ 1240

Last change on this file since 1240 was 1240, checked in by George Lilly, 13 years ago

new version from the VA

File size: 781 bytes
Line 
1/* ConfigRemoveColumnCommand.as */
2
3package 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.ConfigRemoveColumnEvent;
9 import gov.va.med.edp.model.TrackingModelLocator;
10
11 public class ConfigRemoveColumnCommand implements ICommand
12 {
13 private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
14
15 public function execute(event:CairngormEvent):void
16 {
17 var loadEvent: ConfigRemoveColumnEvent = ConfigRemoveColumnEvent(event);
18 var index: int = model.config.columns.getItemIndex(loadEvent.data);
19 model.config.columns.removeItemAt(index);
20 model.config.boardMods = true;
21 trace("remove column");
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.