Re: Not possible to extends CellTree or CellBrowser
On 11 nov, 23:37, Julien Dramaix <julien.dram...@gmail.com> wrote:
> Hello,
>
> I'm a bit disapointed by the API of CellTree and CellBrowser classes.
> I'm trying to extends CellTree and CellBrowser to add some stuff when
> It renders a cell but it not possible because the API is too closed.
> Ex for the CellBrowser :
> CellBrowser.BrowserCellList class is package protected
> CellBrowser#createDisplay and CellBrowser#appendTreeNode are
> private...
> Impossible to override something.
>
> Is it deliberate or not ? and why ?
People previously complained about the same in SplitPanels; the
official answer is that it's deliberate, because as soon as you expose
an API, you're expected to not break it, so having everything "closed"
gives you (the GWT Team) more room for changes.
At the time, developers were encouraged to copy&patch the SplitPanels.
I don't know if the GWT Teams position is the same for CellTree and
CellBrowser, but given how young they are, I suppose it could be
(until they're deemed "mature" enough); see for instance the recent
internal changes:
http://code.google.com/p/google-web-toolkit/source/detail?r=9203
(not sure they would have impacted "extension points" of the widgets,
but still)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home