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.beaneditor.BeanModel<SampleRow> model
           
protected  org.apache.tapestry5.ComponentResources resources
           
 
Constructor Summary
SampleRowModelFactory(org.apache.tapestry5.services.BeanModelSource beanModelSource, org.apache.tapestry5.ComponentResources resources, ConnectedUser connectedUser)
           
 
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 initModel()
           
 org.apache.tapestry5.beaneditor.BeanModel<SampleRow> newModel()
           
 
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

model

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

SampleRowModelFactory

public SampleRowModelFactory(org.apache.tapestry5.services.BeanModelSource beanModelSource,
                             org.apache.tapestry5.ComponentResources resources,
                             ConnectedUser connectedUser)
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()

newModel

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


Copyright © 2009-2011 Ifremer. All Rights Reserved.