public class FieldValuesModel extends org.apache.wicket.model.LoadableDetachableModel<List<FieldValueModel>> implements Comparator<FieldValueModel>
Constructor and Description |
---|
FieldValuesModel(FieldInstanceModel fieldInstanceModel) |
FieldValuesModel(FieldInstanceModel fieldInstanceModel,
Comparator<Object> comparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(FieldValueModel fvm1,
FieldValueModel fvm2) |
boolean |
containsExisting() |
boolean |
getAutoExtraField() |
FieldInstanceModel |
getFieldInstanceModel() |
int |
getNumberOfValues()
Get the number of actual existing values.
|
List<FieldValueModel> |
getObject() |
boolean |
getShowExtraField() |
boolean |
getShowExtraFieldUserTriggered() |
protected Collection<? extends Object> |
getValues(FieldInstance fieldInstance) |
protected List<FieldValueModel> |
load() |
void |
setAutoExtraField(boolean autoExtraField) |
void |
setShowExtraField(boolean showExtraField,
boolean userTriggered) |
int |
size()
Returns the number of values in the model.
|
detach, isAttached, onAttach, onDetach, setObject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FieldValuesModel(FieldInstanceModel fieldInstanceModel)
public FieldValuesModel(FieldInstanceModel fieldInstanceModel, Comparator<Object> comparator)
public boolean getAutoExtraField()
public void setAutoExtraField(boolean autoExtraField)
public FieldInstanceModel getFieldInstanceModel()
public boolean getShowExtraField()
public boolean getShowExtraFieldUserTriggered()
public void setShowExtraField(boolean showExtraField, boolean userTriggered)
public int size()
public int getNumberOfValues()
public boolean containsExisting()
protected Collection<? extends Object> getValues(FieldInstance fieldInstance)
public List<FieldValueModel> getObject()
getObject
in interface org.apache.wicket.model.IModel<List<FieldValueModel>>
getObject
in class org.apache.wicket.model.LoadableDetachableModel<List<FieldValueModel>>
protected List<FieldValueModel> load()
load
in class org.apache.wicket.model.LoadableDetachableModel<List<FieldValueModel>>
public int compare(FieldValueModel fvm1, FieldValueModel fvm2)
compare
in interface Comparator<FieldValueModel>