| Line | |
|---|
| 1 | /* CancelLogEntryEditCommand.as */
|
|---|
| 2 |
|
|---|
| 3 | package 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.