Class 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 Detail

      • ValueWrapper

        protected ValueWrapper​(Object value)
    • Method Detail

      • getValue

        public Object getValue()
      • setValue

        public void setValue​(Object value)
      • isValid

        public boolean isValid()
      • setValid

        public void setValid​(boolean valid)