Re: MVP For Popups
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" <timothy.hill@gmail.com> 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home