pl.edu.agh.cast.importer.wizard.utils
Class DataRowEditingSupport

java.lang.Object
  extended by org.eclipse.jface.viewers.EditingSupport
      extended by pl.edu.agh.cast.importer.wizard.utils.DataRowEditingSupport

public class DataRowEditingSupport
extends org.eclipse.jface.viewers.EditingSupport

Support for DataRow editing, which can be set for table viewers.

Author:
AGH CAST Team

Constructor Summary
DataRowEditingSupport(org.eclipse.jface.viewers.TableViewer viewer, String format, int columnIdx, ValidationPageComposite mediator)
          The default constructor.
 
Method Summary
protected  boolean canEdit(Object element)
          
protected  org.eclipse.jface.viewers.CellEditor getCellEditor(Object element)
          
protected  Object getValue(Object element)
          
protected  void setValue(Object element, Object value)
          
 
Methods inherited from class org.eclipse.jface.viewers.EditingSupport
getViewer, initializeCellEditorValue, saveCellEditorValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRowEditingSupport

public DataRowEditingSupport(org.eclipse.jface.viewers.TableViewer viewer,
                             String format,
                             int columnIdx,
                             ValidationPageComposite mediator)
The default constructor.

Parameters:
viewer - the table viewer
format - the formating, which is to be used to properly format column data
columnIdx - the column index
mediator - the mediating composite
Method Detail

canEdit

protected boolean canEdit(Object element)

Specified by:
canEdit in class org.eclipse.jface.viewers.EditingSupport
See Also:
EditingSupport.canEdit(java.lang.Object)

getCellEditor

protected org.eclipse.jface.viewers.CellEditor getCellEditor(Object element)

Specified by:
getCellEditor in class org.eclipse.jface.viewers.EditingSupport
See Also:
EditingSupport.getCellEditor(java.lang.Object)

getValue

protected Object getValue(Object element)

Specified by:
getValue in class org.eclipse.jface.viewers.EditingSupport
See Also:
EditingSupport.getValue(java.lang.Object)

setValue

protected void setValue(Object element,
                        Object value)

Specified by:
setValue in class org.eclipse.jface.viewers.EditingSupport
See Also:
EditingSupport.setValue(java.lang.Object, java.lang.Object)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.