| package org.eclipse.nebula.widgets.nattable.core.layer.cell |
| |
| import org.eclipse.nebula.widgets.nattable.core.geometry.PositionRectangle |
| import org.eclipse.nebula.widgets.nattable.core.layer.Layer |
| |
| class ReadOnlyCell implements Cell { |
| |
| val Layer layer |
| val PositionRectangle positionBounds |
| val Object dataValue |
| |
| new(Layer layer, int columnPosition, int rowPosition, Object dataValue) { |
| this.layer = layer |
| this.positionBounds = new PositionRectangle(columnPosition, rowPosition, 1, 1) |
| this.dataValue = dataValue |
| } |
| |
| override getLayer() { layer } |
| override getPositionBounds() { positionBounds } |
| override getDataValue() { dataValue } |
| |
| override setDataValue(Object newValue) { |
| throw new UnsupportedOperationException("TODO: auto-generated method stub") |
| } |
| |
| } |