Packageurlkit.rules
Classpublic class UrlNavigatorRule
InheritanceUrlNavigatorRule Inheritance UrlValueRule Inheritance UrlBaseRule Inheritance flash.events.EventDispatcher

Subclass of UrlValueRule which provides automatic linkage of the value to the 'label' property of an associated navigation container's selectedChild. This is to be used when a URL component is mapped to the label of the container's selected child.



Public Properties
 PropertyDefined by
  accordion : Accordion
UrlNavigatorRule
  active : Boolean
[read-only]
UrlNavigatorRule
 InheritedbooleanValue : Boolean
Boolean property providing transparent URL encoding of values.
UrlValueRule
 InheritedcontainerUrl : String
Set the URL for this rule based on some or all of a URL passed in from the containing browser.
UrlBaseRule
 InheriteddefaultValue : Object
A default value for this rule which is to be mapped to an absent or empty URL value.
UrlValueRule
 InheriteddoesMatchUrl : Boolean
UrlValueRule
 Inheritedenabled : Boolean
Get the value of the enabled flag, gating whether this rule is ever capable of reflecting or contributing state in the application .
UrlBaseRule
 InheritedmatchUrlBeginning : Boolean
UrlBaseRule
  navBar : NavBar
UrlNavigatorRule
  navigatorChildRule : IUrlRule
The current child rule of the navigator's selected child's IUrlRule.
UrlNavigatorRule
  navigatorChildRuleName : String = "urls"
The name of a property which, when accessed on a selected child of the associated navigator, will yield an IUrlRule instance mapping a URL fragment to that child's state.
UrlNavigatorRule
 InheritednumberValue : Number
Numeric property providing transparent URL encoding of values
UrlValueRule
 Inheritedparent : IUrlRule
Set the parent rule of this rule.
UrlBaseRule
 Inheritedready : Boolean
Get a flag indicating whether this rule is sufficiently initialized to propagate its browser-determined state to the application.
UrlBaseRule
 InheritedsourceValue : String
Provides this rule with a dot-delimited binding expression that references a Bindable property accessible from the containing MXML document.
UrlValueRule
 InheritedstringValue : String
An application state property that is bidirectionally coupled to the value-related portion of this rule's URL, as determined by its urlPattern and urlFormat properties.
UrlValueRule
  tabNavigator : TabNavigator
UrlNavigatorRule
  title : String
[read-only]
UrlNavigatorRule
 Inheritedurl : String
Get the URL component associated with this rule, representing its encoding of the current application state.
UrlBaseRule
  urlField : String = "label"
The name of a property of each selected child of the associated navigator, which determines the String value of this rule corresponding to that child.
UrlNavigatorRule
 InheritedurlFormat : String
A string that determines the URL generated by this rule.
UrlBaseRule
 InheritedurlPattern : String
A regular expression that will restrict this rule to only be active for a URL that matches it.
UrlBaseRule
 InheritedurlPatternRegEx : RegExp
UrlBaseRule
  useChildLabelForTitle : Boolean = false
A flag indicating that the child's label property should be used as the title component of this rule.
UrlNavigatorRule
  viewStack : ViewStack
UrlNavigatorRule
Protected Properties
 PropertyDefined by
 InheriteddefaultStringValue : String
UrlValueRule
 Inherited_document : UIComponent
Document as passed in via IMXMLObject.initialize()
UrlBaseRule
  navContainer : Object
UrlNavigatorRule
 Inherited_title : String
Storage property for title.
UrlBaseRule
 Inheritedvalid : Boolean
Get a flag indicating
UrlBaseRule
Public Methods
 MethodDefined by
  
UrlNavigatorRule
 Inherited
defaultPatternFromFormat(f:String):String
[static]
UrlBaseRule
 Inherited
exec(url:String):Array
UrlBaseRule
 Inherited
initialized(document:Object, id:String):void
UrlValueRule
 Inherited
Invalidate the application state of this rule, which ultimately requests the browser to update its location bar from the top-level rule's URL.
UrlBaseRule
 Inherited
matchUrlPrefix(url:String):String
UrlValueRule
Protected Methods
 MethodDefined by
 Inherited
applyUrlFormat(stringValue:String):String
UrlBaseRule
  
