james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r834092 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/
Date Mon, 09 Nov 2009 15:01:37 GMT
Author: norman
Date: Mon Nov  9 15:01:34 2009
New Revision: 834092

URL: http://svn.apache.org/viewvc?rev=834092&view=rev
Log:
Only some cleanup / javadocs

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPresenter.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/HupaPlaceManager.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenterPlace.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPresenter.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPresenter.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPresenter.java Mon
Nov  9 15:01:34 2009
@@ -57,6 +57,11 @@
 import com.google.gwt.user.client.ui.HasText;
 import com.google.inject.Inject;
 
+/**
+ * Presenter which flips the in the LoginPresenter or the LoginPresenter depending on if
the user is 
+ * logged in or not
+ *
+ */
 public class AppPresenter extends WidgetContainerPresenter<AppPresenter.Display>{
 
     private static final int NOOP_INTERVAL = 15000;
@@ -67,9 +72,7 @@
         public HasText getUserText();
         public void setServerStatus(ServerStatus status);
     }
-    
-    //private LoginPresenter loginPresenter;
-    //private MainPresenter mainPresenter;
+
     private Timer noopTimer = new NoopTimer();
 
     private DispatchAsync dispatcher;

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java Mon Nov
 9 15:01:34 2009
@@ -35,6 +35,11 @@
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;
 
+/**
+ * AppView is the main WidgetContainer which show the LoginView or the MainView depending
on if 
+ * the user is logged in or not
+ *
+ */
 public class AppView extends Composite implements AppPresenter.Display {
     private SimplePanel mainPanel = new SimplePanel();
     private HupaConstants constants = GWT.create(HupaConstants.class);
@@ -84,7 +89,6 @@
                 "underline");
         userName.getElement().getStyle().setProperty("fontWeight", "bold");
 
-        //northTop.setSpacing(5);
         northTop.setStyleName("hupa-MainButtonBar");
         northTop.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
         northTop.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
@@ -110,23 +114,15 @@
         initWidget(vPanel);
     }
 
-    public void setMain(Widget w) {
-    }
 
+    /*
+     * (non-Javadoc)
+     * @see net.customware.gwt.presenter.client.widget.WidgetDisplay#asWidget()
+     */
     public Widget asWidget() {
         return this;
     }
 
