public class CreateIndividualObservationBatchUIModel extends AbstractTuttiBeanUIModel<IndividualObservationBatch,CreateIndividualObservationBatchUIModel>
| Modifier and Type | Class and Description |
|---|---|
class |
CreateIndividualObservationBatchUIModel.CaracteristicMapPropertyEditor
Model to edit a caracteristic and flush it in the caracteristc map of
the global model.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Species> |
availableSpecies
All available species (sets by protocol).
|
protected Map<Species,Integer> |
batchSpecies
All species used in batches with their count.
|
protected List<CreateIndividualObservationBatchUIModel.CaracteristicMapPropertyEditor> |
caracteristicEditors
Default caracteristics editors.
|
protected boolean |
createFromBatch
Does we want to create rows from batch?
|
protected List<Caracteristic> |
defaultCaracteristic
Default caracteristics coming from protocol.
|
protected IndividualObservationBatch |
editObject
Delegate edit object.
|
static String |
PROPERTY_AVAILABLE_SPECIES |
static String |
PROPERTY_BATCH_SPECIES |
static String |
PROPERTY_CARACTERISTICS |
static String |
PROPERTY_CREATE_FROM_BATCH |
static String |
PROPERTY_SPECIES_FROM_BATCH |
static String |
PROPERTY_SPECIES_FROM_BATCH_WITH_ONE_COUNT |
id, modify, PROPERTY_MODIFY, PROPERTY_VALID, validPROPERTY_ID| Constructor and Description |
|---|
CreateIndividualObservationBatchUIModel(List<Caracteristic> defaultCaracteristic) |
| Modifier and Type | Method and Description |
|---|---|
List<Species> |
getAvailableSpecies() |
Map<Species,Integer> |
getBatchSpecies() |
CaracteristicMap |
getCaracteristics() |
Caracteristic |
getLengthStepCaracteristic() |
Float |
getSize() |
Species |
getSpecies() |
Float |
getWeight() |
boolean |
isCreateFromBatch() |
boolean |
isSpeciesFromBatch() |
boolean |
isSpeciesFromBatchWithCount() |
boolean |
isSpeciesFromBatchWithOneCount() |
CreateIndividualObservationBatchUIModel.CaracteristicMapPropertyEditor |
newCaracteristicEditor(Caracteristic caracteristic) |
protected IndividualObservationBatch |
newEntity() |
void |
reset() |
void |
setAvailableSpecies(List<Species> availableSpecies) |
void |
setBatchSpecies(Map<Species,Integer> batchSpecies) |
void |
setCaracteristics(CaracteristicMap caracteristics) |
void |
setCreateFromBatch(boolean createFromBatch) |
void |
setLengthStepCaracteristic(Caracteristic lengthStepCaracteristic) |
void |
setSize(Float size) |
void |
setSpecies(Species species) |
void |
setWeight(Float weight) |
firePropertyChanged, fromBean, fromEntity, getChild, getChild, getId, getIdAsInt, isCreate, isModify, isValid, setId, setId, setModify, setValid, toBean, toEntityaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_AVAILABLE_SPECIES
public static final String PROPERTY_BATCH_SPECIES
public static final String PROPERTY_SPECIES_FROM_BATCH
public static final String PROPERTY_SPECIES_FROM_BATCH_WITH_ONE_COUNT
public static final String PROPERTY_CREATE_FROM_BATCH
public static final String PROPERTY_CARACTERISTICS
protected List<Species> availableSpecies
protected Map<Species,Integer> batchSpecies
protected boolean createFromBatch
protected final IndividualObservationBatch editObject
protected final List<Caracteristic> defaultCaracteristic
protected final List<CreateIndividualObservationBatchUIModel.CaracteristicMapPropertyEditor> caracteristicEditors
public CreateIndividualObservationBatchUIModel(List<Caracteristic> defaultCaracteristic)
public Species getSpecies()
public void setSpecies(Species species)
public Float getWeight()
public void setWeight(Float weight)
public Float getSize()
public void setSize(Float size)
public Caracteristic getLengthStepCaracteristic()
public void setLengthStepCaracteristic(Caracteristic lengthStepCaracteristic)
public CaracteristicMap getCaracteristics()
public void setCaracteristics(CaracteristicMap caracteristics)
public boolean isSpeciesFromBatch()
public boolean isSpeciesFromBatchWithOneCount()
public boolean isSpeciesFromBatchWithCount()
public boolean isCreateFromBatch()
public void setCreateFromBatch(boolean createFromBatch)
protected IndividualObservationBatch newEntity()
newEntity in class AbstractTuttiBeanUIModel<IndividualObservationBatch,CreateIndividualObservationBatchUIModel>public void reset()
public CreateIndividualObservationBatchUIModel.CaracteristicMapPropertyEditor newCaracteristicEditor(Caracteristic caracteristic)
Copyright © 2012–2013 Ifremer. All rights reserved.