Package | at.fhjoanneum.dmt.umj.core.content |
Class | public class AppContent |
Inheritance | AppContent GenericAppContent flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
AppContent(enforcer:SingletonEnforcer) | AppContent | ||
buildMediaComponents():void
buildMediaComponents defines the algorithim for building the media components (the actual representation of an ContentElement within a LocalizedComponent and a MultilingualComponent!)
| GenericAppContent | ||
changeLanguage(language:String):void
changes the language of ALL MultilingualComponents to the new language - default language is defined in AppConfig.GLOBAL_STARTUP_LANGUAGE;
| GenericAppContent | ||
checkIfContentElementsExist():Boolean | GenericAppContent | ||
getContentElement(id:String):ContentElement
getContentElement returns the first contentElement found that matches the overgiven id. | GenericAppContent | ||
[static] | AppContent | ||
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 | ||
getMultiLingualComponent(elementID:String):MultiLingualComponent
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 |
Method | Defined By | ||
---|---|---|---|
dealloc():void | GenericAppContent | ||
getGenericUniqueElementID(prefix:String = generic):String | GenericAppContent | ||
init():void [override] | AppContent | ||
parseAllContentElements(util:XMLUtil, linkedXML:XML):void
parseAllContentElements defines the algorithm for parsing ALL ContentElements within a loop
| GenericAppContent | ||
parseAndReturnOneContentElement defines the algorithm for parsing ONE ContentElement during the loop
| GenericAppContent |
Event | Summary | Defined By | ||
---|---|---|---|---|
AppContent | ||||
AppContent |
AppContent | () | Constructor |
public function AppContent(enforcer:SingletonEnforcer)
enforcer:SingletonEnforcer |
getInstance | () | method |
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 )
|
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 |
COMPLETE | Event |
PARSE_ERROR | Event |