-    public void startProcessing() {
-        // TODO Auto-generated method stub
-
-    }
-
-    public void stopProcessing() {
-        // TODO Auto-generated method stub
-
-    }
-
     /*
      * (non-Javadoc)
      * 

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/HupaPlaceManager.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/HupaPlaceManager.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/HupaPlaceManager.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/HupaPlaceManager.java
Mon Nov  9 15:01:34 2009
@@ -27,8 +27,8 @@
 public class HupaPlaceManager extends DefaultPlaceManager{
 
     @Inject
-    public HupaPlaceManager(EventBus eventBus, LoginPresenterPlace loginPresenterPlace, MainPresenterPlace
mainPresenterPlace,IMAPMessageListPresenterPlace messageListPresenterPlace, IMAPMessagePresenterPlace
imapMessagePresenterPlace) {
-        super(eventBus, loginPresenterPlace, mainPresenterPlace, messageListPresenterPlace,
imapMessagePresenterPlace );
+    public HupaPlaceManager(EventBus eventBus, LoginPresenterPlace loginPresenterPlace, MainPresenterPlace
mainPresenterPlace,IMAPMessageListPresenterPlace messageListPresenterPlace, IMAPMessagePresenterPlace
imapMessagePresenterPlace, MessageSendPresenterPlace sendPresenterPlace) {
+        super(eventBus, loginPresenterPlace, mainPresenterPlace, messageListPresenterPlace,
imapMessagePresenterPlace, sendPresenterPlace);
     }
 
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java
Mon Nov  9 15:01:34 2009
@@ -342,7 +342,7 @@
 
     public void setSearchValue(String searchValue) {
         this.searchValue = searchValue;
-    };
+    }
     
   
 

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java Mon
Nov  9 15:01:34 2009
@@ -41,6 +41,11 @@
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.inject.Inject;
 
+/**
+ * Presenter which handles the Login of and user to the IMAP-Server
+ * 
+ *
+ */
 public class LoginPresenter extends WidgetPresenter<LoginPresenter.Display>{
     private HupaConstants constants = GWT.create(HupaConstants.class);
 
@@ -115,13 +120,11 @@
 
     @Override
     protected void onUnbind() {
-        // TODO Auto-generated method stub
-        
+        // Nothing to do
     }
 
     @Override
     protected void onRevealDisplay() {
-        // TODO Auto-generated method stub
-        
+        // Nothing to do
     }
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java Mon Nov
 9 15:01:34 2009
@@ -42,6 +42,10 @@
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;
 
+/**
+ * View which shows the Login from
+ *
+ */
 public class LoginView extends Composite implements KeyUpHandler,LoginPresenter.Display{
     
     private HupaConstants constants = GWT.create(HupaConstants.class);
@@ -204,11 +208,19 @@
     }
 
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.HupaWidgetDisplay#startProcessing()
+     */
     public void startProcessing() {
         loading.show();
     }
 
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.HupaWidgetDisplay#stopProcessing()
+     */
     public void stopProcessing() {
         loading.hide();
     }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java Mon
Nov  9 15:01:34 2009
@@ -22,18 +22,15 @@
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.Comparator;
-import java.util.List;
 
 import net.customware.gwt.presenter.client.EventBus;
 import net.customware.gwt.presenter.client.place.PlaceRequest;
 import net.customware.gwt.presenter.client.place.PlaceRequestEvent;
 import net.customware.gwt.presenter.client.widget.WidgetContainerDisplay;
 import net.customware.gwt.presenter.client.widget.WidgetContainerPresenter;
-import net.customware.gwt.presenter.client.widget.WidgetPresenter;
 
 import org.apache.hupa.client.CachingDispatchAsync;
 import org.apache.hupa.client.HupaCallback;
-import org.apache.hupa.client.HupaWidgetDisplay;
 import org.apache.hupa.client.mvp.MessageSendPresenter.Type;
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.client.widgets.IMAPTreeItem;
@@ -86,25 +83,24 @@
 import com.google.gwt.event.logical.shared.HasSelectionHandlers;
 import com.google.gwt.event.logical.shared.SelectionEvent;
 import com.google.gwt.event.logical.shared.SelectionHandler;
-import com.google.gwt.gen2.table.client.TableModelHelper.Request;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.TreeItem;
-import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
 
 public class MainPresenter extends WidgetContainerPresenter<MainPresenter.Display>
{
 
     public interface Display extends WidgetContainerDisplay {
+        
         public HasClickHandlers getSearchClick();
 
         public HasValue<String> getSearchValue();
 
-        public void fillOracle(ArrayList<Message> messages);
+        public void fillSearchOracle(ArrayList<Message> messages);
 
         public HasSelectionHandlers<TreeItem> getTree();
 
-        public void bindTreeItems(List<IMAPTreeItem> treeList);
+        public void bindTreeItems(ArrayList<IMAPTreeItem> treeList);
 
         public HasClickHandlers getRenameClick();
 
@@ -131,7 +127,9 @@
         public void increaseUnseenMessageCount(IMAPFolder folder, int amount);
 
         public void decreaseUnseenMessageCount(IMAPFolder folder, int amount);
+        
         public void startProcessing();
+        
         public void stopProcessing();
     }
 
@@ -175,8 +173,8 @@
      * @param list
      * @return
      */
-    private List<IMAPTreeItem> createTreeNodes(List<IMAPFolder> list) {
-        List<IMAPTreeItem> tList = new ArrayList<IMAPTreeItem>();
+    private ArrayList<IMAPTreeItem> createTreeNodes(ArrayList<IMAPFolder> list)
{
+        ArrayList<IMAPTreeItem> tList = new ArrayList<IMAPTreeItem>();
 
         for (int i = 0; i < list.size(); i++) {
             IMAPFolder iFolder = list.get(i);
@@ -204,9 +202,9 @@
             });
             record.setUserObject(iFolder);
 
-            List<IMAPFolder> childFolders = iFolder.getChildIMAPFolders();
+            ArrayList<IMAPFolder> childFolders = iFolder.getChildIMAPFolders();
             if (childFolders != null && childFolders.isEmpty() == false) {
-                List<IMAPTreeItem> items = createTreeNodes(childFolders);
+                ArrayList<IMAPTreeItem> items = createTreeNodes(childFolders);
                 for (int a = 0; a < items.size(); a++) {
                     record.addItem(items.get(a));
                 }
@@ -243,43 +241,33 @@
     }
 
     private void showMessage(User user, IMAPFolder folder, Message message, MessageDetails
details) {
-        //sendPresenter.unbind();
-        //messageListPresenter.unbind();
-
         messagePresenter.bind(user, folder, message, details);
         PlaceRequest request = new PlaceRequest("IMAPMessage");
         eventBus.fireEvent(new PlaceRequestEvent(request));
-
-        //display.setCenter(messagePresenter.getDisplay().asWidget());
     }
 
     private void showNewMessage() {
-        messagePresenter.unbind();
-        messageListPresenter.unbind();
-
-        sendPresenter.bind(user, Type.NEW);
+        sendPresenter.bind(user);
+        PlaceRequest request = new PlaceRequest("MessageSend");
+        eventBus.fireEvent(new PlaceRequestEvent(request));
         //display.setCenter(sendPresenter.getDisplay().asWidget());
     }
 
     private void showForwardMessage(ForwardMessageEvent event) {
-        messagePresenter.unbind();
-        messageListPresenter.unbind();
-
         sendPresenter.bind(event.getUser(), event.getFolder(), event.getMessage(), event.getMessageDetails(),
Type.FORWARD);
-        //display.setCenter(sendPresenter.getDisplay().asWidget());
+        PlaceRequest request = new PlaceRequest("MessageSend");
+        eventBus.fireEvent(new PlaceRequestEvent(request));
     }
 
     private void showReplyMessage(ReplyMessageEvent event) {
-        messagePresenter.unbind();
-        messageListPresenter.unbind();
-
         if (event.getReplyAll()) {
             sendPresenter.bind(event.getUser(), event.getFolder(), event.getMessage(), event.getMessageDetails(),
Type.REPLY_ALL);
         } else {
             sendPresenter.bind(event.getUser(), event.getFolder(), event.getMessage(), event.getMessageDetails(),
Type.REPLY);
 
         }
-        //display.setCenter(sendPresenter.getDisplay().asWidget());
+        PlaceRequest request = new PlaceRequest("MessageSend");
+        eventBus.fireEvent(new PlaceRequestEvent(request));
     }
 
     private void reset() {
@@ -303,7 +291,7 @@
             public void onMessagesReceived(MessagesReceivedEvent event) {
 
                 // fill the oracle
-                display.fillOracle(event.getMessages());
+                display.fillSearchOracle(event.getMessages());
             }
 
         }));
@@ -534,9 +522,9 @@
 
     @Override
     protected void onUnbind() {
-        super.onUnbind();
         reset();
 
+        super.onUnbind();
     }
 
     @Override

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java Mon Nov
 9 15:01:34 2009
@@ -72,6 +72,11 @@
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
 
+/**
+ * MainView acts like a container of other widgets which will get displayed after the user
successfully logged in
+ * 
+ *
+ */
 public class MainView extends Composite implements MainPresenter.Display {
 
     private DockPanel dockPanel;
@@ -204,15 +209,27 @@
 
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.mvp.MainPresenter.Display#getSearchClick()
+     */
     public HasClickHandlers getSearchClick() {
         return searchButton;
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.mvp.MainPresenter.Display#getSearchValue()
+     */
     public HasValue<String> getSearchValue() {
         return searchBox;
     }
 
-    public void fillOracle(ArrayList<Message> messages) {
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.mvp.MainPresenter.Display#fillSearchOracle(java.util.ArrayList)
+     */
+    public void fillSearchOracle(ArrayList<Message> messages) {
         for (int i = 0; i < messages.size(); i++) {
             String subject = messages.get(i).getSubject();
             String from = messages.get(i).getFrom();
@@ -228,12 +245,9 @@
 
     /*
      * (non-Javadoc)
-     * 
-     * @see
-     * org.apache.hupa.client.mvp.IMAPFolderPresenter.Display#bindTreeItems(
-     * java.util.List)
+     * @see org.apache.hupa.client.mvp.MainPresenter.Display#bindTreeItems(java.util.ArrayList)
      */
-    public void bindTreeItems(List<IMAPTreeItem> treeList) {
+    public void bindTreeItems(ArrayList<IMAPTreeItem> treeList) {
         folderTree.clear();
         for (int i = 0; i < dropControllerList.size(); i++) {
             controller.unregisterDropController(dropControllerList.get(i));
@@ -553,6 +567,7 @@
         }
     }
 
+    
     private IMAPTreeItem findTreeItemForFolder(IMAPTreeItem item, IMAPFolder folder) {
         if (folder.getFullName().equalsIgnoreCase(((IMAPFolder) item.getUserObject()).getFullName()))
{
             return item;
@@ -566,6 +581,10 @@
         return null;
     }
 
+    /*
+     * (non-Javadoc)
+     * @see org.apache.hupa.client.mvp.MainPresenter.Display#updateTreeItem(org.apache.hupa.shared.data.IMAPFolder)
+     */
     public void updateTreeItem(IMAPFolder folder) {
         int count = folderTree.getItemCount();
         for (int i = 0; i < count; i++) {
@@ -577,15 +596,27 @@
         }
     }
 
+    /*
+     * (non-Javadoc)
+     * @see net.customware.gwt.presenter.client.widget.WidgetContainerDisplay#addWidget(com.google.gwt.user.client.ui.Widget)
+     */
     public void addWidget(Widget widget) {
         showWidget(widget);
     }
 
+    /*
+     * (non-Javadoc)
+     * @see net.customware.gwt.presenter.client.widget.WidgetContainerDisplay#removeWidget(com.google.gwt.user.client.ui.Widget)
+     */
     public void removeWidget(Widget widget) {
         centerWidget = null;
         center.remove(widget); 
     }
 
+    /*
+     * (non-Javadoc)
+     * @see net.customware.gwt.presenter.client.widget.WidgetContainerDisplay#showWidget(com.google.gwt.user.client.ui.Widget)
+     */
     public void showWidget(Widget widget) {
         centerWidget = widget;
         center.setWidget(centerWidget); 

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
Mon Nov  9 15:01:34 2009
@@ -66,6 +66,10 @@
 import gwtupload.client.IUploader.OnFinishUploaderHandler;
 import gwtupload.client.IUploader.OnStatusChangedHandler;
 
+/**
+ * Presenter which handles the sending, reply, replay-all, forward of mails
+ *
+ */
 public class MessageSendPresenter extends WidgetPresenter<MessageSendPresenter.Display>{
 
     private DispatchAsync dispatcher;
@@ -132,10 +136,26 @@
                 .addActionForFailure(fAction));
     }
 
+    /**
+     * The Type for which the SendPresenter will get used
+     *
+     */
     public enum Type {
+        /**
+         * Compose new Mail
+         */
         NEW,
+        /**
+         * Reply to Mail
+         */
         REPLY,
+        /**
+         * Reply-all to mail
+         */
         REPLY_ALL,
+        /**
+         * Forward mail
+         */
         FORWARD
     }
     
@@ -274,6 +294,9 @@
         }));
     }
 
+    /**
+     * Reset everything
+     */
     private void reset() {
         display.resetUploader();
         display.getBccText().setText("");
@@ -294,14 +317,21 @@
         display.getUploader().cancel();
     }
 
+    /**
+     * Bind the given values to this presenter
+     * 
+     * @param user the user
+     * @param folder the currently selected folder
+     * @param oldmessage the oldmessage ( if there is any)
+     * @param oldDetails the olddetails ( if there are any)
+     * @param type the type 
+     */
     public void bind(User user, IMAPFolder folder, Message oldmessage, MessageDetails oldDetails,
Type type) {
         this.oldmessage = oldmessage;
         this.oldDetails = oldDetails;
         this.folder = folder;
         this.type = type;
-        
-        bind();
-        
+       
         display.getFromText().setText(user.getName());
         display.getToText().setText("");
         display.getCcText().setText("");
@@ -336,14 +366,18 @@
         }
     }
     
-    public void bind(User user, Type type) {
-        bind(user,null,null,null, type);
+    /**
+     * Bind the given user to the presenter
+     * 
+     * @param user
+     */
+    public void bind(User user) {
+        bind(user,null,null,null, Type.NEW);
     }
 
     @Override
     protected void onRevealDisplay() {
-        // TODO Auto-generated method stub
-        
+        // DO Nothing
     }
     
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenterPlace.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenterPlace.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenterPlace.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenterPlace.java
Mon Nov  9 15:01:34 2009
@@ -18,12 +18,14 @@
  ****************************************************************/
 package org.apache.hupa.client.mvp;
 
+import com.google.inject.Inject;
 import com.google.inject.Provider;
 
 import net.customware.gwt.presenter.client.gin.ProvidedPresenterPlace;
 
 public class MessageSendPresenterPlace extends ProvidedPresenterPlace<MessageSendPresenter>{
 
+    @Inject
     public MessageSendPresenterPlace(Provider<MessageSendPresenter> presenter) {
         super(presenter);
     }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
Mon Nov  9 15:01:34 2009
@@ -45,6 +45,11 @@
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;
 
+/**
+ * View which displays a form which handle sending of mails
+ * 
+ *
+ */
 public class MessageSendView extends Composite implements
         MessageSendPresenter.Display {
     private HupaConstants constants = GWT.create(HupaConstants.class);

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java?rev=834092&r1=834091&r2=834092&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java
Mon Nov  9 15:01:34 2009
@@ -63,6 +63,7 @@
 		this.eventBus = eventBus;
 		this.dispatcher = dispatcher;
 
+		// bind some Events 
 		eventBus.addHandler(LoadMessagesEvent.TYPE, new LoadMessagesEventHandler() {
 			
 			public void onLoadMessagesEvent(LoadMessagesEvent loadMessagesEvent) {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message