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 class javax.swing.AbstractAction
changeSupport, enabled
-
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
All Methods Instance Methods Concrete Methods 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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
-
-
-
-
Method Detail
-
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 String getCellCoordinate(int rowIndex, int columnIndex)
-
addNewRow
protected void addNewRow()
-
-