Class RecordListModel<R extends PersistentRecord>
- java.lang.Object
-
- org.apache.wicket.model.LoadableDetachableModel<java.util.List<R>>
-
- com.inductiveautomation.ignition.gateway.web.models.RecordListModel<R>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.model.IModel<java.util.List<R>>
,org.apache.wicket.util.io.IClusterable
public class RecordListModel<R extends PersistentRecord> extends org.apache.wicket.model.LoadableDetachableModel<java.util.List<R>>
A LoadableDetachableModel that loads a record list on demand- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordListModel(RecordMeta<R> meta)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
filter(R record)
protected SFieldMeta
getSortField(SRecordMeta<R> meta)
Results will be sorted ascending based on this field.protected java.util.List<R>
load()
-
-
-
Constructor Detail
-
RecordListModel
public RecordListModel(RecordMeta<R> meta)
-
-
Method Detail
-
getSortField
protected SFieldMeta getSortField(SRecordMeta<R> meta)
Results will be sorted ascending based on this field. Default is Name
-
load
protected java.util.List<R> load()
- Specified by:
load
in classorg.apache.wicket.model.LoadableDetachableModel<java.util.List<R extends PersistentRecord>>
-
filter
protected boolean filter(R record)
-
-