PropertyManager loads nav property XML files and propagates their contents to the navigator host.
PropertyManager does not contain logic for handling property behavior, but does contain a reference to
a CommonProperties object for dealing with such behavior.
[read-only] A CommonProperties instance that can be accessed by navigator components for setting and
responding to property changes, and is suitable for binding.
Returns the navigator property with the specified name (propertyName)
from the given context (contextName), or null if no such property has been loaded.
Implementation public function get currentContext():PropertyContext public function set currentContext(value:PropertyContext):void
globalContexts
property
globalContexts:ArrayCollection
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns an ArrayCollection of global loaded property contexts. A
global property context contains properties that are always
appropriate to display to the user.
This property can be used as the source for data binding.
Implementation public function get globalContexts():ArrayCollection public function set globalContexts(value:ArrayCollection):void
A PropertyManager static instance that can be shared by Flex components.
Implementation public static function get instance():PropertyManager
knownContexts
property
knownContexts:ArrayCollection
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns an ArrayCollection that contains the currently
loaded property contexts. A property context provides
labels and descriptions for UI properties
This property can be used as the source for data binding.
Implementation public function get knownContexts():ArrayCollection public function set knownContexts(value:ArrayCollection):void
Constructor Detail
PropertyManager
()
Constructor
public function PropertyManager(target:IEventDispatcher = null)
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Constructor
Parameters
target:IEventDispatcher (default = null)
Method Detail
addContext
()
method
protected function addContext(newContext:PropertyContext):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Adds the specified propertyContext to the knownContents ArrayCollection.
The new list of contexts will not be communicated to the host until
updateHostContexts is called.
public function getNavProperty(contextName:String, propertyName:String):PropertyValue
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Returns the navigator property with the specified name (propertyName)
from the given context (contextName), or null if no such property has been loaded.
public function loadPropertyXML(propertyURL:String):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Load the properties specified in the XML file specified
by propertyURL and propagates the contents to the Navigator host.
Parameters
propertyURL:String
updateHostContexts
()
method
public function updateHostContexts():void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Checks to see if we are in authoring mode and environment that supports this API.
If so, the host's propertyContexts is set to the globalContexts.
Otherwise pendingPropertiesUpdate is set to true.