info.joseluismartin.vaadin.ui
Class AbstractView<T>

java.lang.Object
  extended by info.joseluismartin.vaadin.ui.AbstractView<T>
All Implemented Interfaces:
Binder<T>, ModelHolder<T>, View<T>, Serializable
Direct Known Subclasses:
VaadinPaginator

public abstract class AbstractView<T>
extends Object
implements View<T>, Serializable

Base class for Views. Subclases must implements buildPanel() method to create the Vaadin component of the view.

Author:
Jose Luis Martin - (jlm@joseluismartin.info)
See Also:
Serialized Form

Constructor Summary
AbstractView()
           
 
Method Summary
protected abstract  com.vaadin.ui.Component buildPanel()
          Build the Component of view.
 com.vaadin.ui.Component getComponent()
          Get the View Component
 T getModel()
          Gets model
 void setModel(T model)
          Sets model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.joseluismartin.vaadin.ui.Binder
refresh, update
 

Constructor Detail

AbstractView

public AbstractView()
Method Detail

buildPanel

protected abstract com.vaadin.ui.Component buildPanel()
Build the Component of view.

Returns:

getComponent

public com.vaadin.ui.Component getComponent()
Get the View Component

Specified by:
getComponent in interface View<T>
Returns:
the view Component

getModel

public T getModel()
Gets model

Specified by:
getModel in interface ModelHolder<T>
Returns:
the model

setModel

public void setModel(T model)
Sets model

Specified by:
setModel in interface ModelHolder<T>


Copyright © 2012 JDAL. All Rights Reserved.