source: EDIS/trunk/java/tracking-ui-core/src/main/flex/gov/va/med/edp/command/CancelLogEntryEditCommand.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: 632 bytes
Line 
1/* CancelLogEntryEditCommand.as */
2
3package gov.va.med.edp.command
4{
5 import com.adobe.cairngorm.commands.ICommand;
6 import com.adobe.cairngorm.control.CairngormEvent;
7 import gov.va.med.edp.model.TrackingModelLocator;
8
9 public class CancelLogEntryEditCommand implements ICommand
10 {
11 private var model:TrackingModelLocator = TrackingModelLocator.getInstance();
12
13 public function execute(event:CairngormEvent):void
14 {
15 model.logEdit.resetEntry();
16 model.logEntryViewState = TrackingModelLocator.VIEW_EDIT_MESSAGE;
17 model.logEntryList.selectedIndex = -1;
18 model.logEntryList.selectedID = 0;
19 }
20 }
21}
Note: See TracBrowser for help on using the repository browser.