Common functions
Method Summary | |
object |
$(string id)
Returns a reference on the object associated with the given id An error alert is fired if there is no object for the given id |
void |
fwkCancelEvent(object evt)
Cancel the given event ( stop the event propagation ) |
void |
fwkCreateLogger(string loggerName)
Creates a new logger (with its console) |
void |
fwkDisable(object obj)
Disables the field associated with the given reference |
void |
fwkDisable(string id)
Disables the field associated with the given id |
void |
fwkEnable(object obj)
Enables the field associated with the given reference |
void |
fwkEnable(string id)
Enables the field associated with the given id |
void |
fwkExecInnerScript(object obj)
Deprecated. use fwkExecuteInnerScript instead |
void |
fwkExecuteInnerScript(object obj)
Execute all the JavaScript code embedded in the given object Search all the 'script' tags and execute the code |
void |
fwkExecuteInnerScript(string id)
Execute all the JavaScript code embedded in the given object Search all the 'script' tags and execute the code |
object |
fwkGetField(string id)
Deprecated. |
object |
fwkGetIFrameDocument(object obj)
Returns the 'document object' of the given iframe |
object |
fwkGetIFrameDocument(string id)
Returns the 'document object' of the given iframe |
string |
fwkGetInnerHTML(object obj)
Returns the "innerHTML" attribute value of the field associated with the given reference |
string |
fwkGetInnerHTML(string id)
Returns the "innerHTML" attribute value of the field associated with the given id |
string |
fwkGetLocation()
Returns the current page URL ( shortcut for 'window.location.href' ) |
string |
fwkGetName(object obj)
Returns the name (standard "name" attribute) of the field associated with the given reference |
string |
fwkGetName(string id)
Returns the name (standard "name" attribute) of the field associated with the given id |
object |
fwkGetParentDIV(object obj)
Returns the DIV parent of the given object |
void |
fwkGetRelativeXY(object obj)
Returns the position of the given object The position is returned as an array ([x,y]) The origin (0,0) is the first parent element with position="relative" |
void |
fwkGetRelativeXY(string id)
Returns the position of the given object The position is returned as an array ([x,y]) The origin (0,0) is the first parent element with position="relative" |
string |
fwkGetType(object obj)
Returns the type (standard "type" attribute) of the field associated with the given reference |
string |
fwkGetType(string id)
Returns the type (standard "type" attribute) of the field associated with the given id |
string |
fwkGetValue(object obj)
Returns the value (standard "value" attribute) of the field associated with the given reference |
string |
fwkGetValue(string id)
Returns the value (standard "value" attribute) of the field associated with the given id |
void |
fwkGetXY(object obj)
Returns the position of the given object in the screen The position is returned as an array ([x,y]) |
void |
fwkGetXY(string id)
Returns the position of the given object in the screen The position is returned as an array ([x,y]) |
boolean |
fwkIsChecked(object obj)
Returns true if the field associated with the given reference is checked |
boolean |
fwkIsChecked(string id)
Returns true if the field associated with the given id is checked |
boolean |
fwkIsEnabled(object obj)
Returns true if the field associated with the given reference is enabled |
boolean |
fwkIsEnabled(string id)
Returns true if the field associated with the given id is enabled |
void |
fwkIsReadonly(object obj)
Returns true if the field associated with the given reference is "read only" |
void |
fwkIsReadonly(string id)
Returns true if the field associated with the given id is "read only" |
boolean |
fwkIsVisible(object obj)
Returns true if the field associated with the given reference is visible |
boolean |
fwkIsVisible(string id)
Returns true if the field associated with the given id is visible |
void |
fwkLoadPage(string url)
Loads the given page URL ( shortcut for 'window.location = URL' ) and add a new entry in the history |
void |
fwkReloadPage()
Reloads the current page ( shortcut for 'window.location.reload()' ) Reuse the same entry in the history |
void |
fwkReplacePage(string url)
Replaces the current page by the content of the given URL ( shortcut for 'window.location.replace(URL)' ) This function avoids creating a new entry in the history (the current entry is reused) |
void |
fwkResetForm(object obj)
Reset the given FORM |
void |
fwkResetForm(string id)
Reset the FORM identified by the given id |
void |
fwkSetChecked(object obj,
boolean bool)
Checks (true) or unchecks (false) the field associated with the given reference |
void |
fwkSetChecked(string id,
boolean bool)
Checks (true) or unchecks (false) the field associated with the given id |
void |
fwkSetFieldButtonDisabled(object oField,
boolean bDisabled)
Disables or enables the button or picto associated with a field widget |
void |
fwkSetFieldButtonVisibility(object oField,
string sVisibility)
Sets the visibility of the button or picto associated with a field widget |
void |
fwkSetFocus(object obj)
Set the focus on the given object |
void |
fwkSetFocus(string id)
Set the focus on the object identified by the given id |
void |
fwkSetHidden(object obj)
Sets the "style.visible" attribute of the field associated with the given reference as "visible" |
void |
fwkSetHidden(string id)
Sets the "style.visible" attribute of the field associated with the given id as "hidden" |
void |
fwkSetInnerHTML(object obj,
string HTMLString)
Sets the "innerHTML" attribute of the field associated with the given reference |
void |
fwkSetInnerHTML(string id,
string HTMLString)
Sets the "innerHTML" attribute of the field associated with the given id |
void |
fwkSetReadonly(object obj,
boolean bool)
Sets the "readOnly" attribute of the field associated with the given reference as "read only" |
void |
fwkSetReadonly(string id,
boolean bool)
Sets the "readOnly" attribute of the field associated with the given id as "read only" |
void |
fwkSetValue(object obj,
object value)
Sets the value (standard "value" attribute) of the field associated with the given reference |
void |
fwkSetValue(string id,
object value)
Sets the value (standard "value" attribute) of the field associated with the given id |
void |
fwkSetVisible(object obj)
Sets the "style.visible" attribute of the field associated with the given reference as "visible" |
void |
fwkSetVisible(string id)
Sets the "style.visible" attribute of the field associated with the given id as "visible" |
void |
fwkShowActionView(object obj,
object response,
string viewName)
Gets the given view from the action response object and puts it in the given container |
void |
fwkShowActionView(string id,
object response,
string viewName)
Gets the given view from the action response object and puts it in the given container |
void |
fwkShowServiceView(object obj,
object response)
Gets the result view from the service response object and puts it in the given container |
void |
fwkShowServiceView(string id,
object response)
Gets the result view from the service response object and puts it in the given container |
void |
fwkShowViewContent(object obj,
object viewContent)
Show a view content in a given container ( by setting the content in the 'innerHTML' attribute of the container ) If there are 'script' tags in the content they are executed |
void |
fwkShowViewContent(string containerId,
object viewContent)
Show a view content in a given container ( by setting the content in the 'innerHTML' attribute of the container ) If there are 'script' tags in the content they are executed |
void |
fwkShowXY(object obj,
int x,
int y)
Shows an object ( set visible ) at the given X/Y coordinates |
void |
fwkShowXY(string id,
int x,
int y)
Shows an object ( set visible ) at the given X/Y coordinates |
void |
fwkSubmitForm(object obj)
Submit the given FORM |
void |
fwkSubmitForm(string id)
Submit the FORM identified by the given id |
Method Detail |
public object $(string id)
id
- the widget id
public object fwkGetField(string id)
id
- the widget id
public string fwkGetName(string id)
id
- the widget id
public string fwkGetName(object obj)
obj
- the widget reference
public string fwkGetType(string id)
id
- the widget id
public string fwkGetType(object obj)
obj
- the widget reference
public string fwkGetValue(string id)
id
- the widget id
public string fwkGetValue(object obj)
obj
- the field reference
public void fwkSetValue(string id, object value)
id
- the widget idvalue
- the new valuepublic void fwkSetValue(object obj, object value)
obj
- the field referencevalue
- the new valuepublic void fwkEnable(string id)
id
- the widget idpublic void fwkEnable(object obj)
obj
- the field referencepublic void fwkDisable(string id)
id
- the widget idpublic void fwkDisable(object obj)
obj
- the field referencepublic boolean fwkIsEnabled(string id)
id
- the widget id
public boolean fwkIsEnabled(object obj)
obj
- the field reference
public void fwkSetVisible(string id)
id
- the widget idpublic void fwkSetVisible(object obj)
obj
- the widget referencepublic void fwkSetHidden(string id)
id
- the widget idpublic void fwkSetHidden(object obj)
obj
- the widget referencepublic boolean fwkIsVisible(string id)
id
- the widget id
public boolean fwkIsVisible(object obj)
obj
- the widget reference
public void fwkSetChecked(string id, boolean bool)
id
- the widget idbool
- true(check) or false(uncheck)public void fwkSetChecked(object obj, boolean bool)
obj
- the widget's referencebool
- true(check) | false(uncheck)public boolean fwkIsChecked(string id)
id
- the widget id
public boolean fwkIsChecked(object obj)
obj
- the widget reference
public void fwkSetReadonly(string id, boolean bool)
id
- the widget idbool
- true(read only) | false(read write)public void fwkSetReadonly(object obj, boolean bool)
obj
- the widget referencebool
- true(read only) | false(read write)public void fwkIsReadonly(string id)
id
- the widget idpublic void fwkIsReadonly(object obj)
obj
- the widget referencepublic void fwkSetInnerHTML(string id, string HTMLString)
id
- the widget idHTMLString
- the "inner HTML" stringpublic void fwkSetInnerHTML(object obj, string HTMLString)
obj
- the widget referenceHTMLString
- the "inner HTML" stringpublic string fwkGetInnerHTML(string id)
id
- the widget id
public string fwkGetInnerHTML(object obj)
obj
- the widget reference
public void fwkShowActionView(string id, object response, string viewName)
id
- the container idresponse
- the response objectviewName
- the view namepublic void fwkShowActionView(object obj, object response, string viewName)
obj
- the container's object referenceresponse
- the response objectviewName
- the view namepublic void fwkShowServiceView(string id, object response)
id
- the container idresponse
- the response objectpublic void fwkShowServiceView(object obj, object response)
obj
- the container's object referenceresponse
- the response objectpublic void fwkGetXY(object obj)
obj
- : the field referencepublic void fwkGetXY(string id)
id
- : html id of the objectpublic void fwkGetRelativeXY(object obj)
obj
- : the field referencepublic void fwkGetRelativeXY(string id)
id
- : html id of the objectpublic void fwkShowXY(object obj, int x, int y)
obj
- the object referencex
- the X coordinatey
- the Y coordinatepublic void fwkShowXY(string id, int x, int y)
id
- the object idx
- the X coordinatey
- the Y coordinatepublic void fwkSetFieldButtonDisabled(object oField, boolean bDisabled)
oField
- the field referencebDisabled
- true(enable) | false(disable)public void fwkSetFieldButtonVisibility(object oField, string sVisibility)
oField
- the field referencesVisibility
- the visibility ( "visible" or "hidden" )public object fwkGetIFrameDocument(object obj)
obj
- the IFRAME object reference
public object fwkGetIFrameDocument(string id)
id
- the IFRAME id
public void fwkExecuteInnerScript(object obj)
obj
- : the object reference ( object containing the JS code )public void fwkExecuteInnerScript(string id)
id
- : the id of the object ( object containing the JS code )public void fwkExecInnerScript(object obj)
obj
- public void fwkShowViewContent(string containerId, object viewContent)
containerId
- : the id of the container where to set the contentviewContent
- : the content to set in the containerpublic void fwkShowViewContent(object obj, object viewContent)
obj
- : the container's object reference where to set the contentviewContent
- : the content to set in the containerpublic object fwkGetParentDIV(object obj)
obj
-
public void fwkCancelEvent(object evt)
evt
- public void fwkLoadPage(string url)
url
- e.g. 'http://myhost:8080/', 'page', '../page', '..', '../..', '/', etc...public void fwkReplacePage(string url)
url
- e.g. 'http://myhost:8080/', 'page', '../page', '..', '../..', '/', etc...public void fwkReloadPage()
public string fwkGetLocation()
public void fwkSetFocus(object obj)
obj
- public void fwkSetFocus(string id)
id
- public void fwkSubmitForm(object obj)
obj
- public void fwkSubmitForm(string id)
id
- public void fwkResetForm(object obj)
obj
- public void fwkResetForm(string id)
id
- public void fwkCreateLogger(string loggerName)
loggerName
- : the name of the logger (kept as global window variable)