Package com.simsilica.lemur.list
Class ListModel<T>
java.lang.Object
com.simsilica.lemur.list.ListModel<T>
- All Implemented Interfaces:
VersionedObject<GridModel<Panel>>
,GridModel<Panel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new VersionedReference that can be used to monitor when this object changes.int
getItem
(int index) Returns the object that is being versioned.int
long
Returns the current version of the versioned object.void
-
Constructor Details
-
ListModel
-
-
Method Details
-
getItem
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceGridModel<T>
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceGridModel<T>
-
getCell
-
setCell
-
getVersion
public long getVersion()Description copied from interface:VersionedObject
Returns the current version of the versioned object.- Specified by:
getVersion
in interfaceVersionedObject<T>
-
getObject
Description copied from interface:VersionedObject
Returns the object that is being versioned.- Specified by:
getObject
in interfaceVersionedObject<T>
-
createReference
Description copied from interface:VersionedObject
Creates a new VersionedReference that can be used to monitor when this object changes.- Specified by:
createReference
in interfaceVersionedObject<T>
-