20140210____________________
01_$_:
com.vtradex.thorn.client.data.DataAccessor.remoteCall(String message, String managerName, String methodName, Map params)
实现方法类一般要extends DataAccessor
执行顺序:
01:先执行managerName中的methodName(param参数)
02:发消息message(调用doDispath方法)
eg:
public void remoteCallModifyInit(Map params) {
this.remoteCall(WmsSupplyNoticeDetailConstants.KEY_MODIFY_INIT,
WmsSupplyNoticeDetailConstants.MANAGER_ID,
WmsSupplyNoticeDetailConstants.METHOD_MODIFY_INIT, params);
}
02_$_:
发消息message(调用doDispath方法)
com.vtradex.thorn.client.message.IMessagePage.doDispath(String message)
实现方法类一般要extends BaseCustomMaintainTemplate或extends DataAccessor或extends AbstractSupportPanel
(父类IMessagePage)
public void sendMessage(String message){
page.doDispath(message);
}
eg:点击时发送消息初始化页面信息
protected HTML zone_HyperLink = new HTML("");
protected void initListener(){
zone_HyperLink.addClickListener(new ClickListener(){
public void onClick(Widget sender) {
getData().sendMessage("msg_open_zone_panel");
}
});
}
//以下是调用doDispath方法,该方法类继承了extends AbstractSupportPane
public void doDispath(String message){
if("msg_open_zone_panel".equals(message)) {
this.removeHistoryPanel();
this.addCenterPanel(new Sub_Zone_Image_Panel(page));
this.refreshNavigatePanel();
......
}
}