@Override public void bind() { breadCrumbs.loadChildPage("回复"); display.setBreadCrumbs(breadCrumbs.getDisplay().asWidget()); registerHandler( display .getSaveBtnClickHandlers() .addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { if (StringUtil.isEmpty(display.getContent())) { win.alert("请填写回复内容"); return; } dispatch.execute( new BroadcastReplyAddRequest( broadcastId, display.getContent(), sessionManager.getSession()), new AsyncCallback<BroadcastReplyAddResponse>() { @Override public void onFailure(Throwable t) { win.alert(t.getMessage()); } @Override public void onSuccess(BroadcastReplyAddResponse resp) { win.alert("保存成功"); Platform.getInstance() .getEditorRegistry() .openEditor( BroadcastingListConstants.EDITOR_BROADCASTINGLIST_SEARCH, "EDITOR_BROADCASTINGLIST_SEARCH_DO_ID", null); } }); } })); }
@Override public void bind() { breadCrumbs.loadChildPage("查看积分"); display.setBreadCrumbs(breadCrumbs.getDisplay().asWidget()); init(); registerHandler( display .getFirst() .addClickHandler( new ClickHandler() { @Override public void onClick(ClickEvent event) { Platform.getInstance() .getEditorRegistry() .openEditor( StaffHeavenIndexConstants.EDITOR_STAFFHEAVENINDEX_SEARCH, "EDITOR_STAFFHEAVENINDEX_SEARCH_DO_ID", null); } })); }