Packageat.fhjoanneum.dmt.umj.core.content.media
Classpublic class MediaComponentFactory
InheritanceMediaComponentFactory Inheritance flash.events.EventDispatcher

IMPORTANT FRAMEWORK CLASS: MediaComponentFactory uses the FACTORY Programming Design Pattern to implement the methods to build Components out of Elements (XML contentElements!) all algrothims that can automatically build visual Components out of their textual Elements definition. E.g. a element object of type video will be build with a video component automatically



Public Properties
 PropertyDefined By
  allMediaComponentsWereBuild : Boolean
[read-only]
MediaComponentFactory
  mediaComponentsTotal : int
MediaComponentFactory
Public Methods
 MethodDefined By
  
MediaComponentFactory(enforcer:SingletonEnforcer)
MediaComponentFactory
  
builds the mediaComponent for a contentElement and set its references automatically
MediaComponentFactory
  
used to get a preview of a ContentElement for previewing of the administrations ui
MediaComponentFactory
  
[static]
MediaComponentFactory
Protected Methods
 MethodDefined By
  
MediaComponentFactory
  
MediaComponentFactory
  
MediaComponentFactory
  
MediaComponentFactory
  
MediaComponentFactory
  
MediaComponentFactory
  
MediaComponentFactory
  
dealloc():void
MediaComponentFactory
  
init():void
MediaComponentFactory
Events
 Event Summary Defined By
  MediaComponentFactory
Property Detail
allMediaComponentsWereBuildproperty
allMediaComponentsWereBuild:Boolean  [read-only]


Implementation
    public function get allMediaComponentsWereBuild():Boolean
mediaComponentsTotalproperty 
mediaComponentsTotal:int


Implementation
    public function get mediaComponentsTotal():int
    public function set mediaComponentsTotal(value:int):void
Constructor Detail
MediaComponentFactory()Constructor
public function MediaComponentFactory(enforcer:SingletonEnforcer)



Parameters
enforcer:SingletonEnforcer
Method Detail
buildLocalizedItemMediaComponentAnimation()method
protected function buildLocalizedItemMediaComponentAnimation(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentHTML()method 
protected function buildLocalizedItemMediaComponentHTML(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentPicture()method 
protected function buildLocalizedItemMediaComponentPicture(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentSound()method 
protected function buildLocalizedItemMediaComponentSound(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentText()method 
protected function buildLocalizedItemMediaComponentText(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentVideoDisplay()method 
protected function buildLocalizedItemMediaComponentVideoDisplay(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildLocalizedItemMediaComponentVideoPlayer()method 
protected function buildLocalizedItemMediaComponentVideoPlayer(li:LocalizedItem):void

Parameters

li:LocalizedItem

buildMediaForContentElement()method 
public function buildMediaForContentElement(ce:ContentElement):void

builds the mediaComponent for a contentElement and set its references automatically

Parameters

ce:ContentElement

dealloc()method 
protected function dealloc():void

getComponentForPreview()method 
public function getComponentForPreview(ce:ContentElement, li:LocalizedItem):GenericMediaComponent

used to get a preview of a ContentElement for previewing of the administrations ui

Parameters

ce:ContentElement
 
li:LocalizedItem

Returns
GenericMediaComponent
getInstance()method 
public static function getInstance():MediaComponentFactory

Returns
MediaComponentFactory
init()method 
protected function init():void

Event Detail
ALL_COMPONENTS_HAVE_BEEN_CREATED Event
Event Object Type: at.fhjoanneum.dmt.umj.core.events.AppContentEvent