-
19 Jul 2010 6:14 AM #1
Adding widget to ContentPanel with Listener
Adding widget to ContentPanel with Listener
Hi people.
I have an AreaChart and I have it an association with a listener:
Then, the listener implementation is in this way:Code:area2.addChartListener(listener);
The variable panelDatos is type of ContentPanel and declared as class attribute. When listener is executed Info.display shows "Panel valido" string, so, it doesn't null, but, the text is never shown inside mi ContentPanel.Code:private ChartListener listener = new ChartListener() { public void chartClick(ChartEvent ce) { if(panelDatos!=null){ Info.display("Chart Clicked", "Panel valido"); panelDatos.addText("Nuevo"); }else Info.display("Chart Clicked", "Panel es nulo"); } };
What do I have to do ? I need to force some refresh or what ?
Thanks people for listening.
-
19 Jul 2010 6:43 AM #2
Yes, you could try to re-layout your contentpanel.
If this doesn't help you would have to post a test case implementing EntryPoint showing the problem so we can help.Code:panelDatos.addText("Nuevo"); panelDatos.layout();
-
19 Jul 2010 8:54 AM #3
Similar Threads
-
widget not showing in GXT's contentpanel
By mwmcmullen in forum Ext GWT: DiscussionReplies: 12Last Post: 5 May 2010, 6:38 AM -
Adding Widget or Icon to a Grid
By Kutu in forum Community DiscussionReplies: 5Last Post: 19 Apr 2010, 1:48 PM -
ContentPanel Slide Listener????
By LINEMAN78 in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 9 Nov 2008, 2:11 PM -
ContentPanel.setURL() adds new event listener
By ismoore in forum Ext 1.x: BugsReplies: 3Last Post: 16 May 2007, 5:51 AM


Reply With Quote
... Thanks for your help Oxy, now, I can continue with my app.