org.kuali.student.common.ui.client.mvc
Interface ModelRequestCallback<T extends Model>

Type Parameters:
T - the type of model being requested

public interface ModelRequestCallback<T extends Model>

Passed in as an argument to Controller.requestModel Because a model may need to be initialized via an asynchronous call, the request uses a callback to pass the result back to the caller

Author:
Kuali Student Team

Method Summary
 void onModelReady(T model)
          Called when the model is available
 void onRequestFail(Throwable cause)
          Called when the controller was unable to provide the model
 

Method Detail

onModelReady

void onModelReady(T model)
Called when the model is available

Parameters:
model - the model that was requested

onRequestFail

void onRequestFail(Throwable cause)
Called when the controller was unable to provide the model

Parameters:
cause - the exception that prevented the model from being provided, or null if the model was simply not located


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.