Methods Summary |
---|
public void | addCellEditorListener(javax.swing.event.CellEditorListener l)
_listenerList.add(CellEditorListener.class, l);
|
public void | cancelCellEditing()
fireEditingCanceled();
|
protected void | fireEditingCanceled()
Object[] listeners = _listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == CellEditorListener.class) {
if (_changeEvent == null) {
_changeEvent = new ChangeEvent(this);
}
((CellEditorListener) listeners[i + 1]).editingCanceled(_changeEvent);
}
}
|
protected void | fireEditingStopped()
Object[] listeners = _listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == CellEditorListener.class) {
if (_changeEvent == null) {
_changeEvent = new ChangeEvent(this);
}
((CellEditorListener) listeners[i + 1]).editingStopped(_changeEvent);
}
}
|
public java.lang.Object | getCellEditorValue()
//--------------------------------------------------------------------------
// Private Variables:
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Constructors:
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Public Methods:
//--------------------------------------------------------------------------
return _value;
|
public int | getClickCountToStart()
return _clickCountToStart;
|
public java.awt.Component | getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
return null;
|
public java.awt.Component | getTreeCellEditorComponent(javax.swing.JTree tree, java.lang.Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
return null;
|
public boolean | isCellEditable(java.util.EventObject anEvent)
if (anEvent instanceof MouseEvent) {
if (((MouseEvent) anEvent).getClickCount() < _clickCountToStart) {
return false;
}
}
return true;
|
public void | removeCellEditorListener(javax.swing.event.CellEditorListener l)
_listenerList.remove(CellEditorListener.class, l);
|
public void | setCellEditorValue(java.lang.Object value)
_value = value;
|
public void | setClickCountToStart(int count)
_clickCountToStart = count;
|
public boolean | shouldSelectCell(java.util.EventObject anEvent)
if (this.isCellEditable(anEvent)) {
if (anEvent == null ||
((MouseEvent) anEvent).getClickCount() >= _clickCountToStart) {
return true;
}
}
return false;
|
public boolean | stopCellEditing()
fireEditingStopped();
return true;
|