I figured it out.you need to use findparentbyType

On Apr 3, 9:27 am, Patrizio De Michele <[email protected]> wrote:
> unique id means any other  DOM element cannot use the same ID not only other
> panels....imho
> bye patrizio
>
> 2009/4/1 Gabriel Ernesto Gutierrez Añez <[email protected]>
>
>
>
> > by unique i mean that if you set and Id there is no other panel that
> > may get that id too, for example if you use some dinamic creation.
>
> > regards,
>
> > On 4/1/09, Gabriel Ernesto Gutierrez Añez <[email protected]> wrote:
> > > it depends on what you are trying to do,
>
> > > 1.- where it is created the inner panel?
> > > 2.- where do you want to access it?
> > > 3.- it is a unique panel?
>
> > > If it is in the same class where you are trying to access it, just
> > > added as a class field.
>
> > > If it is created in another class and it is unique, you could set and id.
>
> > > If you create the inner panel and the outer panel inside a method and
> > > you want to acces it from an anonymous class created inside that
> > > method like a listener, you could use the final modifier so you can
> > > use it inside your anonymous-inner class.
>
> > > Another aproach if you created (the inner panel) in some class "x" and
> > > then you want to have it in another class "y", you could to pass the
> > > inner panel as a parameter (but i like the ID idea better)
>
> > > Hope this helps,
>
> > > On 4/1/09, vikon <[email protected]> wrote:
>
> > >> Hi,
>
> > >> How do you get reference to panel containing panel through widget.I
> > >> tried getParent() but it returns null.
>
> > >> Vikram
>
> > > --
> > > _____________________
> > > Ing. Gabriel Gutiérrez
> > > Celular: +52 1 81 1071 7213
> > > Oficina: +52    81 8153 2415
> > > Monterrey, México
>
> > --
> > _____________________
> > Ing. Gabriel Gutiérrez
> > Celular: +52 1 81 1071 7213
> > Oficina: +52    81 8153 2415
> > Monterrey, México
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to