public class MenuColumn extends AbstractCellEditor implements TableCellRenderer, TableCellEditor, ActionListener
changeEvent, listenerList| Constructor and Description |
|---|
MenuColumn(JTable table,
int column)
Instantiates a new menu column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent arg0)
Not used in this class
|
Object |
getCellEditorValue()
Overrides javax.swing.CellEditor#getCellEditorValue()
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor.
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the component used for drawing the cell.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingpublic MenuColumn(JTable table, int column)
table - the JTable objectcolumn - the number of columnspublic void actionPerformed(ActionEvent arg0)
actionPerformed in interface ActionListenerarg0 - ActionEventActionListener.actionPerformed(java.awt.event.ActionEvent)public Object getCellEditorValue()
getCellEditorValue in interface CellEditorCellEditor.getCellEditorValue()public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
TableCellEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)getTableCellEditorComponent in interface TableCellEditortable - the JTable objectvalue - the value of the cell to be editedisSelected - is selectedrow - the row of the cell to be editedcolumn - the column of the cell to be editedTableCellEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
TableCellRenderer.getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)getTableCellRendererComponent in interface TableCellRenderertable - the JTable objectvalue - the value of the cell to be editedisSelected - is selectedhasFocus - if true, render cell appropriately.row - the row of the cell to be editedcolumn - the column of the cell to be editedTableCellRenderer.getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)Copyright © 2017–2019 Funahashi Lab.. All rights reserved.