Package com.simsilica.lemur.grid
Class ArrayGridModel<T>
java.lang.Object
com.simsilica.lemur.grid.ArrayGridModel<T>
- All Implemented Interfaces:
VersionedObject<GridModel<T>>
,GridModel<T>
Wraps an row/column ordered array in a GridModel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new VersionedReference that can be used to monitor when this object changes.int
Returns the object that is being versioned.int
long
Returns the current version of the versioned object.protected void
void
-
Constructor Details
-
ArrayGridModel
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceGridModel<T>
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceGridModel<T>
-
getCell
-
setCell
-
incrementVersion
protected void incrementVersion() -
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>
-