VerticalCenteredPopUpContentManager
public class
feathers.controls.popups.VerticalCenteredPopUpContentManager
Description
Displays a pop-up at the center of the stage, filling the vertical space. The content will be sized horizontally so that it is no larger than the the width or height of the stage (whichever is smaller).
API overview
Constructor
VerticalCenteredPopUpContentManager
()
Constructor.
Attributes
Public attributes
| marginBottom: Number |
The minimum space, in pixels, between the bottom edge of the content and the bottom edge of the stage |
| marginLeft: Number |
The minimum space, in pixels, between the left edge of the content and the left edge of the stage |
| marginRight: Number |
The minimum space, in pixels, between the right edge of the content and the right edge of the stage |
| marginTop: Number |
The minimum space, in pixels, between the top edge of the content and the top edge of the stage |
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
VerticalCenteredPopUpContentManager ()
Constructor.
Attributes
marginBottom: Number
The minimum space, in pixels, between the bottom edge of the content and the bottom edge of the stage.
marginLeft: Number
The minimum space, in pixels, between the left edge of the content and the left edge of the stage.
marginRight: Number
The minimum space, in pixels, between the right edge of the content and the right edge of the stage.
marginTop: Number
The minimum space, in pixels, between the top edge of the content and the top edge of the stage.
Functions
addEventListener
(
type: String
,
listener: Function
): Void
Inherited from EventDispatcher
Registers an event listener at a certain object.
Parameters
| type: String | |
| listener: Function |
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 |
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 |