source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/config/ConfigRemoveColumnCommand.as@ 1227

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

initial load of EDIS 1.0

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.