[ xframe-Bugs-1205671 ] Reusability
"SourceForge.net" <[email protected]> Mon, 23 May 2005 14:30:04 -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: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
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-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
-------------------------------------------------------
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