[ xframe-Bugs-1205671 ] Reusability

"SourceForge.net" <[email protected]> Wed, 29 Jun 2005 13:53:41 -0700
Newsgroups gmane.text.xml.xframe.xsddoc
Message-ID <[email protected]>
Bugs item #1205671, was opened at 2005-05-20 16:06
Message generated for change (Comment added) made by kriede
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1205671&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: Nobody/Anonymous (nobody)
>Assigned to: Iñaqui Medina (inaquimj)
Summary: Reusability

Initial Comment:
JXTable is a library and should be made more 
reusable/customizable.

One thing is that a lot of classes/methods are final and 
no one can override/extend their behavior.

Another one is that a lot of attributes are private and 
some don't even have getters.

I just had the need to change the properties (look and 
feel) of the table, but there's no getScrollPane() method.

----------------------------------------------------------------------

>Comment By: Kurt Riede (kriede)
Date: 2005-06-29 22:53

Message:
Logged In: YES 
user_id=484961

closed as the mentioned methods are now available.
Committed to CVS HEAD

----------------------------------------------------------------------

Comment By: Kurt Riede (kriede)
Date: 2005-05-23 23:30

Message:
Logged In: YES 
user_id=484961

For convenience I suggest the JXTable to be an adapter to the 
underlying JScrollPane. Meaning: expose the interface of the 
JScrollPane thru the JXTable.

Example:
public void setHorizontalScrollBarPolicy(int i) {
    scrollPane.setHorizontalScrollBarPolicy(i);
}

Some of the methods in JScrollPane conflict with methods in 
JTable. Here we could create extended method names like 
this:
public void setScrollPaneUI(final ScrollPaneUI scrollpaneui) {
    scrollPane.setUI(scrollpaneui);
}

Your suggestion with getScrollPane() is a different way to do 
mostly the same and can coexist with the adapter methods.

Please vote.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1205671&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