01: package com.bostechcorp.cbesb.console.client.endpoint;
02:
03: import com.bostechcorp.cbesb.console.client.Admin;
04: import com.bostechcorp.cbesb.console.client.ConsoleCallback;
05: import com.bostechcorp.cbesb.console.client.dialogs.MessageViewDialog;
06: import com.bostechcorp.cbesb.console.common.BaseRPCResultInfo;
07: import com.bostechcorp.cbesb.console.i18n.ConsoleMessages;
08: import com.google.gwt.core.client.GWT;
09:
10: public class ResetCallback extends ConsoleCallback {
11:
12: public ResetCallback(Admin admin) {
13: super (admin);
14: }
15:
16: public void handleSuccess(Object result) {
17: if (result instanceof BaseRPCResultInfo) {
18: MessageViewDialog
19: .showInfo(((ConsoleMessages) GWT
20: .create(ConsoleMessages.class))
21: .resetSuccessfully());
22: ((EndpointBase) this .handler).refresh();
23:
24: } else {
25: System.out
26: .println("unexpected callback object, expecting JmxEndpointInfo");
27: }
28:
29: }
30:
31: }
|