Class fever.app.browser.BrowserFrame

Description

Control and manage browser iframe.

Sets the wmode to opaque to play properly with iFrame with non IE browser family( FireFox, ... ).

Field Index

enabledBorder, height, scrolling, SCROLLING_ALWAYS, SCROLLING_AUTO, SCROLLING_NEVER, width, x, y

Method Index

create(), dispose(), get(), getID(), getURL(), hide(), move(), setSize(), setURL(), show(), toString()

Field Detail

SCROLLING_AUTO

static public SCROLLING_AUTO:String
Scrolling bar if needed. Default.

SCROLLING_ALWAYS

static public SCROLLING_ALWAYS:String
Scrolling bar always.

SCROLLING_NEVER

static public SCROLLING_NEVER:String
Scrolling bar never.

x

public x:Number
IFrame's position on X-Axis.

y

public y:Number
IFrame's position on Y-Axis.

width

public width:Number
IFrame's width.

height

public height:Number
IFrame's height.

scrolling

public scrolling:String
Indicates the IFrame scrolling status.

enabledBorder

public enabledBorder:Boolean
Indicates the IFrame border status.

Method Detail

create

static public function create(frameID:String):BrowserFrame

Creates a new frame with winID name.

If winID is already registred, returns the registred iframe, otherwise builds and returns a new = new Map(); instance.

Parameters

frameIDIframe javascript identifier ( name )

get

static public function get(frameID:String):BrowserFrame

Returns the popup registred with frameID name.

dispose

public function dispose(frameID:String):Void

Disposes popup registred with winID name.

Closes the popup and unregisters it from BrowserFrame manager.

getID

public function getID():String

Returns window's id.

setURL

public function setURL(url:String):Void

Sets frame content.

getURL

public function getURL():String

Returns correct frame content.

show

public function show():Void

Opens popup and load passed-in url

hide

public function hide():Void

Closes the popup.

Stay registred in manager.

move

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

Moves the popup to x, y coordinates.

setSize

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

Resizes the popupframeto widthx height size.

toString

public function toString():String

Returns string representation.