net.nand.util.i18n.gui
Class PropertiesTranslatorEditor.CellEditorMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by net.nand.util.i18n.gui.PropertiesTranslatorEditor.CellEditorMouseListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Enclosing class:
PropertiesTranslatorEditor

private class PropertiesTranslatorEditor.CellEditorMouseListener
extends java.awt.event.MouseAdapter

Listener to double-click while editing cell text, to bring up a larger edit dialog.


Constructor Summary
private PropertiesTranslatorEditor.CellEditorMouseListener()
           
 
Method Summary
 void mouseReleased(java.awt.event.MouseEvent e)
           
private  void showCellEditDialog(int row, int col, java.lang.String etext)
          Edit this row and column of the table in a dialog.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesTranslatorEditor.CellEditorMouseListener

private PropertiesTranslatorEditor.CellEditorMouseListener()
Method Detail

mouseReleased

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

showCellEditDialog

private void showCellEditDialog(int row,
                                int col,
                                java.lang.String etext)
Edit this row and column of the table in a dialog. Editor is multi-line except for column 1 (key column). Assumes is called from the event dispatch thread (from mouseReleased or similar). If not, use SwingUtilities.invokeLater.

Parameters:
row - Row to edit
col - Column to edit
etext - Starting text for edit, or null to get text from the model cell