Class TEditingSupport

  • All Implemented Interfaces:
    org.eclipse.jface.viewers.ICellEditorValidator

    public class TEditingSupport
    extends org.eclipse.jface.viewers.EditingSupport
    implements org.eclipse.jface.viewers.ICellEditorValidator
    Editing support for ID column and KStrings in columns with index larger than zero.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected booleancanEdit​(java.lang.Object element)
      Can always edit if correct element: KStringProp.
      protected org.eclipse.jface.viewers.CellEditorgetCellEditor​(java.lang.Object element)
      Gets the cell editor.
      protected java.lang.ObjectgetValue​(java.lang.Object element)
      Gets the value to edit.
      protected voidinitializeCellEditorValue​(org.eclipse.jface.viewers.CellEditor cellEditor, org.eclipse.jface.viewers.ViewerCell cell)
      Initialize the editor.
      java.lang.StringisValid​(java.lang.Object value)
      Checks for validity.
      protected voidsetValue​(java.lang.Object element, java.lang.Object value)
      Sets the value after editing.
      • Methods inherited from class org.eclipse.jface.viewers.EditingSupport

        getViewer, saveCellEditorValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initializeCellEditorValue

        protected void initializeCellEditorValue​(org.eclipse.jface.viewers.CellEditor cellEditor,
                                                 org.eclipse.jface.viewers.ViewerCell cell)
        Initialize the editor.
        Overrides:
        initializeCellEditorValue in class org.eclipse.jface.viewers.EditingSupport
        Parameters:
        cellEditor - The cell editor.
        cell - The cell the editor is working for.
      • getCellEditor

        protected org.eclipse.jface.viewers.CellEditor getCellEditor​(java.lang.Object element)
        Gets the cell editor.
        Specified by:
        getCellEditor in class org.eclipse.jface.viewers.EditingSupport
      • canEdit

        protected boolean canEdit​(java.lang.Object element)
        Can always edit if correct element: KStringProp.
        Specified by:
        canEdit in class org.eclipse.jface.viewers.EditingSupport
      • getValue

        protected java.lang.Object getValue​(java.lang.Object element)
        Gets the value to edit.
        Specified by:
        getValue in class org.eclipse.jface.viewers.EditingSupport
      • setValue

        protected void setValue​(java.lang.Object element,
                                java.lang.Object value)
        Sets the value after editing.
        Specified by:
        setValue in class org.eclipse.jface.viewers.EditingSupport
      • isValid

        public java.lang.String isValid​(java.lang.Object value)
        Checks for validity.
        Specified by:
        isValid in interface org.eclipse.jface.viewers.ICellEditorValidator