home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2011 May / ME_2011_05.iso / Galileo-Video-Tutorial / system / player.swf / scripts / com / je / model / ApplicationModel.as next >
Encoding:
Text File  |  2010-11-30  |  2.6 KB  |  98 lines

  1. package com.je.model
  2. {
  3.    import com.je.events.ApplicationEvent;
  4.    import com.je.model.vo.HilfeInfoVO;
  5.    import com.je.model.vo.Lesson;
  6.    import com.je.model.vo.TrainerInfo;
  7.    import com.je.model.vo.TrainingsInfo;
  8.    import controller.SharedObjectController;
  9.    import de.galileopress.vt.navigation.NavigationBoxItemVO;
  10.    import org.robotlegs.mvcs.Actor;
  11.    
  12.    public class ApplicationModel extends Actor
  13.    {
  14.       public var mainXmlPath:String;
  15.       
  16.       private var _trainingInfo:TrainingsInfo;
  17.       
  18.       private var _trainerInfo:TrainerInfo;
  19.       
  20.       private var _chapterList:ChapterList;
  21.       
  22.       private var _helpChapterList:ChapterList;
  23.       
  24.       private var _currentLesson:Lesson;
  25.       
  26.       public var boxNavigationValueObject:Vector.<NavigationBoxItemVO>;
  27.       
  28.       public var hilfeInfos:Vector.<HilfeInfoVO>;
  29.       
  30.       public var videoSmoothing:Boolean = true;
  31.       
  32.       public var videoStart:Boolean = true;
  33.       
  34.       public var copyrightUrl:String;
  35.       
  36.       public var copyrightUrlLabel:String;
  37.       
  38.       public function ApplicationModel()
  39.       {
  40.          super();
  41.       }
  42.       
  43.       public function get currentLesson() : Lesson
  44.       {
  45.          return this._currentLesson;
  46.       }
  47.       
  48.       public function set currentLesson(param1:Lesson) : void
  49.       {
  50.          this._currentLesson = param1;
  51.       }
  52.       
  53.       public function get trainingInfo() : TrainingsInfo
  54.       {
  55.          return this._trainingInfo;
  56.       }
  57.       
  58.       public function updateTrainingInfo(param1:TrainingsInfo) : void
  59.       {
  60.          var _loc2_:SharedObjectController = SharedObjectController.getInstance(param1.isbn);
  61.          this._trainingInfo = param1;
  62.          dispatch(new ApplicationEvent(ApplicationEvent.TRAININGS_INFO_CHANGED));
  63.       }
  64.       
  65.       public function updateTrainerInfo(param1:TrainerInfo) : void
  66.       {
  67.          this._trainerInfo = param1;
  68.          dispatch(new ApplicationEvent(ApplicationEvent.TRAINER_INFO_CHANGED));
  69.       }
  70.       
  71.       public function get trainerInfo() : TrainerInfo
  72.       {
  73.          return this._trainerInfo;
  74.       }
  75.       
  76.       public function get chapterList() : ChapterList
  77.       {
  78.          return this._chapterList;
  79.       }
  80.       
  81.       public function updateChapterList(param1:ChapterList) : void
  82.       {
  83.          this._chapterList = param1;
  84.       }
  85.       
  86.       public function get helpChapterList() : ChapterList
  87.       {
  88.          return this._helpChapterList;
  89.       }
  90.       
  91.       public function updateHelpChapterList(param1:ChapterList) : void
  92.       {
  93.          this._helpChapterList = param1;
  94.       }
  95.    }
  96. }
  97.  
  98.