Class TableCellEditor.ValueWrapper
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.editor.TableCellEditor.ValueWrapper
-
- Enclosing class:
- TableCellEditor
protected class TableCellEditor.ValueWrapper extends Object
This class is needed to make editing work correctly within the TableViewer. If we only work with the values themselves and the collection contains the same values like for example the same Strings, calling editElement() will always jump to the first element in the table with that value instead of the selected one. With this wrapper we ensure that the selected value is edited because we do not override equals() and hashCode()
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValueWrapper(Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
boolean
isValid()
void
setValid(boolean valid)
void
setValue(Object value)
String
toString()
-
-
-
Constructor Detail
-
ValueWrapper
protected ValueWrapper(Object value)
-
-