Hello.

I'm creating an gwt app which will enable the user to enter recipes.
I have a presenter with all the basic information like description,
directions etc. which is defined like this:

  public interface Display {
    HasClickHandlers getSaveButton();
    HasClickHandlers getCancelButton();
    HasValue<String> getRecipeTitle();
    HasValue<String> getDescription();
    HasValue<String> getDirections();
    HasValue<String> getServings();
    HasValue<String> getTime();
    HasValue<String> getCourse();
    Widget asWidget();
  }

What I'm going to add to this is the recipe lines which are basically
pair of the ingradient and the amount.  What is the preferred way of
adding lines to this interface when there can be x many lines?

One method would be to do similar to the gwt samples and add two
lines, one with the ingradients (list of strings) and other with the
amount (list of double).  The other method would be to create a class
which would contain the recipe lines with all information.  If I go
that route should I have the class in the presenter package?

Regards,
Johann

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to