oracle.dacf.control.swing
Class DacCellEditor
java.lang.Object
oracle.dacf.control.swing.DacCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, javax.swing.table.TableCellEditor
- public class DacCellEditor
- extends java.lang.Object
- implements javax.swing.table.TableCellEditor
Helper class which allows DAC controls to be used as an editor
in the grid.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
changeEvent
protected transient javax.swing.event.ChangeEvent changeEvent
_delegate
protected DacCellEditor.DacEditorDelegate _delegate
DacCellEditor
public DacCellEditor(CheckBoxControl x)
- Constructs a DacCellEditor object that uses a DAC CheckBoxControl
- Parameters:
x
- a CheckBoxControl object ...
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface javax.swing.CellEditor
isCellEditable
public boolean isCellEditable(java.util.EventObject anEvent)
- Specified by:
isCellEditable
in interface javax.swing.CellEditor
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject anEvent)
- Specified by:
shouldSelectCell
in interface javax.swing.CellEditor
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing
in interface javax.swing.CellEditor
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing
in interface javax.swing.CellEditor
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
addCellEditorListener
in interface javax.swing.CellEditor
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
removeCellEditorListener
in interface javax.swing.CellEditor
setClickCountToStart
public void setClickCountToStart(int count)
- Specifies the number of clicks needed to start editing.
- Parameters:
count
- an int specifying the number of clicks needed to start editing- See Also:
getClickCountToStart()
getClickCountToStart
public int getClickCountToStart()
- clickCountToStart controls the number of clicks required to start
editing if the event passed to isCellEditable() or startCellEditing() is
a MouseEvent. For example, by default the clickCountToStart for
a JTextField is set to 2, so in a JTable the user will need to
double click to begin editing a cell.
fireEditingStopped
protected void fireEditingStopped()
fireEditingCanceled
protected void fireEditingCanceled()
Copyright © 1997, 2003, Oracle. All rights reserved.