Class AbstractSelectTableAction<M extends AbstractApplicationTableModel>
java.lang.Object
javax.swing.AbstractAction
org.nuiton.jaxx.application.swing.table.AbstractSelectTableAction<M>
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
MoveToNextEditableCellAction,MoveToNextEditableRowAction,MoveToPreviousEditableCellAction,MoveToPreviousEditableRowAction
public abstract class AbstractSelectTableAction<M extends AbstractApplicationTableModel> extends 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 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, JTable table) -
Method Summary
Modifier and Type Method Description protected voidaddNewRow()protected voiddoSelectCell(int rowIndex, int columnIndex)protected 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, setEnabled
-
Constructor Details
-
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
-
addNewRow
protected void addNewRow()
-