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, 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, javax.swing.JTable table)  
  • Method Summary

    Modifier and Type Method Description
    protected void addNewRow()  
    protected void doSelectCell​(int rowIndex, int columnIndex)  
    protected java.lang.String getCellCoordinate​(int rowIndex, int columnIndex)  
    protected int getColumnCount()  
    protected int getRowCount()  
    protected int getSelectedColumn()  
    protected int getSelectedRow()  
    protected boolean isCellEditable​(int rowIndex, int columnIndex)  
    protected boolean isCreateNewRow()  

    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 javax.swing.Action

    accept

    Methods inherited from interface java.awt.event.ActionListener

    actionPerformed
  • Constructor Details

    • AbstractSelectTableAction

      public AbstractSelectTableAction​(M model, javax.swing.JTable table)
  • 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()