Class TableCellButtonEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- de.alpharogroup.swing.table.editor.TableCellButtonEditor
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.CellEditor,javax.swing.table.TableCellEditor,javax.swing.tree.TreeCellEditor
public class TableCellButtonEditor extends javax.swing.DefaultCellEditorThe classTableCellButtonEditor- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableCellButtonEditor()Instantiates a newTableCellButtonEditorobjectTableCellButtonEditor(javax.swing.JCheckBox checkBox)Instantiates a newTableCellButtonEditorobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetCellEditorValue()java.awt.ComponentgetTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)protected voidonClick()Callback method to interact when the button is clicked.protected voidonGetCellEditorValue()Callback method to interact in the method getCellEditorValueprotected java.lang.StringonSetText()Callback method to interact when the text is set.booleanstopCellEditing()-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Constructor Detail
-
TableCellButtonEditor
public TableCellButtonEditor()
Instantiates a newTableCellButtonEditorobject
-
TableCellButtonEditor
public TableCellButtonEditor(javax.swing.JCheckBox checkBox)
Instantiates a newTableCellButtonEditorobject.- Parameters:
checkBox- the check box
-
-
Method Detail
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfacejavax.swing.CellEditor- Overrides:
getCellEditorValuein classjavax.swing.DefaultCellEditor
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponentin interfacejavax.swing.table.TableCellEditor- Overrides:
getTableCellEditorComponentin classjavax.swing.DefaultCellEditor
-
onClick
protected void onClick()
Callback method to interact when the button is clicked.
-
onGetCellEditorValue
protected void onGetCellEditorValue()
Callback method to interact in the method getCellEditorValue
-
onSetText
protected java.lang.String onSetText()
Callback method to interact when the text is set.- Returns:
- the string
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfacejavax.swing.CellEditor- Overrides:
stopCellEditingin classjavax.swing.DefaultCellEditor
-
-