fr.ifremer.wao.ui.services
Class SampleRowModelFactory

java.lang.Object
  extended by fr.ifremer.wao.ui.services.SampleRowModelFactory

public class SampleRowModelFactory
extends Object

Used to generate a bean model for the grid used in sampling plan showed on page ObsDebSamplingPlan. This factory will generate a model showing the columnsForImport that the user has the right to see.

Author:
bleny

Nested Class Summary
protected static class SampleRowModelFactory.SampleRowReaderPropertyConduit
          put in common some implementation of PropertyConduit interface.
 
Field Summary
protected  org.apache.tapestry5.services.BeanModelSource beanModelSource
           
protected  ConnectedUser connectedUser
           
protected  org.apache.tapestry5.ioc.Messages messages
           
protected  org.apache.tapestry5.beaneditor.BeanModel<SampleRow> model
           
protected  org.apache.tapestry5.ComponentResources resources
           
protected  ServiceContact serviceContact
           
 
Constructor Summary
SampleRowModelFactory(org.apache.tapestry5.services.BeanModelSource beanModelSource, org.apache.tapestry5.ComponentResources resources, ConnectedUser connectedUser, org.apache.tapestry5.ioc.Messages messages, ServiceContact serviceContact)
           
 
Method Summary
protected  void add(String property)
           
protected  void add(String property, org.apache.tapestry5.PropertyConduit conduit)
          add a property in the model and make it not sortable
protected  void filterModel(ObservationType observationType)
           
protected  void initModel()
           
 org.apache.tapestry5.beaneditor.BeanModel<SampleRow> newModel(ObservationType observationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanModelSource

protected org.apache.tapestry5.services.BeanModelSource beanModelSource

resources

protected org.apache.tapestry5.ComponentResources resources

connectedUser

protected ConnectedUser connectedUser

messages

protected org.apache.tapestry5.ioc.Messages messages

model

protected org.apache.tapestry5.beaneditor.BeanModel<SampleRow> model

serviceContact

protected ServiceContact serviceContact
Constructor Detail

SampleRowModelFactory

public SampleRowModelFactory(org.apache.tapestry5.services.BeanModelSource beanModelSource,
                             org.apache.tapestry5.ComponentResources resources,
                             ConnectedUser connectedUser,
                             org.apache.tapestry5.ioc.Messages messages,
                             ServiceContact serviceContact)
Method Detail

add

protected void add(String property,
                   org.apache.tapestry5.PropertyConduit conduit)
add a property in the model and make it not sortable

Parameters:
property - the name of the property to add
conduit - a PropertyConduit to get the String representation of the value of the property, may be null if toString can be used

add

protected void add(String property)

initModel

protected void initModel()

filterModel

protected void filterModel(ObservationType observationType)

newModel

public org.apache.tapestry5.beaneditor.BeanModel<SampleRow> newModel(ObservationType observationType)


Copyright © 2009-2012 Ifremer. All Rights Reserved.