com.las2witsml
Class ButtonEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--javax.swing.DefaultCellEditor
|
+--com.las2witsml.ButtonEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
- public class ButtonEditor
- extends javax.swing.DefaultCellEditor
Title: ButtonEditor.java
Description: This class is the default editor for table
Copyright: Copyright (c) 2006
Company: Satyam Computer Services Ltd.
- See Also:
- Serialized Form
Field Summary |
protected javax.swing.JRadioButton |
rbButton
|
Fields inherited from class javax.swing.DefaultCellEditor |
clickCountToStart, delegate, editorComponent |
Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
Constructor Summary |
ButtonEditor(javax.swing.JCheckBox checkBox)
Constructor ButtonEditor specifying check box |
Method Summary |
protected void |
fireEditingStopped()
Method getCellEditorValue
This method notifies all listeners that have registered interest for notification on this event type. |
java.lang.Object |
getCellEditorValue()
Method getCellEditorValue
This method returns the value contained in the editor. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Method getTableCellRendererComponent
This method returns the component used for drawing the cell. |
boolean |
stopCellEditing()
Method stopCellEditing
This method forwards the message from the CellEditor to the delegate |
Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell |
Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, getCellEditorListeners, removeCellEditorListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
rbButton
protected javax.swing.JRadioButton rbButton
ButtonEditor
public ButtonEditor(javax.swing.JCheckBox checkBox)
- Constructor ButtonEditor specifying check box
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Method getTableCellRendererComponent
This method returns the component used for drawing the cell. This method is used to configure the component based on
the coordinates and value in the cell.
- Specified by:
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
- Overrides:
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
- Parameters:
table
- value
- isSelected
- row
- column
-
- Returns:
- Component
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Method getCellEditorValue
This method returns the value contained in the editor.
- Specified by:
getCellEditorValue
in interface javax.swing.CellEditor
- Overrides:
getCellEditorValue
in class javax.swing.DefaultCellEditor
- Returns:
- Object
stopCellEditing
public boolean stopCellEditing()
- Method stopCellEditing
This method forwards the message from the CellEditor to the delegate
- Specified by:
stopCellEditing
in interface javax.swing.CellEditor
- Overrides:
stopCellEditing
in class javax.swing.DefaultCellEditor
- Returns:
- Object
fireEditingStopped
protected void fireEditingStopped()
- Method getCellEditorValue
This method notifies all listeners that have registered interest for notification on this event type.
- Overrides:
fireEditingStopped
in class javax.swing.AbstractCellEditor