[ xframe-Bugs-1205706 ] How to: editingStopped
"SourceForge.net" <[email protected]> Fri, 20 May 2005 07:45:38 -0700
| Newsgroups | gmane.text.xml.xframe.xsddoc |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1205706, was opened at 2005-05-20 09:45
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1205706&group_id=48863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: JXTable
Group: swing
Status: Open
Resolution: None
Priority: 5
Submitted By: Iñaqui Medina (inaquimj)
Assigned to: Nobody/Anonymous (nobody)
Summary: How to: editingStopped
Initial Comment:
The way I use to work with a JTable, I override
editingStopped then do something like:
public void editingStopped(final ChangeEvent
changeEvent) {
final int row = getEditingRow();
final int col = getEditingColumn();
final Object oldVal = getValueAt(row, col);
final Object newVal = ((DefaultCellEditor)e.getSource
()).getCellEditorValue();
super.editingStopped(e);
//Do something else...
//(Maybe notify listeners)
}
The problem is JXTable's editingStopped is never called
(the KTable ones are called).
Should I be doing it in some other way?
If not then we need to change KTable's editingStopped
to something like:
public void editingStopped(final ChangeEvent
changeEvent) {
final JXTable table = getEnclosingJXTable();
if (table != null) {
table.editingStopped(changeEvent);
}
}
Then provide another function:
public void superEditingStopped(final ChangeEvent
changeEvent) {
super.editingStopped(changeEvent);
}
And also modify JXTable:
public void editingStopped(final ChangeEvent e) {
lockedTable.superEditingStopped(e);
scrollTable.superEditingStopped(e);
}
The same steps would need to be followed for
editingCancelled().
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1205706&group_id=48863
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click