nl.tudelft.simulation.introspection.mapping
Class MyFontEditor

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended bynl.tudelft.simulation.introspection.mapping.MyFontEditor
All Implemented Interfaces:
javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor

public class MyFontEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor

An editor for fonts.

(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.2 Apr 15, 2004
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
protected  javax.swing.JLabel cellPanel
          the cellPanel
protected  java.awt.Font value
          the value
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
MyFontEditor()
           
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

value

protected java.awt.Font value
the value


cellPanel

protected javax.swing.JLabel cellPanel
the cellPanel

Constructor Detail

MyFontEditor

public MyFontEditor()
Method Detail

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor
See Also:
CellEditor.getCellEditorValue()

getTableCellEditorComponent

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


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