Class AbstractSelectTableAction<M extends AbstractApplicationTableModel>
java.lang.Object
javax.swing.AbstractAction
org.nuiton.jaxx.application.swing.table.AbstractSelectTableAction<M>
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Direct Known Subclasses:
MoveToNextEditableCellAction,MoveToNextEditableRowAction,MoveToPreviousEditableCellAction,MoveToPreviousEditableRowAction
public abstract class AbstractSelectTableAction<M extends AbstractApplicationTableModel>
extends javax.swing.AbstractAction
Abstract action to select a cell in a table.
- Since:
- 2.8
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors Constructor Description AbstractSelectTableAction(M model, javax.swing.JTable table) -
Method Summary
Modifier and Type Method Description protected voidaddNewRow()protected voiddoSelectCell(int rowIndex, int columnIndex)protected java.lang.StringgetCellCoordinate(int rowIndex, int columnIndex)protected intgetColumnCount()protected intgetRowCount()protected intgetSelectedColumn()protected intgetSelectedRow()protected booleanisCellEditable(int rowIndex, int columnIndex)protected booleanisCreateNewRow()Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
acceptMethods inherited from interface java.awt.event.ActionListener
actionPerformed
-
Constructor Details
-
AbstractSelectTableAction
-
-
Method Details
-
doSelectCell
protected void doSelectCell(int rowIndex, int columnIndex) -
getSelectedRow
protected int getSelectedRow() -
getSelectedColumn
protected int getSelectedColumn() -
getRowCount
protected int getRowCount() -
getColumnCount
protected int getColumnCount() -
isCellEditable
protected boolean isCellEditable(int rowIndex, int columnIndex) -
isCreateNewRow
protected boolean isCreateNewRow() -
getCellCoordinate
protected java.lang.String getCellCoordinate(int rowIndex, int columnIndex) -
addNewRow
protected void addNewRow()
-