blob: de34212a595e3ce3a48ef191c36a8db8a90d7d12 [file] [log] [blame]
package org.eclipse.nebula.widgets.nattable.core.layer.cell.impl
import org.eclipse.nebula.widgets.nattable.core.layer.Layer
/**
* A simple Cell that supports reading but not writing its data value.
*/
class ReadOnlyCell extends AbstractCell {
val Object dataValue
new(Layer layer, int columnPosition, int rowPosition, Object dataValue) {
super(layer, columnPosition, rowPosition)
this.dataValue = dataValue
}
// Cell interface
override getDataValue() { dataValue }
override setDataValue(Object newValue) {
throw new UnsupportedOperationException("TODO: auto-generated method stub")
}
}