Bugs item #1205706, was opened at 2005-05-20 09:45
Message generated for change (Settings changed) made by inaquimj
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: 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-05-20 12: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
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
|