public class SplitBenthosBatchUIModel extends AbstractTuttiTableUIModel<BenthosBatchRowModel,SplitBenthosBatchRowModel,SplitBenthosBatchUIModel> implements SelectedCategoryAble
SplitBenthosBatchUI.| Modifier and Type | Field and Description |
|---|---|
protected BenthosBatchRowModel |
batch
Batch which fires the editor.
|
protected List<SampleCategoryModelEntry> |
category
Sample categories.
|
static String |
PROPERTY_BATCH_WEIGHT |
static String |
PROPERTY_CATEGORY |
static String |
PROPERTY_SAMPLE_WEIGHT |
static String |
PROPERTY_SELECTED_CATEGORY |
protected SampleCategoryModel |
sampleCategoryModel
Model of sample categories.
|
protected Float |
sampleWeight
Sample weight of split batches.
|
protected SampleCategoryModelEntry |
selectedCategory
Selected Sample category.
|
protected boolean |
splitMode
Is ui in split mode ?
|
protected fr.ifremer.shared.application.type.WeightUnit |
weightUnit
Weight unit.
|
PROPERTY_ROWS, PROPERTY_ROWS_IN_ERROR, rows, rowsInErrorid, modify, PROPERTY_MODIFY, PROPERTY_VALID, validPROPERTY_ID| Constructor and Description |
|---|
SplitBenthosBatchUIModel(fr.ifremer.shared.application.type.WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel) |
| Modifier and Type | Method and Description |
|---|---|
BenthosBatchRowModel |
getBatch() |
Float |
getBatchWeight() |
List<SampleCategoryModelEntry> |
getCategory() |
SampleCategoryModel |
getSampleCategoryModel() |
Float |
getSampleWeight() |
SampleCategoryModelEntry |
getSelectedCategory() |
boolean |
isSplitMode() |
protected BenthosBatchRowModel |
newEntity() |
void |
setBatch(BenthosBatchRowModel batch) |
void |
setCategory(List<SampleCategoryModelEntry> category) |
void |
setSampleWeight(Float sampleWeight) |
void |
setSelectedCategory(SampleCategoryModelEntry selectedCategory) |
void |
setSplitMode(boolean splitMode) |
addRowInError, getRowCount, getRows, getRowsInError, removeRowInError, setRows, setRowsInErrorfirePropertyChanged, 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_CATEGORY
public static final String PROPERTY_SELECTED_CATEGORY
public static final String PROPERTY_BATCH_WEIGHT
public static final String PROPERTY_SAMPLE_WEIGHT
protected BenthosBatchRowModel batch
protected List<SampleCategoryModelEntry> category
protected SampleCategoryModelEntry selectedCategory
protected Float sampleWeight
protected SampleCategoryModel sampleCategoryModel
protected final fr.ifremer.shared.application.type.WeightUnit weightUnit
protected boolean splitMode
public SplitBenthosBatchUIModel(fr.ifremer.shared.application.type.WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel)
protected BenthosBatchRowModel newEntity()
newEntity in class AbstractTuttiBeanUIModel<BenthosBatchRowModel,SplitBenthosBatchUIModel>public BenthosBatchRowModel getBatch()
public void setBatch(BenthosBatchRowModel batch)
public List<SampleCategoryModelEntry> getCategory()
public void setCategory(List<SampleCategoryModelEntry> category)
public SampleCategoryModelEntry getSelectedCategory()
getSelectedCategory in interface SelectedCategoryAblepublic void setSelectedCategory(SampleCategoryModelEntry selectedCategory)
public Float getBatchWeight()
public Float getSampleWeight()
public void setSampleWeight(Float sampleWeight)
public SampleCategoryModel getSampleCategoryModel()
public boolean isSplitMode()
public void setSplitMode(boolean splitMode)
Copyright © 2012–2014 Ifremer. All rights reserved.