/* ConfigRemoveColumnCommand.as */ package gov.va.med.edp.command.config { import com.adobe.cairngorm.commands.ICommand; import com.adobe.cairngorm.control.CairngormEvent; import gov.va.med.edp.control.config.ConfigRemoveColumnEvent; import gov.va.med.edp.model.TrackingModelLocator; public class ConfigRemoveColumnCommand implements ICommand { private var model:TrackingModelLocator = TrackingModelLocator.getInstance(); public function execute(event:CairngormEvent):void { var loadEvent: ConfigRemoveColumnEvent = ConfigRemoveColumnEvent(event); var index: int = model.config.columns.getItemIndex(loadEvent.data); model.config.columns.removeItemAt(index); model.config.boardMods = true; trace("remove column"); } } }