Packagelunas.display.button
Classpublic class BackgroundButtonStyle
InheritanceBackgroundButtonStyle Inheritance AbstractStyle Inheritance ConfigurableObject Inheritance CoreEventDispatcher Inheritance CoreObject
SubclassesLabelButtonStyle

This IStyle class is used in the BackgroundButton component.



Public Properties
 PropertyDefined by
  align : uint = 10
The alignement of the background.
BackgroundButtonStyle
  bottomLeftRadius : Number = 0
The radius of the bottom-left corner, in pixels.
BackgroundButtonStyle
  bottomRightRadius : Number = 0
The radius of the bottom-left corner, in pixels.
BackgroundButtonStyle
 Inheritedchannel : String
Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 Inheritedid : *
Returns the id of this object.
ConfigurableObject
 InheritedisConfigurable : Boolean
(read-write) Returns true if the object is configurable and receive the notification of the ConfigCollector in the setup() method.
ConfigurableObject
 InheritedisGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
  margin : EdgeMetrics
The margin values of the component.
BackgroundButtonStyle
 InheritedstyleSheet : StyleSheet
Indicates the style sheet reference of this object.
AbstractStyle
  theme : FillStyle
The theme style when the component is up.
BackgroundButtonStyle
  themeBorder : LineStyle
The border style when the component is up.
BackgroundButtonStyle
  themeBorderDisabled : LineStyle
The border style when the component is disabled.
BackgroundButtonStyle
  themeBorderRollOver : LineStyle
The border style when the component is over.
BackgroundButtonStyle
  themeBorderSelected : LineStyle
The border style when the component is selected.
BackgroundButtonStyle
  themeDisabled : FillStyle
The theme style when the component is disabled.
BackgroundButtonStyle
  themeRollOver : FillStyle
The theme style when the component is over.
BackgroundButtonStyle
  themeSelected : FillStyle
The theme style when the component is selected.
BackgroundButtonStyle
  topLeftRadius : Number = 0
The radius of the upper-left corner, in pixels.
BackgroundButtonStyle
  topRightRadius : Number = 0
The radius of the upper-right corner, in pixels.
BackgroundButtonStyle
  tweenOver : TweenLite
The tween invoked when the button is over.
BackgroundButtonStyle
  tweenSelected : TweenLite
The tween invoked when the button is selected.
BackgroundButtonStyle
Public Methods
 MethodDefined by
  
BackgroundButtonStyle(id:* = null, init:* = null)
Creates a new BackgroundButtonStyle instance.
BackgroundButtonStyle
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
CoreEventDispatcher
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
getStyle(prop:String):*
Returns the value of the specified property if it's exist in the object, else returns null.
AbstractStyle
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
  
initialize():void
Initialize the IStyle object.
BackgroundButtonStyle
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
Invoked when the style is changed.
AbstractStyle
 Inherited
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
setStyle(... args):void
This method is invoked to change a style attribute in this IStyle object with a generic object or a key(String)/value pair of arguments.
AbstractStyle
 Inherited
setup():void
Invoked when this object when the ConfigCollector is run.
AbstractStyle
 Inherited
styleChanged():void
Invoked when a style property of this IStyle change.
AbstractStyle
 Inherited
Invoked when the styleSheet value of this IStyle change.
AbstractStyle
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreEventDispatcher
 Inherited
toString():String
Returns the String representation of this object.
AbstractStyle
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
update():void
Update the display.
ConfigurableObject
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
CoreEventDispatcher
Protected Methods
 MethodDefined by
 Inherited
_setID(id:*):void
Sets the id of the object and register it in the StyleCollector if it's possible.
AbstractStyle
Property detail
alignproperty
public var align:uint = 10

The alignement of the background.

See also

bottomLeftRadiusproperty 
public var bottomLeftRadius:Number = 0

The radius of the bottom-left corner, in pixels.

bottomRightRadiusproperty 
public var bottomRightRadius:Number = 0

The radius of the bottom-left corner, in pixels.

marginproperty 
public var margin:EdgeMetrics

The margin values of the component.

themeproperty 
public var theme:FillStyle

The theme style when the component is up.

themeBorderproperty 
public var themeBorder:LineStyle

The border style when the component is up.

themeBorderDisabledproperty 
public var themeBorderDisabled:LineStyle

The border style when the component is disabled.

themeBorderRollOverproperty 
public var themeBorderRollOver:LineStyle

The border style when the component is over.

themeBorderSelectedproperty 
public var themeBorderSelected:LineStyle

The border style when the component is selected.

themeDisabledproperty 
public var themeDisabled:FillStyle

The theme style when the component is disabled.

themeRollOverproperty 
public var themeRollOver:FillStyle

The theme style when the component is over.

themeSelectedproperty 
public var themeSelected:FillStyle

The theme style when the component is selected.

topLeftRadiusproperty 
public var topLeftRadius:Number = 0

The radius of the upper-left corner, in pixels.

topRightRadiusproperty 
public var topRightRadius:Number = 0

The radius of the upper-right corner, in pixels.

tweenOverproperty 
public var tweenOver:TweenLite

The tween invoked when the button is over.

tweenSelectedproperty 
public var tweenSelected:TweenLite

The tween invoked when the button is selected.

Constructor detail
BackgroundButtonStyle()constructor
public function BackgroundButtonStyle(id:* = null, init:* = null)

Creates a new BackgroundButtonStyle instance.

Parameters
id:* (default = null) — The id of the object.
 
init:* (default = null) — An object that contains properties with which to populate the newly IStyle object. If initObject is not an object, it is ignored.
Method detail
initialize()method
public override function initialize():void

Initialize the IStyle object.