logo       

[ xframe-Bugs-1205706 ] How to: editingStopped: msg#00000

Subject: [ xframe-Bugs-1205706 ] How to: editingStopped
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe