Package | feathers.skins |
Class | public class ConditionalStyleProvider |
Inheritance | ConditionalStyleProvider Object |
Implements | IStyleProvider |
Product Version : | Feathers 3.0.0 |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
ConditionalStyleProvider(conditionalFunction:Function, trueStyleProvider:IStyleProvider = null, falseStyleProvider:IStyleProvider = null)
Constructor. | ConditionalStyleProvider |
conditionalFunction | property |
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
public function get conditionalFunction():Function
public function set conditionalFunction(value:Function):void
falseStyleProvider | property |
falseStyleProvider:IStyleProvider
A call to applyStyles()
is passed to this style provider
when the conditionalFunction
returns false
.
public function get falseStyleProvider():IStyleProvider
public function set falseStyleProvider(value:IStyleProvider):void
trueStyleProvider | property |
trueStyleProvider:IStyleProvider
A call to applyStyles()
is passed to this style provider
when the conditionalFunction
returns true
.
public function get trueStyleProvider():IStyleProvider
public function set trueStyleProvider(value:IStyleProvider):void
ConditionalStyleProvider | () | Constructor |
public function ConditionalStyleProvider(conditionalFunction:Function, trueStyleProvider:IStyleProvider = null, falseStyleProvider:IStyleProvider = null)
Constructor.
ParametersconditionalFunction:Function | |
trueStyleProvider:IStyleProvider (default = null )
| |
falseStyleProvider:IStyleProvider (default = null )
|