/* CancelLogEntryEditCommand.as */ package gov.va.med.edp.command { import com.adobe.cairngorm.commands.ICommand; import com.adobe.cairngorm.control.CairngormEvent; import gov.va.med.edp.model.TrackingModelLocator; public class CancelLogEntryEditCommand implements ICommand { private var model:TrackingModelLocator = TrackingModelLocator.getInstance(); public function execute(event:CairngormEvent):void { model.logEdit.resetEntry(); model.logEntryViewState = TrackingModelLocator.VIEW_EDIT_MESSAGE; model.logEntryList.selectedIndex = -1; model.logEntryList.selectedID = 0; } } }