Packagefeathers.extensions.toaster
Classpublic class Toaster
InheritanceToaster Inheritance Object

A toaster provides simple feedback about an operation in a small popup.

See also

http://pol2095.free.fr/Starling-Feathers-Extensions/
feathers.extensions.toaster.ToasterRenderer


Public Properties
 PropertyDefined By
  anchorBottom : Number
The distance between the toaster an the bottom of the stage.
Toaster
  backgroundSkin : Image
The default background to display behind all content.
Toaster
  delay : Number
The duration to display totally the toaster message in seconds (without fade effect).
Toaster
  delayToDisplay : Number
The delay to display totally the toaster message in seconds (fade effect).
Toaster
  isCentered : Boolean
Determines if the toaster is centered.
Toaster
  isPlaying : Boolean
[read-only] Indicates whether a toaster is currently playing.
Toaster
  offsetX : Number
The minimum space, in pixels, between the toaster's left and right edge and the toaster's content.
Toaster
  offsetY : Number
The minimum space, in pixels, between the toaster's top and bottom edge and the toaster's content.
Toaster
  taskManager : Boolean
If taskManager is set to true, every toaster start when the previous toaster is finished.
Toaster
  toasterRenderer : Object
[write-only] The class used to instantiate toaster renderer.
Toaster
Protected Properties
 PropertyDefined By
  toasters : Vector.<Object>
The toasters added on the stage.
Toaster
Public Methods
 MethodDefined By
  
Toaster(root:Object)
Toaster
  
dispose():void
Disposes all resources of the display object.
Toaster
  
moveTo(toasterRenderer:Object, x:Number, y:Number):void
Move the toaster to the specified position.
Toaster
  
open():Object
Add a toaster to the stage.
Toaster
Property Detail
anchorBottomproperty
anchorBottom:Number

The distance between the toaster an the bottom of the stage.

The default value is NaN.


Implementation
    public function get anchorBottom():Number
    public function set anchorBottom(value:Number):void
backgroundSkinproperty 
public var backgroundSkin:Image

The default background to display behind all content. The background skin is resized to fill the full width and height of the layout group.

In the following example, the group is given a background skin:

group.backgroundSkin = new Image( texture );

The default value is null.

See also

delayproperty 
delay:Number

The duration to display totally the toaster message in seconds (without fade effect).

The default value is 1.0.


Implementation
    public function get delay():Number
    public function set delay(value:Number):void
delayToDisplayproperty 
delayToDisplay:Number

The delay to display totally the toaster message in seconds (fade effect). It's the same delay to remove the toaster.

The default value is 1.0.


Implementation
    public function get delayToDisplay():Number
    public function set delayToDisplay(value:Number):void
isCenteredproperty 
public var isCentered:Boolean

Determines if the toaster is centered.

The default value is false.

isPlayingproperty 
isPlaying:Boolean  [read-only]

Indicates whether a toaster is currently playing.


Implementation
    public function get isPlaying():Boolean
offsetXproperty 
offsetX:Number

The minimum space, in pixels, between the toaster's left and right edge and the toaster's content.

The default value is 8.


Implementation
    public function get offsetX():Number
    public function set offsetX(value:Number):void
offsetYproperty 
offsetY:Number

The minimum space, in pixels, between the toaster's top and bottom edge and the toaster's content.

The default value is 8.


Implementation
    public function get offsetY():Number
    public function set offsetY(value:Number):void
taskManagerproperty 
public var taskManager:Boolean

If taskManager is set to true, every toaster start when the previous toaster is finished.

The default value is false.

toasterRendererproperty 
toasterRenderer:Object  [write-only]

The class used to instantiate toaster renderer.


Implementation
    public function set toasterRenderer(value:Object):void
toastersproperty 
protected var toasters:Vector.<Object>

The toasters added on the stage.

Constructor Detail
Toaster()Constructor
public function Toaster(root:Object)



Parameters
root:Object
Method Detail
dispose()method
public function dispose():void

Disposes all resources of the display object. GPU buffers are released, event listeners are removed, filters and masks are disposed.

moveTo()method 
public function moveTo(toasterRenderer:Object, x:Number, y:Number):void

Move the toaster to the specified position.

Parameters

toasterRenderer:Object — A ToasterRenderer control
 
x:Number — The horizontal coordinate
 
y:Number — The vertical coordinate

open()method 
public function open():Object

Add a toaster to the stage.

Returns
Object