-
Enhancement
-
Resolution: Fixed
-
P2
-
5.0
-
b42
-
x86
-
windows_2000
Name: jl125535 Date: 04/14/2004
A DESCRIPTION OF THE REQUEST :
If you make the fix for 4483577 that will allow AccessibleJTable to be subclassed, please change the following methods from private to protected so that they can also be overridden:
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentAccessibleContext()
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent().
JUSTIFICATION :
A large majority of the public methods in the JTable.AccessibleJTable.AccessibleJTableCell use these two private functions. It would be much easier to override these two methods than to override each method that uses them. In my particular case, I am trying to provide support for cell specific editors and renderers for the JTable.
CUSTOMER SUBMITTED WORKAROUND :
CUSTOMER WORKAROUND :
Copy and paste the source code from all the inner classes
you need back to AccessibleJComponent. This is a pain of
course because:
(a) any extensions, bug fixes etc. made to the original
versions in future JDKs are missed
(b) in some cases the original inner class directly
accesses private members of the outer class which means the
copied code needs to be modified
(Incident Review ID: 209902)
======================================================================
A DESCRIPTION OF THE REQUEST :
If you make the fix for 4483577 that will allow AccessibleJTable to be subclassed, please change the following methods from private to protected so that they can also be overridden:
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentAccessibleContext()
JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent().
JUSTIFICATION :
A large majority of the public methods in the JTable.AccessibleJTable.AccessibleJTableCell use these two private functions. It would be much easier to override these two methods than to override each method that uses them. In my particular case, I am trying to provide support for cell specific editors and renderers for the JTable.
CUSTOMER SUBMITTED WORKAROUND :
CUSTOMER WORKAROUND :
Copy and paste the source code from all the inner classes
you need back to AccessibleJComponent. This is a pain of
course because:
(a) any extensions, bug fixes etc. made to the original
versions in future JDKs are missed
(b) in some cases the original inner class directly
accesses private members of the outer class which means the
copied code needs to be modified
(Incident Review ID: 209902)
======================================================================