Class TableCellEditor.ValueWrapper

Enclosing class:

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 Details

    • ValueWrapper

      protected ValueWrapper(Object value)
  • Method Details

    • getValue

      public Object getValue()
    • setValue

      public void setValue(Object value)
    • isValid

      public boolean isValid()
    • setValid

      public void setValid(boolean valid)
    • toString

      public String toString()
      toString in class Object