Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.client.widget
Interface HasModel<M>

Type Parameters:
M - the model type.

public interface HasModel<M>

Indicates that the implementing widget displays an instance of type .

Author:
Christian Sadilek

Method Summary
 M getModel()
          Returns the model instance associated with this widget.
 void setModel(M model)
          Associate the model instance with this widget.
 

Method Detail

getModel

M getModel()
Returns the model instance associated with this widget.

Returns:
the model instance, or null if no instance is associated with this widget.

setModel

void setModel(M model)
Associate the model instance with this widget.

Parameters:
model - the model instance.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.