public class CompoundRecordModel<R extends SRecordInstance>
extends java.lang.Object
implements org.apache.wicket.model.IComponentInheritedModel<java.util.List<R>>, org.apache.wicket.model.IChainingModel<java.util.List<R>>
| Constructor and Description |
|---|
CompoundRecordModel(org.apache.wicket.model.IModel<java.util.List<R>> targetModel)
Creates a a CompoundRecordModel using a chained model.
|
CompoundRecordModel(java.util.List<R> records)
Creates a CompoundRecordModel directly on the record instance
|
CompoundRecordModel(R... records)
Creates a CompoundRecordModel directly on the record instance
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.wicket.model.IModel |
bind(SFieldMeta field)
Binds this model to a specific field by returning a model that has this compound model as its nested/wrapped
model and the property which should be evaluated.
|
void |
detach() |
org.apache.wicket.model.IModel<?> |
getChainedModel() |
java.util.List<R> |
getObject() |
java.util.List<SRecordInstance> |
getObjectAsRecordList() |
void |
setChainedModel(org.apache.wicket.model.IModel<?> model) |
void |
setObject(java.util.List<R> object) |
org.apache.wicket.model.IWrapModel<java.lang.Object> |
wrapOnInheritance(org.apache.wicket.Component component) |
public CompoundRecordModel(R... records)
public CompoundRecordModel(java.util.List<R> records)
public CompoundRecordModel(org.apache.wicket.model.IModel<java.util.List<R>> targetModel)
public java.util.List<R> getObject()
getObject in interface org.apache.wicket.model.IModel<java.util.List<R extends SRecordInstance>>IModel.getObject()public void setObject(java.util.List<R> object)
setObject in interface org.apache.wicket.model.IModel<java.util.List<R extends SRecordInstance>>IModel.setObject(java.lang.Object)public java.util.List<SRecordInstance> getObjectAsRecordList()
public org.apache.wicket.model.IModel bind(SFieldMeta field)
public org.apache.wicket.model.IWrapModel<java.lang.Object> wrapOnInheritance(org.apache.wicket.Component component)
wrapOnInheritance in interface org.apache.wicket.model.IComponentInheritedModel<java.util.List<R extends SRecordInstance>>public void detach()
detach in interface org.apache.wicket.model.IDetachablepublic org.apache.wicket.model.IModel<?> getChainedModel()
getChainedModel in interface org.apache.wicket.model.IChainingModel<java.util.List<R extends SRecordInstance>>IChainingModel.getChainedModel()public void setChainedModel(org.apache.wicket.model.IModel<?> model)
setChainedModel in interface org.apache.wicket.model.IChainingModel<java.util.List<R extends SRecordInstance>>