Packagefeathers.skins
Classpublic class ConditionalStyleProvider
InheritanceConditionalStyleProvider Inheritance Object
Implements IStyleProvider

Product Version : Feathers 3.0.0

A style provider that chooses between two different style providers.



Public Properties
 PropertyDefined By
  conditionalFunction : Function
When applyStyles() is called, the target is passed to this function to determine which style provider should be called.
ConditionalStyleProvider
  falseStyleProvider : IStyleProvider
A call to applyStyles() is passed to this style provider when the conditionalFunction returns false.
ConditionalStyleProvider
  trueStyleProvider : IStyleProvider
A call to applyStyles() is passed to this style provider when the conditionalFunction returns true.
ConditionalStyleProvider
Public Methods
 MethodDefined By
  
ConditionalStyleProvider(conditionalFunction:Function, trueStyleProvider:IStyleProvider = null, falseStyleProvider:IStyleProvider = null)
Constructor.
ConditionalStyleProvider
Property Detail
conditionalFunctionproperty
conditionalFunction:Function

When applyStyles() is called, the target is passed to this function to determine which style provider should be called.

function(target:IFeathersControl):Boolean


Implementation
    public function get conditionalFunction():Function
    public function set conditionalFunction(value:Function):void
falseStyleProviderproperty 
falseStyleProvider:IStyleProvider

A call to applyStyles() is passed to this style provider when the conditionalFunction returns false.


Implementation
    public function get falseStyleProvider():IStyleProvider
    public function set falseStyleProvider(value:IStyleProvider):void
trueStyleProviderproperty 
trueStyleProvider:IStyleProvider

A call to applyStyles() is passed to this style provider when the conditionalFunction returns true.


Implementation
    public function get trueStyleProvider():IStyleProvider
    public function set trueStyleProvider(value:IStyleProvider):void
Constructor Detail
ConditionalStyleProvider()Constructor
public function ConditionalStyleProvider(conditionalFunction:Function, trueStyleProvider:IStyleProvider = null, falseStyleProvider:IStyleProvider = null)

Constructor.

Parameters
conditionalFunction:Function
 
trueStyleProvider:IStyleProvider (default = null)
 
falseStyleProvider:IStyleProvider (default = null)