java.lang.Object
com.iamsoft.util.ui.swing.ActionTableCellEditor
- All Implemented Interfaces:
ActionListener
,EventListener
,CellEditor
,TableCellEditor
- Direct Known Subclasses:
StringActionTableCellEditor
public abstract class ActionTableCellEditor
extends Object
implements TableCellEditor, ActionListener
MySwing: Advanced Swing Utilites
Copyright (C) 2005 Santhosh Kumar T
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
actionPerformed
(ActionEvent pEvent) void
addCellEditorListener
(CellEditorListener pListener) void
protected abstract void
getTableCellEditorComponent
(JTable pTable, Object pValue, boolean pIsSelected, int pRow, int pColumn) boolean
isCellEditable
(EventObject pEvent) void
removeCellEditorListener
(CellEditorListener pListener) boolean
shouldSelectCell
(EventObject pEvent) boolean
-
Constructor Details
-
ActionTableCellEditor
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable pTable, Object pValue, boolean pIsSelected, int pRow, int pColumn) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditing
in interfaceCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditing
in interfaceCellEditor
-
addCellEditorListener
- Specified by:
addCellEditorListener
in interfaceCellEditor
-
removeCellEditorListener
- Specified by:
removeCellEditorListener
in interfaceCellEditor
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
editCell
-