edu.mayo.bsi.ngsportal.client
Class HandleString

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.client.HandleString
All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback<String>

public class HandleString
extends Object
implements com.google.gwt.user.client.rpc.AsyncCallback<String>

Class to handle getting a String from the server, and sending it to the client for processing

@author Gregory Dougherty


Constructor Summary
HandleString(String procName, NGSPortal caller, StringResult target)
          Make a callback object to handle an RPC call to a routine that returns a Boolean.
 
Method Summary
 void onFailure(Throwable caught)
           
 void onSuccess(String result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleString

public HandleString(String procName,
                    NGSPortal caller,
                    StringResult target)
Make a callback object to handle an RPC call to a routine that returns a Boolean.

Parameters:
procName - Name of the routine being called, so can correctly handle the response
caller - The object to call when get a response
target - Object to call with the string if the string is non-null. Must not be null
Method Detail

onFailure

public void onFailure(Throwable caught)
Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<String>

onSuccess

public void onSuccess(String result)
Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<String>