Thanks Oliver, that has got me on the right track :)
Next question... When I click on the save address button (for example), the
callback registers that the save button for address has been clicked and
runs the required method in the callback. This then calls an async method
in another class to save the address to a local SQLite instance. What would
be the best way to pass back the success/failure of the database operation?
Would it be on the eventbus, or is there a more preferred way?
Sorry for the noddy questions, but still learning!
Cheers
Tim
On Saturday, 11 May 2013 21:14:50 UTC+1, Oliver Krylow wrote:
>
> Hi!
>
> Implement your popups in the views and have callbacks as arguments for
> your presenters to provide logic when necessary .
>
> Example :
>
> view.showNewEventDialog(data,new NewEventCallback(){
>
> @Override
> public void onSave(String data){
> ....
>
> }
>
> @Override
> public void onExtends (){
> ...
> }
>
> });
> On May 11, 2013 12:59 AM, "Tim Hill" <[email protected] <javascript:>>
> wrote:
>
>> Hi,
>>
>> I would appreciate some advice, if anyone has any time to spare... I am
>> slowly, but surely, getting to grips with GWT (I think) and I have hit my
>> next stumbling block. The scenario is as follows:
>> > The app loads to the calendar view
>> > User clicks on a date and the 'add new event' dialog/popup is shown
>> > User enters event info, along with address of the event. If the address
>> does not already exist within the app, the user can click a button to
>> extend the popup to enter a new address
>> > User clicks save.
>> > Events fired to save new data.
>>
>> My quandary is thus... I am attempting to implement my app using MVP
>> (activities/presenters/places/views etc), but I am not sure how best to
>> implement popups like I described above as there is more logic in there
>> than a simple 'busy' popup, for example. My aim is to have as much of the
>> app logic as possible separate from the UI implementation so I can easily
>> port the app to a mobile interface.
>>
>> Thanks in advance!
>>
>> Tim
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to
>> [email protected]<javascript:>
>> .
>> Visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.