jsx3.lang.Package.definePackage(
"eg.service", //the full name of the package to create
function(service) { //name the argument of this function
/**
* Clear work area
*
* @param bvpWorkArea {jsx3.app.Model} the JSX object to be cleared.
* @param objJSX {jsx3.app.Server} (target of the model event).
*/
service.clearWorkArea = function(workArea) {
workArea.removeChildren();
};
/**
* Launches reset password page.
* @param objJSX {jsx3.app.Model} target of the model event.
*/
service.resetPassword = function(objJSX) {
var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
service.clearWorkArea(workArea);
workArea .load("components/resetPassword.xml");
};
/**
* Launches register page.
* @param objJSX {jsx3.app.Model} target of the model event.
*/
service.register = function(objJSX) {
var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
service.clearWorkArea(workArea);
workArea .load("components/register.xml");
};
/**
* Launches cancel page.
* @param objJSX {jsx3.app.Model} target of the model event.
*/
service.cancel = function(objJSX) {
var workArea = objJSX.getServer().getJSXByName("bvpWorkArea");
service.clearWorkArea(workArea);
workArea .load("components/appCanvas.xml");
};
}
);
posted on 2007-03-26 20:16
周锐 阅读(305)
评论(0) 编辑 收藏 所属分类:
TIBCO