Class FloatingWindowManager
Object
|
+--FloatingWindowManager
- class
FloatingWindowManager
Manager Class that provides static methods for Floating Window functionalities. A static object of this class
is available with name FWMgr.
var FWMgr = new FloatingWindowManager();
Defined in Flowin.js
|
Field Summary |
Object |
zIndexIncrease
Increase amount for the flowin zIndex values. |
Object |
zIndexStart
Start number for the flowin zIndex values |
zIndexIncrease
Object zIndexIncrease
Increase amount for the flowin zIndex values.
It cannot be smaller than 3.
With the default values the first flowin will get the 20, the second 25 and the third 30.
zIndexStart
Object zIndexStart
Start number for the flowin zIndex values
FloatingWindowManager
FloatingWindowManager()
addFlowin
void addFlowin(fw)
addSkin
void addSkin(name, skin)
Adds a new skin definition
Parameters:
name - The name of the skin
bringToFront
void bringToFront(fw)
getFlowin
Object getFlowin(id)
getSkin
FlowinSkin getSkin(skinName)
Returns the skin definition associated with the specified skin name
Parameters:
skinName - The name of the skin. If omitted or not existing then the default skin is returned
onkeyup
void onkeyup(e)
open
FloatingWindow open(props)
Parameters:
props - The parameter object - props.name - The name of the flowin to be created and also the name of the
actionParams configuration element in the MoreMotion configuration. - props.id - The id of the flowin. If a flowin already exists with this id it is reused.
- props.title - The title text of the flowin
- props.width - The width of the flowin
- props.height - The height of the flowin
- props.refElm - The handle of a reference element to position the flowin relatively.
- props.offsetV - The vertical offset of the flowin either to the refElm (if specified) or to the top border of the browser window.
- props.offsetH - The horizontal offset of the flowin either to the refElm (if specified) or to the left border of the browser window.
- props.modal - The modal flag. True means the flowin is modal; otherwise it is modeless that means the other part of the browser window is also usable
- props.skin - The name of skin.
- props.beforeClose - The Javascript function to be called before the flowin is closed. The function receives the FloatingWindow object as the parameter. If the function returns false the the close is cancelled.
- props.requestParams - The request parameters. It can be a single String in
'p1=p1val&p2=p2val' form or a properties object in {p1:'p1val',p2:this.value} form - props.callbackFunc - The Javascript function to be called after the target areas are refreshed. The function receives MultiPartAjaxResponse object as the parameter.
- props.userData - The user properties object to store user data.
- props.errorHandler - The name of the function to be called when an error occurs. The function receives Exception and AjaxResponse objects as the parameters.
- props.waitForResponse - Flag to instruct the method to function synchronously. (Not Recommended)
- props.originNode - The handle of the DOM Node that originates this request. This parameter should be supplied only if the call is made from a DOM node that was fetched with a MoreMotionAjaxManager.refreshAreas() method call. It is required to access to the enclosing node that contains a
mo:pageInfo attribute.
Example:
FWMgr.openFlowin({
name : '/RefreshDetails'
,title : 'Product Details'
,width : 300
,height : 200
,refElm : 'x123'
,modal : false
,skin : 'default'
,beforeClose : LetMeCheckFirst
,callbackFunc : CallMeAfterRefresh
,requestParams : 'CAT=' + category
});
Configuration:
<actionParams name="RefreshDetails">
<sourceAreas>/AjaxSourcePage1.Details</sourceAreas>
</actionParams>
removeFlowin
void removeFlowin(id)
Copyright 2002 - 2010, MOR YAZILIM
Documentation generated by
JSDoc on Sun Apr 18 18:29:19 2010