Rev | Line | |
---|
[1240] | 1 | /* ConfigRemoveColumnCommand.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.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.