benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

JTableCellFixture#cellReader(JTableCellReader) and #cellWriter(JTableCellWriter) #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi guys,

I would like the cellReader and cellWriter methods implemented on
JTableCellFixture. The cell fixture is used for reading/writing, it makes
sense that it should also allow for the reader/writer to be changed.

The methods on JTableFixture should be kept though, they could be used to
provide a default setting, one which affects all cell fixtures. The idea of
using JTableFixture's methods in this manner is similar to ideas in issues
issue 170 and issue 185.

If the JTableFixture methods would be kept then there is the question of
priority. Which setting takes precedence over the other? A reader/writer
should be set on either the table's fixture or the cell's fixture. An unset
reader/writer could be represented by null.
This way there are two possibilities. The first: the cell's reader/writer
is checked first, if it's null, then the table's is checked in turn, if
that also is null, a NullPointerException could be thrown. The second
possibility is checking the table's first.
I'm in favor of the second one, it would allow the table to have a
BasicJTableCellWriter, just like it has now, and cover most use cases. For
the other uses cases each cell's fixture could be customized.

Thank you,
Csabi

Original issue reported on code.google.com by csaba.ju...@gmail.com on 20 Aug 2008 at 1:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please see reasons not to fix this issue in the JIRA issue tracker.

Original comment by Alex.Rui...@gmail.com on 16 Feb 2009 at 5:58

GoogleCodeExporter commented 9 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-34

Original comment by Alex.Rui...@gmail.com on 4 Mar 2009 at 1:52