Class fever.app.browser.BrowserPopup

Description

Control and manage browser popup window.

Method Index

close(), create(), dispose(), get(), getID(), move(), open(), setSize(), toString()

Method Detail

create

static public function create(winID:String):BrowserPopup

Creates a new browser popup with winID name.

If winID is already registred, returns the registred window, otherwise builds and returns a new BrowserPopup instance.

Parameters

winIDPopup javascript identifier ( name )

get

static public function get(winID:String):BrowserPopup

Returns the popup registred with winID name.

dispose

public function dispose(winID:String):Void

Disposes popup registred with winID name.

Closes the popup and unregisters it from BrowserPopup manager.

getID

public function getID():String

Returns window's id.

open

public function open(url:String):Void

Opens popup and load passed-in url

close

public function close():Void

Closes the popup.

Stay registred in manager.

move

public function move(x:Number, y:Number):Void

Moves the popup to x, y coordinates.

If popup location ( url ) is not in the same domain that your main application, action can be denied.

setSize

public function setSize(width:Number, height:Number):Void

Resizes the popup to widthx height size.

If popup location ( url ) is not in the same domain that your main application, action can be denied.

toString

public function toString():String

Returns string representation.