Nick
To keep things clean, how about an overloaded version of the getCell(int)
method that takes a second parameter so getCell(int, int) for example; manifest
constants could be declared as well so that the user could choose how to handle
the cell if a null value was returned.
Nick Burch <[EMAIL PROTECTED]> wrote: On Mon, 5 May 2008, Daniel Noll wrote:
> > So a blank cell really is different from a null cell, as you can just
> > write straight into a blank cell, while a null cell needs to be created
> > first
>
> This is still exposing the underlying details if you ask me. In an
> ideal world, getCell(int) would, for a null cell, either create the cell
> for us, or return something with the same interface which creates the
> real thing if you set something on it.
Would a "getOrCreateCell(int)" be sufficient for you? That'd check to see
if the get returned null, and create+return if so
Some people will wnat to know the difference between null, blank or normal
cells, so I'm not keen on breaking things for them by default
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.