[ xframe-Bugs-1205706 ] How to: editingStopped
"SourceForge.net" <[email protected]> Mon, 27 Jun 2005 14:17:35 -0700
| Newsgroups | gmane.text.xml.xframe.xsddoc |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1205706, was opened at 2005-05-20 16:45
Message generated for change (Comment added) made by kriede
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: Closed
Resolution: Fixed
Priority: 5
Submitted By: Iñaqui Medina (inaquimj)
Assigned to: Iñaqui Medina (inaquimj)
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().
----------------------------------------------------------------------
>Comment By: Kurt Riede (kriede)
Date: 2005-06-27 23:17
Message:
Logged In: YES
user_id=484961
commited to CVS HEAD
----------------------------------------------------------------------
Comment By: Kurt Riede (kriede)
Date: 2005-05-20 19:45
Message:
Logged In: YES
user_id=484961
yes, that's the way to do it.
please commit.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1205706&group_id=48863
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click