nl.tudelft.simulation.introspection.mapping
Class MyDefaultEditor

java.lang.Object
  extended by nl.tudelft.simulation.introspection.mapping.MyDefaultEditor
All Implemented Interfaces:
CellEditor, TableCellEditor

public class MyDefaultEditor
extends Object
implements TableCellEditor

The default editor.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.4
Version:
1.2 Apr 15, 2004
Author:
Peter Jacobs

Constructor Summary
MyDefaultEditor()
           
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
           
 void cancelCellEditing()
           
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(EventObject anEvent)
           
 void removeCellEditorListener(CellEditorListener l)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyDefaultEditor

public MyDefaultEditor()
Method Detail

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor
See Also:
TableCellEditor.getTableCellEditorComponent(JTable, Object, boolean, int, int)

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor
See Also:
CellEditor.cancelCellEditing()

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor
See Also:
CellEditor.getCellEditorValue()

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface CellEditor
See Also:
CellEditor.isCellEditable(EventObject)

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Specified by:
shouldSelectCell in interface CellEditor
See Also:
CellEditor.shouldSelectCell(EventObject)

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor
See Also:
CellEditor.stopCellEditing()

addCellEditorListener

public void addCellEditorListener(CellEditorListener l)
Specified by:
addCellEditorListener in interface CellEditor
See Also:
CellEditor.addCellEditorListener(CellEditorListener)

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)
Specified by:
removeCellEditorListener in interface CellEditor
See Also:
CellEditor.removeCellEditorListener(CellEditorListener)


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.