Packageat.fhjoanneum.dmt.umj.core.content
Classpublic class AppContent
InheritanceAppContent Inheritance GenericAppContent Inheritance flash.events.EventDispatcher

IMPORTANT FRAMEWORK CLASS: AppContent is the singleton of YOUR CHOICE WHEN WORKING WITH AppContent.xml entities. It extends THE POWERFUL GenericAppContent (THE CONTENT MANAGER SUPERCLASS!) and provides a special parseXML and getXMLRepresentation implementation of it. It extends all methods from the supercalls to getLocalizedComponent, getMultiLingualComponent and changeLanguage!



Public Properties
 PropertyDefined By
 InheritedcontentElementCollection : ContentElementCollection
[read-only]
GenericAppContent
 InheritedcurrentSelectedLanguage : String
[read-only]
GenericAppContent
Protected Properties
 PropertyDefined By
 Inherited_contentElementCollection : ContentElementCollection
GenericAppContent
 Inherited_currentSelectedLanguage : String = DE
GenericAppContent
 InheritedmediaContentFactory : MediaComponentFactory
GenericAppContent
Public Methods
 MethodDefined By
  
AppContent(enforcer:SingletonEnforcer)
AppContent
 Inherited
buildMediaComponents defines the algorithim for building the media components (the actual representation of an ContentElement within a LocalizedComponent and a MultilingualComponent!)
GenericAppContent
 Inherited
changeLanguage(language:String):void
changes the language of ALL MultilingualComponents to the new language - default language is defined in AppConfig.GLOBAL_STARTUP_LANGUAGE;
GenericAppContent
 Inherited
GenericAppContent
 Inherited
getContentElement returns the first contentElement found that matches the overgiven id.
GenericAppContent
  
[static]
AppContent
 Inherited
getLocalizedComponent(elementID:String, language:String):GenericMediaComponent
getLocalizedComponent is the SECOND MOST IMPORTANT METHOD! - get a visual representation of an ContentElement as LocalizedComponent! This MUST be a language specific representation! - language is usually DE or EN
GenericAppContent
 Inherited
getMultiLingualComponent is ONE OF THE MOST IMPORTANT METHODS - gets a visual representation of an ContentElement within an MultilingualComponent.
GenericAppContent
  
getXMLRepresentation(appendLastTimeSaved:LastTimeSavedChecker = null):String
[override] getXMLRepresentation gives you a full representation of all data within this APPCONTENT as XML-String (but don't use it for saving to files!) appendLastTimeSaved can be appended by the SaveUtil automatically (USE THE SaveCurrentConfigurationHelper.getInstance() methods FOR LOCALLY SAVING) so only use this method if you want to have the string representation - use the SaveCurrentConfigurationHelper Singleton for permanently saving a content xml files as it automatically checks for your privileges (you have to start this application as admin to save to certain locations...)
AppContent
  
parseXML(linkedXML:XML):void
[override] parseXML parses the overgiven XML if it corretly matches the syntax of an appcontent xml and automatically sets default values
AppContent
Protected Methods
 MethodDefined By
 Inherited
dealloc():void
GenericAppContent
 Inherited
getGenericUniqueElementID(prefix:String = generic):String
GenericAppContent
  
init():void
[override]
AppContent
 Inherited
parseAllContentElements(util:XMLUtil, linkedXML:XML):void
parseAllContentElements defines the algorithm for parsing ALL ContentElements within a loop
GenericAppContent
 Inherited
parseAndReturnOneContentElement defines the algorithm for parsing ONE ContentElement during the loop
GenericAppContent
Events
 Event Summary Defined By
  AppContent
  AppContent
Constructor Detail
AppContent()Constructor
public function AppContent(enforcer:SingletonEnforcer)



Parameters
enforcer:SingletonEnforcer
Method Detail
getInstance()method
public static function getInstance():AppContent

Returns
AppContent
getXMLRepresentation()method 
override public function getXMLRepresentation(appendLastTimeSaved:LastTimeSavedChecker = null):String

getXMLRepresentation gives you a full representation of all data within this APPCONTENT as XML-String (but don't use it for saving to files!) appendLastTimeSaved can be appended by the SaveUtil automatically (USE THE SaveCurrentConfigurationHelper.getInstance() methods FOR LOCALLY SAVING) so only use this method if you want to have the string representation - use the SaveCurrentConfigurationHelper Singleton for permanently saving a content xml files as it automatically checks for your privileges (you have to start this application as admin to save to certain locations...)

Parameters

appendLastTimeSaved:LastTimeSavedChecker (default = null)

Returns
String
init()method 
override protected function init():void

parseXML()method 
override public function parseXML(linkedXML:XML):void

parseXML parses the overgiven XML if it corretly matches the syntax of an appcontent xml and automatically sets default values

Parameters

linkedXML:XML

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

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