org.xulux.guilayer.swing.models
Class NyxTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.xulux.guilayer.swing.models.NyxTableCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

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

A table cell editor for Xulux

Version:
$Id: NyxTableCellEditor.java,v 1.1 2005/12/18 12:58:21 mvdb Exp $
Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
NyxTableCellEditor(org.xulux.api.gui.IWidget widget)
           
 
Method Summary
 void destroy()
          Destroy the editor.
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 org.xulux.api.gui.IWidget getWidget()
           
 void stopCellEditing(javax.swing.JTable table)
          Stops the editing of cells.
 
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
 

Constructor Detail

NyxTableCellEditor

public NyxTableCellEditor(org.xulux.api.gui.IWidget widget)
Parameters:
widget - the widget
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(javax.swing.JTable, java.lang.Object, boolean, int, int)

stopCellEditing

public void stopCellEditing(javax.swing.JTable table)
Stops the editing of cells.

Parameters:
table - the table

getWidget

public org.xulux.api.gui.IWidget getWidget()
Returns:
the widget that is the editor.

destroy

public void destroy()
Destroy the editor.



Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.