checkReadiness(e:Event):void
Check this rule to determine whether it's ready.
UrlNavigatorRule
  
Override the superclass commitBrowserChange() function to force the navigator component's index to correspond to the rule's string value as determined from the URL.
UrlNavigatorRule
  
Override the computeApplicationState() function to update this UrlValueRule's string value from the navigator prior to URL determination.
UrlNavigatorRule
  
onCreationComplete(event:Event):void
Handle the initialization of the navigator by appropriately syncing our rule value to its state.
UrlNavigatorRule
 Inherited
setObjectValue(o:Object):void
UrlValueRule
 Inherited
setRhsSite(o:Object):void
UrlValueRule
 Inherited
setupWatcher():void
UrlValueRule
  
Update the navigator's selected child index to our rule's string value in response to a browser change or initialization action.
UrlNavigatorRule
  
UrlNavigatorRule
 Inherited
Validate this rule such that its URL and title correspond to the application state, as determined by whatever URL/state mapping this rule defines.
UrlBaseRule
Events
 EventSummaryDefined by
 Inherited This event is dispatched when the URL component for this value changes.UrlValueRule
 Inherited This event is dispatched when the URL component for this value changes.UrlBaseRule
Public Constants
 ConstantDefined by
 InheritedSTATE_CHANGE : String = "stateChange"
[static]
UrlBaseRule
Property detail
accordionproperty
accordion:Accordion  [read-write]Implementation
    public function get accordion():Accordion
    public function set accordion(value:Accordion):void
activeproperty 
active:Boolean  [read-only]Implementation
    public function get active():Boolean
navBarproperty 
navBar:NavBar  [read-write]Implementation
    public function get navBar():NavBar
    public function set navBar(value:NavBar):void
navContainerproperty 
navContainer:Object  [read-write]Implementation
    protected function get navContainer():Object
    protected function set navContainer(value:Object):void
navigatorChildRuleproperty 
public var navigatorChildRule:IUrlRule

The current child rule of the navigator's selected child's IUrlRule.

This property can be used as the source for data binding.

See also

navigatorChildRuleNameproperty 
public var navigatorChildRuleName:String = "urls"

The name of a property which, when accessed on a selected child of the associated navigator, will yield an IUrlRule instance mapping a URL fragment to that child's state. The default value is "urls".

This property can be used as the source for data binding.

tabNavigatorproperty 
tabNavigator:TabNavigator  [read-write]Implementation
    public function get tabNavigator():TabNavigator
    public function set tabNavigator(value:TabNavigator):void
titleproperty 
title:String  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get title():String
urlFieldproperty 
public var urlField:String = "label"

The name of a property of each selected child of the associated navigator, which determines the String value of this rule corresponding to that child.

This property can be used as the source for data binding.

useChildLabelForTitleproperty 
public var useChildLabelForTitle:Boolean = false

A flag indicating that the child's label property should be used as the title component of this rule.

This property can be used as the source for data binding.

viewStackproperty 
viewStack:ViewStack  [read-write]Implementation
    public function get viewStack():ViewStack
    public function set viewStack(value:ViewStack):void
Constructor detail
UrlNavigatorRule()constructor
public function UrlNavigatorRule()
Method detail
checkReadiness()method
protected override function checkReadiness(e:Event):void

Check this rule to determine whether it's ready. Readiness of a navigator rule requires that its navigator be present and completely initialized.

Parameters
e:Event
commitBrowserChange()method 
protected override function commitBrowserChange():void

Override the superclass commitBrowserChange() function to force the navigator component's index to correspond to the rule's string value as determined from the URL. Also updates the navigatorChildRule property.

computeApplicationState()method 
protected override function computeApplicationState():void

Override the computeApplicationState() function to update this UrlValueRule's string value from the navigator prior to URL determination. Also updates the navigatorChildRule property.

onCreationComplete()method 
protected function onCreationComplete(event:Event):void

Handle the initialization of the navigator by appropriately syncing our rule value to its state.

Parameters
event:Event
updateNavContainerIndex()method 
protected function updateNavContainerIndex():void

Update the navigator's selected child index to our rule's string value in response to a browser change or initialization action. Also recompute the child rule.

updateNavigatorChildRule()method 
protected function updateNavigatorChildRule():void