SPT Core API

com.sptci.echo
Interface ModelView<M>

Type Parameters:
M - The class of the model object backing the view.
All Superinterfaces:
View

public interface ModelView<M>
extends View

An interface used to represent View components that hold a backing model object.

Copyright 2008 Sans Pareil Technologies, Inc.

Version:
$Id: ModelView.java 4120 2008-05-25 20:49:48Z rakesh $
Author:
Rakesh Vidyadharan 2008-05-14

Method Summary
 M getModel()
          Return a reference to the model object backing the view.
 void setModel(M model)
          Set the model object backing the view component.
 

Method Detail

getModel

M getModel()
Return a reference to the model object backing the view.

Returns:
The model object instance.

setModel

void setModel(M model)
Set the model object backing the view component.

Parameters:
model - The model object to use to back the view.

SPT Core API