Package ca.spatial.util
Class FileCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
ca.spatial.util.FileCellEditor
- All Implemented Interfaces:
ActionListener
,MouseListener
,Serializable
,EventListener
,CellEditor
,TableCellEditor
public class FileCellEditor
extends AbstractCellEditor
implements TableCellEditor, MouseListener, ActionListener
Implement a
JTable
cell editor that will
pop up a JFileChooser
dialog when the contents of the table cell are being edited.- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
void
void
No action for click, enter or exit eventsvoid
void
void
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 Details
-
FileCellEditor
public FileCellEditor()
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
mouseEntered
No action for click, enter or exit events- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-