Class DirectRecordListModel<R extends SRecordInstance>
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.web.models.DirectRecordListModel<R>
-
- All Implemented Interfaces:
java.io.Externalizable
,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 DirectRecordListModel<R extends SRecordInstance> extends java.lang.Object implements org.apache.wicket.model.IModel<java.util.List<R>>, java.io.Externalizable
A Model that directly holds a list of SRecordInstance objects, ensuring that they are serialized safely.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DirectRecordListModel()
Do not call - for ExternalizableDirectRecordListModel(java.util.List<R> records)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach()
java.util.List<R>
getObject()
void
readExternal(java.io.ObjectInput in)
void
setObject(java.util.List<R> object)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Constructor Detail
-
DirectRecordListModel
public DirectRecordListModel()
Do not call - for Externalizable
-
DirectRecordListModel
public DirectRecordListModel(java.util.List<R> records)
-
-
Method Detail
-
getObject
public java.util.List<R> getObject()
- Specified by:
getObject
in interfaceorg.apache.wicket.model.IModel<R extends SRecordInstance>
-
setObject
public void setObject(java.util.List<R> object)
- Specified by:
setObject
in interfaceorg.apache.wicket.model.IModel<R extends SRecordInstance>
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
-