org.rubato.rubettes.wallpaper
Class SimpleFormsCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by org.rubato.rubettes.wallpaper.SimpleFormsCellEditor
All Implemented Interfaces:
java.awt.event.MouseListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class SimpleFormsCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, java.awt.event.MouseListener

A cell editor used for table cells defining the coordinates that are to be mapped by a morphism. The coordinates string is visible and the select coordinates dialog opens, when the cell is doubleclicked.

Author:
Florian Thalmann
See Also:
Serialized Form

Constructor Summary
SimpleFormsCellEditor()
           
 
Method Summary
 java.lang.Object getCellEditorValue()
          The value returned are the coordinates selected in the dialog.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          The cell contains a button.
 void mouseClicked(java.awt.event.MouseEvent e)
          When the cell is double clicked, the select coordinates dialog opens.
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

SimpleFormsCellEditor

public SimpleFormsCellEditor()
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
When the cell is double clicked, the select coordinates dialog opens.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

getCellEditorValue

public java.lang.Object getCellEditorValue()
The value returned are the coordinates selected in the dialog.

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)
The cell contains a button. The select coordinates dialog is created in this method.

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener