Re: Issue in method anonymous class in GWT

2011-07-04 Thread ankit
Thank u all 4 ur replies..my problem is soloved now. On Jun 7, 5:16 pm, Jens jens.nehlme...@gmail.com wrote: You only have a problem if you use GWT.runAsync in your method. If so, everything that is inside the RunAsyncCallback.onSuccess method will be downloaded as a separate javascript file

Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jen if u can show me some example of GWT.runAsync regarding this problem..then it wud be great help to me..im still stuck in this maze field On May 26, 1:48 pm, ankit ankitsaxena0...@gmail.com wrote: Thanks Jen...if u can give me some example of GWT.runAsync...then it wud be little helpful to

Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jens if u can show me some example of GWT.runAsync regarding this problem..then it wud be great help to me..im still stuck in this maze field On Jun 7, 3:35 pm, ankit ankitsaxena0...@gmail.com wrote: Jen if u can show me some example of GWT.runAsync regarding this problem..then it wud be great

Re: Issue in method anonymous class in GWT

2011-06-07 Thread ankit
Jens if u can show me some example of GWT.runAsync regarding this problem..then it wud be great help to me..im still stuck in this maze field On Jun 7, 3:35 pm, ankit ankitsaxena0...@gmail.com wrote: Jen if u can show me some example of GWT.runAsync regarding this problem..then it wud be great

Aw: Re: Issue in method anonymous class in GWT

2011-06-07 Thread Jens
You only have a problem if you use GWT.runAsync in your method. If so, everything that is inside the RunAsyncCallback.onSuccess method will be downloaded as a separate javascript file once your app reaches this point. The download will happen in parallel/async in production mode. In dev mode

Re: Issue in method anonymous class in GWT

2011-05-26 Thread ankit
Thanks Jen...if u can give me some example of GWT.runAsync...then it wud be little helpful to me On May 24, 2:13 pm, Jens jens.nehlme...@gmail.com wrote: No I assumed you call your model.setRecords() method inside the model() method (because thats the only place where you can call it). So in my

Re: Issue in method anonymous class in GWT

2011-05-24 Thread ankit
Thnks Jens for ur reply...but as far as i know u thought that that my anonymous class method is not getting call. but it is not so. my anonymous class method is executing but only after the execution of outer method. On May 23, 3:50 pm, Jens jens.nehlme...@gmail.com wrote: Maybe I don't get

Aw: Re: Issue in method anonymous class in GWT

2011-05-24 Thread Jens
No I assumed you call your model.setRecords() method inside the model() method (because thats the only place where you can call it). So in my example the call label.setText() would by the model.setRecords() call in your example. It has to be executed in order. Just imagine your anonymous

Re: Issue in method anonymous class in GWT

2011-05-23 Thread ankit
thnks to u Juan.but the problem still exist.setRecords() is executing after model(). On May 20, 4:16 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Do: public void model(){    System.out.println(This line is executing);   DataListModel model = new

Aw: Re: Issue in method anonymous class in GWT

2011-05-23 Thread Jens
Maybe I don't get it right but in an entrypoint class: @Override public void onModuleLoad() { System.out.println(onModuleLoad(): started); Label label = new Label() { @Override public void setText(final String text) { System.out.println(Label.setText(): + text); super.setText(text); }

Re: Issue in method anonymous class in GWT

2011-05-20 Thread ankit
thanks Juan for ur reply.i have one thread only as GWT is single threaded. but i need to run the anonymous class method when the called method runs heres my sample code of the problem public void model(){ System.out.println(This line is executing); DataListModel model

Re: Issue in method anonymous class in GWT

2011-05-20 Thread Magno Machado
DataListModel model = new DataListModel() { public void setRecords(List records) { System.out.println(I see this line after model() executes completely); int i = 0; records = new LinkedList(records); } } This is simply instantiating a subclass

Re: Issue in method anonymous class in GWT

2011-05-20 Thread ankit
yes u are right Magnoand DataListModel setRecords() is getting call thats why i can see output on my console i see this line after model() executes completely but problem is this executes after model() execution. but i want it to be execute while model() is executing hope u

Re: Issue in method anonymous class in GWT

2011-05-20 Thread Juan Pablo Gardella
Do: public void model(){ System.out.println(This line is executing); DataListModel model = new MyDataListModel(records) ; } System.out.println(this line is executed and executing DataListModel.setRecords()); } MyDataListModel extends/implements DataListModel{ public

Issue in method anonymous class in GWT

2011-05-16 Thread ankit
i am making a GWT framework similar to Swing framework. in GWT, i have one method in which i am making a anonymous class in method. but problem is when this method executes, execution control does not go to anonymous class instead it skips over it. after this method executes completely, control

Re: Issue in method anonymous class in GWT

2011-05-16 Thread Juan Pablo Gardella
In gwt app you only have 1 thread. In swing you queue this actions in EDT thread. How do you manage this? 2011/5/16 ankit ankitsaxena0...@gmail.com i am making a GWT framework similar to Swing framework. in GWT, i have one method in which i am making a anonymous class in method. but problem