blob: d8693583d0bacf52a038b4d19224ec9cc7479912 [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, long columnPosition, long 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")
}
}