Packagefeathers.themes
Classpublic class StyleNameFunctionTheme
InheritanceStyleNameFunctionTheme Inheritance EventDispatcher Inheritance Object
Subclasses BaseMetalWorksDesktopTheme, BaseMetalWorksMobileTheme

Product Version : Feathers 2.0.0

Base class for themes that pass a StyleNameFunctionStyleProvider to each component class.

See also

feathers.skins.StyleNameFunctionStyleProvider
Skinning Feathers components
Creating custom Feathers themes


Protected Properties
 PropertyDefined By
  starling : Starling
The Starling instance associated with this theme.
StyleNameFunctionTheme
Public Methods
 MethodDefined By
  
Constructor.
StyleNameFunctionTheme
 Inherited
addEventListener(type:String, listener:Function):void
Registers an event listener at a certain object.
EventDispatcher
 Inherited
dispatchEvent(event:Event):void
Dispatches an event to all objects that have registered listeners for its type.
EventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event with the given parameters to all objects that have registered listeners for the given type.
EventDispatcher
  
dispose():void
Disposes the theme.
StyleNameFunctionTheme
  
Returns a StyleNameFunctionStyleProvider to be passed to the specified class.
StyleNameFunctionTheme
 Inherited
hasEventListener(type:String, listener:Function = null):Boolean
If called with one argument, figures out if there are any listeners registered for the given event type.
EventDispatcher
 Inherited
removeEventListener(type:String, listener:Function):void
Removes an event listener from the object.
EventDispatcher
 Inherited
removeEventListeners(type:String = null):void
Removes all event listeners with a certain type, or all of them if type is null.
EventDispatcher
Property Detail
starlingproperty
protected var starling:Starling

The Starling instance associated with this theme.

Constructor Detail
StyleNameFunctionTheme()Constructor
public function StyleNameFunctionTheme()

Constructor.

Method Detail
dispose()method
public function dispose():void

Disposes the theme.

getStyleProviderForClass()method 
public function getStyleProviderForClass(type:Class):StyleNameFunctionStyleProvider

Returns a StyleNameFunctionStyleProvider to be passed to the specified class.

Parameters

type:Class

Returns
StyleNameFunctionStyleProvider