CalloutPopUpContentManager

public class
feathers.controls.popups.CalloutPopUpContentManager

Description

Displays pop-up content (such as the List in a PickerList) in a Callout.

See also:
feathers.controls.PickerList
feathers.controls.Callout

API overview

Constructor

CalloutPopUpContentManager ()
Constructor.

Attributes

Public attributes

calloutFactory: Function

The factory used to create the Callout instance

direction: String

The direction of the callout

isModal: Boolean

Determines if the callout will be modal or not

Functions

Public functions

close (): Void

Closes the pop-up content

dispose (): Void

Cleans up the manager

open ( content: DisplayObject , source: DisplayObject ): Void

Displays the pop-up content

Constructor

CalloutPopUpContentManager ()

Constructor.

Attributes

calloutFactory: Function

The factory used to create the Callout instance. If null, Callout.calloutFactory() will be used.

Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.

See also:
feathers.controls.Callout#calloutFactory

direction: String

The direction of the callout.

Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.

See also:
feathers.controls.Callout#DIRECTION_ANY
feathers.controls.Callout#DIRECTION_UP
feathers.controls.Callout#DIRECTION_DOWN
feathers.controls.Callout#DIRECTION_LEFT
feathers.controls.Callout#DIRECTION_RIGHT

isModal: Boolean

Determines if the callout will be modal or not.

Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.

Functions

addEventListener ( type: String , listener: Function ): Void
Inherited from EventDispatcher

Registers an event listener at a certain object.

Parameters

type: String
listener: Function


close (): Void

Closes the pop-up content. If it is not opened, nothing happens.



dispatchEvent ( event: Event ): Void
Inherited from EventDispatcher

Dispatches an event to all objects that have registered listeners for its type. If an event with enabled 'bubble' property is dispatched to a display object, it will travel up along the line of parents, until it either hits the root object or someone stops its propagation manually.

Parameters

event: Event


dispatchEventWith ( type: String , bubbles: Boolean = false , data: Object = null ): Void
Inherited from EventDispatcher

Dispatches an event with the given parameters to all objects that have registered listeners for the given type. The method uses an internal pool of event objects to avoid allocations.

Parameters

type: String
bubbles: Boolean = false
data: Object = null


dispose (): Void

Cleans up the manager.



getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

hasEventListener ( type: String ): Boolean
Inherited from EventDispatcher

Returns if there are listeners registered for a certain event type.

Parameters

type: String


open ( content: DisplayObject , source: DisplayObject ): Void

Displays the pop-up content.

Parameters

content: DisplayObject
source: DisplayObject


removeEventListener ( type: String , listener: Function ): Void
Inherited from EventDispatcher

Removes an event listener from the object.

Parameters

type: String
listener: Function


removeEventListeners ( type: String = null ): Void
Inherited from EventDispatcher

Removes all event listeners with a certain type, or all of them if type is null. Be careful when removing all event listeners: you never know who else was listening.

Parameters

type: String = null


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

: