de.mguennewig.pobjsearch
Class PObjCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by de.mguennewig.pobjsearch.PObjCellEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class PObjCellEditor
extends javax.swing.AbstractCellEditor
implements java.awt.event.ActionListener, javax.swing.table.TableCellEditor

A table cell editor for search tables.

Author:
Michael Günnewig
See Also:
Serialized Form

Constructor Summary
PObjCellEditor(SearchTableModel resultModel)
          Creates a new PObjCellEditor with a default resource bundle.
PObjCellEditor(SearchTableModel resultModel, java.util.ResourceBundle resourceBundle)
          Creates a new PObjCellEditor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is public as an implementation side effect do not call or override.
 java.lang.Object getCellEditorValue()
           
 int getClickCountToStart()
           
 java.util.ResourceBundle getResourceBundle()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(java.util.EventObject anEvent)
           
 void setClickCountToStart(int clickCountToStart)
           
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

PObjCellEditor

public PObjCellEditor(SearchTableModel resultModel)
Creates a new PObjCellEditor with a default resource bundle.


PObjCellEditor

public PObjCellEditor(SearchTableModel resultModel,
                      java.util.ResourceBundle resourceBundle)
Creates a new PObjCellEditor.

Method Detail

getResourceBundle

public final java.util.ResourceBundle getResourceBundle()

getClickCountToStart

public final int getClickCountToStart()

setClickCountToStart

public void setClickCountToStart(int clickCountToStart)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This method is public as an implementation side effect do not call or override.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

getCellEditorValue

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

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

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Specified by:
isCellEditable in interface javax.swing.CellEditor
Overrides:
isCellEditable in class javax.swing.AbstractCellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor
Overrides:
stopCellEditing in class javax.swing.AbstractCellEditor