You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2014/03/20 09:16:10 UTC

svn commit: r1579559 [9/23] - in /james/hupa/trunk: ./ client/ client/src/main/java/com/google/web/bindery/requestfactory/server/ client/src/main/java/org/apache/hupa/ client/src/main/java/org/apache/hupa/client/ client/src/main/java/org/apache/hupa/cl...

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java Thu Mar 20 08:16:02 2014
@@ -50,324 +50,324 @@ import com.google.inject.Inject;
 
 public class ToolBarView extends Composite implements ToolBarActivity.Displayable {
 
-	@Inject private PlaceController placeController;
-	@Inject private EventBus eventBus;
+    @Inject private PlaceController placeController;
+    @Inject private EventBus eventBus;
+
+    @UiField public Anchor refresh;
+    @UiField public Anchor compose;
+    @UiField public Anchor reply;
+    @UiField public HTMLPanel replyAllGroup;
+    @UiField public Anchor replyAll;
+    @UiField public HTMLPanel forwardGroup;
+    @UiField public Anchor forward;
+    @UiField public Anchor delete;
+    @UiField public Anchor mark;
+    @UiField public Anchor raw;
+    @UiField public Anchor more;
+
+    @UiField public HTMLPanel replyAllTip;
+    @UiField public HTMLPanel forwardTip;
+
+
+    // FIXME: !!!! The handlers management in this view is awful.
+    // It should use @UiHandlers with a enable/disble property.
+
+    // Absolutely!!!
+
+    HandlerRegistration deleteReg;
+    HandlerRegistration markReg;
+    HandlerRegistration replyReg;
+    HandlerRegistration replyAllReg;
+    HandlerRegistration forwardReg;
+
+    @UiField public Style style;
+
+    public interface Style extends CssResource {
+        String disabledButton();
+        String popupMenu();
+        String activeIcon();
+        String toolBarMenu();
+        String listicon();
+        String read();
+        String unread();
+    }
+
+    private VerticalPanel popup;
+    final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);
+    private Anchor markRead;
+    private Anchor markUnread;
+
+    private Parameters parameters;
+
+    public Parameters getParameters() {
+        return parameters;
+    }
+
+    @Override
+    public void setParameters(Parameters parameters) {
+        this.parameters = parameters;
+    }
+
+    public static class Parameters {
+        private User user;
+        private String folderName;
+        private Message oldmessage;
+        private MessageDetails oldDetails;
+
+        public Parameters(User user, String folderName, Message oldmessage, MessageDetails oldDetails) {
+            this.user = user;
+            this.folderName = folderName;
+            this.oldmessage = oldmessage;
+            this.oldDetails = oldDetails;
+        }
+
+        public User getUser() {
+            return user;
+        }
+
+        public void setUser(User user) {
+            this.user = user;
+        }
+
+        public String getFolderName() {
+            return folderName;
+        }
+
+        public void setFolderName(String folderName) {
+            this.folderName = folderName;
+        }
+
+        public Message getOldmessage() {
+            return oldmessage;
+        }
+
+        public void setOldmessage(Message oldmessage) {
+            this.oldmessage = oldmessage;
+        }
+
+        public MessageDetails getOldDetails() {
+            return oldDetails;
+        }
+
+        public void setOldDetails(MessageDetails oldDetails) {
+            this.oldDetails = oldDetails;
+        }
+    }
 
-	@UiField public Anchor refresh;
-	@UiField public Anchor compose;
-	@UiField public Anchor reply;
-	@UiField public HTMLPanel replyAllGroup;
-	@UiField public Anchor replyAll;
-	@UiField public HTMLPanel forwardGroup;
-	@UiField public Anchor forward;
-	@UiField public Anchor delete;
-	@UiField public Anchor mark;
-	@UiField public Anchor raw;
-	@UiField public Anchor more;
-
-	@UiField public HTMLPanel replyAllTip;
-	@UiField public HTMLPanel forwardTip;
-
-	
-	// FIXME: !!!! The handlers management in this view is awful.
-	// It should use @UiHandlers with a enable/disble property.
-	
-	// Absolutely!!!
-	
-	HandlerRegistration deleteReg;
-	HandlerRegistration markReg;
-	HandlerRegistration replyReg;
-	HandlerRegistration replyAllReg;
-	HandlerRegistration forwardReg;
-
-	@UiField public Style style;
-
-	public interface Style extends CssResource {
-		String disabledButton();
-		String popupMenu();
-		String activeIcon();
-		String toolBarMenu();
-		String listicon();
-		String read();
-		String unread();
-	}
-
-	private VerticalPanel popup;
-	final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);
-	private Anchor markRead;
-	private Anchor markUnread;
-
-	private Parameters parameters;
-
-	public Parameters getParameters() {
-		return parameters;
-	}
-
-	@Override
-	public void setParameters(Parameters parameters) {
-		this.parameters = parameters;
-	}
-
-	public static class Parameters {
-		private User user;
-		private String folderName;
-		private Message oldmessage;
-		private MessageDetails oldDetails;
-
-		public Parameters(User user, String folderName, Message oldmessage, MessageDetails oldDetails) {
-			this.user = user;
-			this.folderName = folderName;
-			this.oldmessage = oldmessage;
-			this.oldDetails = oldDetails;
-		}
-
-		public User getUser() {
-			return user;
-		}
-
-		public void setUser(User user) {
-			this.user = user;
-		}
-
-		public String getFolderName() {
-			return folderName;
-		}
-
-		public void setFolderName(String folderName) {
-			this.folderName = folderName;
-		}
-
-		public Message getOldmessage() {
-			return oldmessage;
-		}
-
-		public void setOldmessage(Message oldmessage) {
-			this.oldmessage = oldmessage;
-		}
-
-		public MessageDetails getOldDetails() {
-			return oldDetails;
-		}
-
-		public void setOldDetails(MessageDetails oldDetails) {
-			this.oldDetails = oldDetails;
-		}
-	}
-	
     interface ToolBarUiBinder extends UiBinder<FlowPanel, ToolBarView> {
-    }	    
-	
-	@SuppressWarnings("rawtypes")
+    }
+
+    @SuppressWarnings("rawtypes")
     protected UiBinder getBinder() {
-	    return GWT.create(ToolBarUiBinder.class);
-	}
+        return GWT.create(ToolBarUiBinder.class);
+    }
 
-	@SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked")
     public ToolBarView() {
-		initWidget((Widget)getBinder().createAndBindUi(this));
-		simplePopup.addStyleName(style.popupMenu());
-		popup = new VerticalPanel();
-		markRead = new Anchor("As Read");
-		markUnread = new Anchor("As Unread");
-		popup.addStyleName(style.toolBarMenu());
-		markRead.addStyleName(style.activeIcon());
-		markRead.addStyleName(style.listicon());
-		markRead.addStyleName(style.read());
-		markUnread.addStyleName(style.activeIcon());
-		markUnread.addStyleName(style.listicon());
-		markUnread.addStyleName(style.unread());
-		popup.add(markRead);
-		popup.add(markUnread);
-		simplePopup.setWidget(popup);
-	}
-
-	@UiHandler("compose")
-	public void handleClick(ClickEvent e) {
-		placeController.goTo(new ComposePlace("new").with(parameters));
-	}
-
-	private ClickHandler forwardHandler = new ClickHandler() {
-
-		@Override
-		public void onClick(ClickEvent event) {
-			placeController.goTo(new ComposePlace("forward").with(parameters));
-		}
-
-	};
-	private ClickHandler replyAllHandler = new ClickHandler() {
-
-		@Override
-		public void onClick(ClickEvent event) {
-			placeController.goTo(new ComposePlace("replyAll").with(parameters));
-		}
-
-	};
-	private ClickHandler replyHandler = new ClickHandler() {
-
-		@Override
-		public void onClick(ClickEvent event) {
-			placeController.goTo(new ComposePlace("reply").with(parameters));
-		}
+        initWidget((Widget)getBinder().createAndBindUi(this));
+        simplePopup.addStyleName(style.popupMenu());
+        popup = new VerticalPanel();
+        markRead = new Anchor("As Read");
+        markUnread = new Anchor("As Unread");
+        popup.addStyleName(style.toolBarMenu());
+        markRead.addStyleName(style.activeIcon());
+        markRead.addStyleName(style.listicon());
+        markRead.addStyleName(style.read());
+        markUnread.addStyleName(style.activeIcon());
+        markUnread.addStyleName(style.listicon());
+        markUnread.addStyleName(style.unread());
+        popup.add(markRead);
+        popup.add(markUnread);
+        simplePopup.setWidget(popup);
+    }
+
+    @UiHandler("compose")
+    public void handleClick(ClickEvent e) {
+        placeController.goTo(new ComposePlace("new").with(parameters));
+    }
+
+    private ClickHandler forwardHandler = new ClickHandler() {
+
+        @Override
+        public void onClick(ClickEvent event) {
+            placeController.goTo(new ComposePlace("forward").with(parameters));
+        }
+
+    };
+    private ClickHandler replyAllHandler = new ClickHandler() {
+
+        @Override
+        public void onClick(ClickEvent event) {
+            placeController.goTo(new ComposePlace("replyAll").with(parameters));
+        }
+
+    };
+    private ClickHandler replyHandler = new ClickHandler() {
+
+        @Override
+        public void onClick(ClickEvent event) {
+            placeController.goTo(new ComposePlace("reply").with(parameters));
+        }
 
-	};
-	private ClickHandler deleteHandler = new ClickHandler() {
+    };
+    private ClickHandler deleteHandler = new ClickHandler() {
 
-		@Override
-		public void onClick(ClickEvent event) {
+        @Override
+        public void onClick(ClickEvent event) {
             eventBus.fireEvent(new DeleteClickEvent());
-		}
-	};
+        }
+    };
 
-	private ClickHandler markHandler = new ClickHandler() {
-		public void onClick(ClickEvent event) {
-			// Reposition the popup relative to the button
-			Widget source = (Widget) event.getSource();
-			int left = source.getAbsoluteLeft();
-			int top = source.getAbsoluteTop() + source.getOffsetHeight();
-			simplePopup.setPopupPosition(left, top);
-			simplePopup.show();
-		}
-	};
-	
-	private ClickHandler rawHandler = new ClickHandler() {
-		@Override
-		public void onClick(ClickEvent event) {
+    private ClickHandler markHandler = new ClickHandler() {
+        public void onClick(ClickEvent event) {
+            // Reposition the popup relative to the button
+            Widget source = (Widget) event.getSource();
+            int left = source.getAbsoluteLeft();
+            int top = source.getAbsoluteTop() + source.getOffsetHeight();
+            simplePopup.setPopupPosition(left, top);
+            simplePopup.show();
+        }
+    };
+
+    private ClickHandler rawHandler = new ClickHandler() {
+        @Override
+        public void onClick(ClickEvent event) {
             eventBus.fireEvent(new ShowRawEvent());
-		}
-	};
-	
-	private HandlerRegistration rawReg;
-
-	@Override
-	public HasClickHandlers getMark() {
-		return mark;
-	}
-
-	@Override
-	public HasClickHandlers getMarkRead() {
-		return markRead;
-	}
-
-	@Override
-	public HasClickHandlers getMarkUnread() {
-		return markUnread;
-	}
-
-	@Override
-	public HasClickHandlers getCompose() {
-		return compose;
-	}
-	@Override
-	public HasClickHandlers getReply() {
-		return reply;
-	}
-
-	@Override
-	public HasClickHandlers getReplyAll() {
-		return replyAll;
-	}
-
-	@Override
-	public HasClickHandlers getForward() {
-		return forward;
-	}
-	@Override
-	public PopupPanel getPopup() {
-		return simplePopup;
-	}
-
-	@Override
-	public HasClickHandlers getDelete() {
-		return delete;
-	}
-	@Override
-	public HasClickHandlers getRefresh() {
-		return refresh;
-	}
-	@Override
-	public void enableAllTools(boolean is) {
-		this.enableSendingTools(is);
-		this.enableDealingTools(is);
-		this.enableUpdatingTools(is);
-	}
-	@Override
-	public void enableSendingTools(boolean is) {
-		if (is) {
-			removeSendingDisableds();
-		} else {
-			addSendingDisableds();
-		}
-	}
-
-	@Override
-	public void enableDealingTools(boolean is) {
-		if (is) {
-			removeDealingDisableds();
-		} else {
-			addDealingDisableds();
-		}
-	}
-
-	public void enableUpdatingTools(boolean is) {
-	}
-
-	private void addSendingDisableds() {
-		reply.addStyleName(style.disabledButton());
-		replyAllGroup.addStyleName(style.disabledButton());
-		forwardGroup.addStyleName(style.disabledButton());
-		replyAllTip.addStyleName(style.disabledButton());
-		forwardTip.addStyleName(style.disabledButton());
-		raw.addStyleName(style.disabledButton());
-
-		if (replyReg != null) {
-			replyReg = removeHandler(replyReg);
-			replyAllReg = removeHandler(replyAllReg);
-			forwardReg = removeHandler(forwardReg);
-			rawReg = removeHandler(rawReg);
-			replyReg = null;
-			replyAllReg = null;
-			forwardReg = null;
-			rawReg = null;
-		}
-
-	}
-
-	private void removeSendingDisableds() {
-		reply.removeStyleName(style.disabledButton());
-		replyAllGroup.removeStyleName(style.disabledButton());
-		forwardGroup.removeStyleName(style.disabledButton());
-		replyAllTip.removeStyleName(style.disabledButton());
-		forwardTip.removeStyleName(style.disabledButton());
-		raw.removeStyleName(style.disabledButton());
-
-		if (rawReg == null) rawReg = raw.addClickHandler(rawHandler);
-		if (replyReg == null) replyReg = reply.addClickHandler(replyHandler);
-		if (replyAllReg == null) replyAllReg = replyAll.addClickHandler(replyAllHandler);
-		if (forwardReg == null) forwardReg = forward.addClickHandler(forwardHandler);
-	}
-
-
-	private void addDealingDisableds() {
-		if (deleteReg != null) {
-			deleteReg = removeHandler(deleteReg);
-			markReg = removeHandler(markReg);
-			deleteReg = null;
-			markReg = null;
-		}
-		delete.addStyleName(style.disabledButton());
-		mark.addStyleName(style.disabledButton());
-	}
-
-	private void removeDealingDisableds() {
-		if (deleteReg == null) deleteReg = delete.addClickHandler(deleteHandler);
-		if (markReg == null) markReg = mark.addClickHandler(markHandler);
-		delete.removeStyleName(style.disabledButton());
-		mark.removeStyleName(style.disabledButton());
-	}
-
-	protected HandlerRegistration removeHandler(HandlerRegistration handler) {
-	    if (handler != null) handler.removeHandler();
-	    return null;
-	}
+        }
+    };
+
+    private HandlerRegistration rawReg;
+
+    @Override
+    public HasClickHandlers getMark() {
+        return mark;
+    }
+
+    @Override
+    public HasClickHandlers getMarkRead() {
+        return markRead;
+    }
+
+    @Override
+    public HasClickHandlers getMarkUnread() {
+        return markUnread;
+    }
+
+    @Override
+    public HasClickHandlers getCompose() {
+        return compose;
+    }
+    @Override
+    public HasClickHandlers getReply() {
+        return reply;
+    }
+
+    @Override
+    public HasClickHandlers getReplyAll() {
+        return replyAll;
+    }
+
+    @Override
+    public HasClickHandlers getForward() {
+        return forward;
+    }
+    @Override
+    public PopupPanel getPopup() {
+        return simplePopup;
+    }
+
+    @Override
+    public HasClickHandlers getDelete() {
+        return delete;
+    }
+    @Override
+    public HasClickHandlers getRefresh() {
+        return refresh;
+    }
+    @Override
+    public void enableAllTools(boolean is) {
+        this.enableSendingTools(is);
+        this.enableDealingTools(is);
+        this.enableUpdatingTools(is);
+    }
+    @Override
+    public void enableSendingTools(boolean is) {
+        if (is) {
+            removeSendingDisableds();
+        } else {
+            addSendingDisableds();
+        }
+    }
+
+    @Override
+    public void enableDealingTools(boolean is) {
+        if (is) {
+            removeDealingDisableds();
+        } else {
+            addDealingDisableds();
+        }
+    }
+
+    public void enableUpdatingTools(boolean is) {
+    }
+
+    private void addSendingDisableds() {
+        reply.addStyleName(style.disabledButton());
+        replyAllGroup.addStyleName(style.disabledButton());
+        forwardGroup.addStyleName(style.disabledButton());
+        replyAllTip.addStyleName(style.disabledButton());
+        forwardTip.addStyleName(style.disabledButton());
+        raw.addStyleName(style.disabledButton());
+
+        if (replyReg != null) {
+            replyReg = removeHandler(replyReg);
+            replyAllReg = removeHandler(replyAllReg);
+            forwardReg = removeHandler(forwardReg);
+            rawReg = removeHandler(rawReg);
+            replyReg = null;
+            replyAllReg = null;
+            forwardReg = null;
+            rawReg = null;
+        }
+
+    }
+
+    private void removeSendingDisableds() {
+        reply.removeStyleName(style.disabledButton());
+        replyAllGroup.removeStyleName(style.disabledButton());
+        forwardGroup.removeStyleName(style.disabledButton());
+        replyAllTip.removeStyleName(style.disabledButton());
+        forwardTip.removeStyleName(style.disabledButton());
+        raw.removeStyleName(style.disabledButton());
+
+        if (rawReg == null) rawReg = raw.addClickHandler(rawHandler);
+        if (replyReg == null) replyReg = reply.addClickHandler(replyHandler);
+        if (replyAllReg == null) replyAllReg = replyAll.addClickHandler(replyAllHandler);
+        if (forwardReg == null) forwardReg = forward.addClickHandler(forwardHandler);
+    }
+
+
+    private void addDealingDisableds() {
+        if (deleteReg != null) {
+            deleteReg = removeHandler(deleteReg);
+            markReg = removeHandler(markReg);
+            deleteReg = null;
+            markReg = null;
+        }
+        delete.addStyleName(style.disabledButton());
+        mark.addStyleName(style.disabledButton());
+    }
+
+    private void removeDealingDisableds() {
+        if (deleteReg == null) deleteReg = delete.addClickHandler(deleteHandler);
+        if (markReg == null) markReg = mark.addClickHandler(markHandler);
+        delete.removeStyleName(style.disabledButton());
+        mark.removeStyleName(style.disabledButton());
+    }
+
+    protected HandlerRegistration removeHandler(HandlerRegistration handler) {
+        if (handler != null) handler.removeHandler();
+        return null;
+    }
 
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,135 +1,135 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui'>
-	<ui:image field="buttons" src="res/buttons.png" />
-	<ui:image field="listicons" src="res/listicons.png" />
-	<ui:style type="org.apache.hupa.client.ui.ToolBarView.Style">
-		.bar {
-			position: absolute;
-			display: block;
-			top: -2px;
-			right: 390px;
-			left: 0;
-			height: 40px;
-			white-space: nowrap;
-			z-index: 10;
-		}
-		
-		@sprite .listicon {
-			gwt-image: 'listicons';
-			display: block;
-			min-height: 14px;
-			padding: 4px 4px 1px 24px;
-			height: 17px;
-			background-position: -100px 0;
-			opacity: 0.99;
-		}
-		
-		@sprite .button {
-			gwt-image: 'buttons';
-			text-align: center;
-			font-size: 10px;
-			color: #555;
-			min-width: 50px;
-			max-width: 175px;
-			height: 13px;
-			overflow: hidden;
-			text-overflow: ellipsis;
-			white-space: nowrap;
-			padding: 28px 2px 0 2px;
-			text-shadow: 0px 1px 1px #EEE;
-			box-shadow: none;
-			-webkit-box-shadow: none;
-			background-position: -100px 0;
-			border: 0;
-			display: inline-block;
-			margin: 0 2px;
-			border-radius: 4px;
-			text-decoration: none;
-		}
-		
-		.checkMail {
-			background-position: center -1176px;
-		}
-		
-		.compose {
-			background-position: center -530px;
-		}
-		
-		.spacer {
-			display: inline-block;
-			width: 24px;
-			height: 36px;
-			padding: 0;
-		}
-		
-		.reply {
-			background-position: center -570px;
-		}
-		
-		.dropButton {
-			display: inline-block;
-			position: relative;
-		}
-		
-		.dropButton .button {
-			margin-left: 0;
-			padding-left: 0;
-			margin-right: 0;
-			padding-right: 0;
-		}
-		
-		.replyAll {
-			min-width: 64px;
-			background-position: left -610px;
-		}
-		
-		@sprite .dropButton .dropButtonTip {
-			gwt-image: 'buttons';
-			display: block;
-			position: absolute;
-			right: 0;
-			top: 0;
-			height: 42px;
-			width: 18px;
-			background-position: 0 -1255px;
-		}
-		
+    xmlns:g='urn:import:com.google.gwt.user.client.ui'>
+    <ui:image field="buttons" src="res/buttons.png" />
+    <ui:image field="listicons" src="res/listicons.png" />
+    <ui:style type="org.apache.hupa.client.ui.ToolBarView.Style">
+        .bar {
+            position: absolute;
+            display: block;
+            top: -2px;
+            right: 390px;
+            left: 0;
+            height: 40px;
+            white-space: nowrap;
+            z-index: 10;
+        }
+
+        @sprite .listicon {
+            gwt-image: 'listicons';
+            display: block;
+            min-height: 14px;
+            padding: 4px 4px 1px 24px;
+            height: 17px;
+            background-position: -100px 0;
+            opacity: 0.99;
+        }
+
+        @sprite .button {
+            gwt-image: 'buttons';
+            text-align: center;
+            font-size: 10px;
+            color: #555;
+            min-width: 50px;
+            max-width: 175px;
+            height: 13px;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            white-space: nowrap;
+            padding: 28px 2px 0 2px;
+            text-shadow: 0px 1px 1px #EEE;
+            box-shadow: none;
+            -webkit-box-shadow: none;
+            background-position: -100px 0;
+            border: 0;
+            display: inline-block;
+            margin: 0 2px;
+            border-radius: 4px;
+            text-decoration: none;
+        }
+
+        .checkMail {
+            background-position: center -1176px;
+        }
+
+        .compose {
+            background-position: center -530px;
+        }
+
+        .spacer {
+            display: inline-block;
+            width: 24px;
+            height: 36px;
+            padding: 0;
+        }
+
+        .reply {
+            background-position: center -570px;
+        }
+
+        .dropButton {
+            display: inline-block;
+            position: relative;
+        }
+
+        .dropButton .button {
+            margin-left: 0;
+            padding-left: 0;
+            margin-right: 0;
+            padding-right: 0;
+        }
+
+        .replyAll {
+            min-width: 64px;
+            background-position: left -610px;
+        }
+
+        @sprite .dropButton .dropButtonTip {
+            gwt-image: 'buttons';
+            display: block;
+            position: absolute;
+            right: 0;
+            top: 0;
+            height: 42px;
+            width: 18px;
+            background-position: 0 -1255px;
+        }
+
         .handCursor{
             cursor: pointer;
         }
-		.forward {
-			min-width: 64px;
-			background-position: left -650px;
-		}
-		
-		.delete {
-			background-position: center -690px;
-		}
-        
+        .forward {
+            min-width: 64px;
+            background-position: left -650px;
+        }
+
+        .delete {
+            background-position: center -690px;
+        }
+
         .deleteContent {
             background-position: center -770px;
             width: 80px;
         }
-		
-		.mark {
-			background-position: center -1094px;
-		}
-		
-		.more {
-			background-position: center -850px;
-			display:none;
-		}
+
+        .mark {
+            background-position: center -1094px;
+        }
+
+        .more {
+            background-position: center -850px;
+            display:none;
+        }
         .update {
             background-position: center -1135px;
             width: 80px;
@@ -137,88 +137,88 @@
         .raw {
             background-position: center -810px;
         }
-		
-		.disabledButton {
-			opacity: 0.4;
-			cursor: default;
-		}
-		
-		.popupMenu {
-			width: auto;
-			background: #444;
-			border: 1px solid #999;
-			z-index: 240;
-			border-radius: 4px;
-			box-shadow: 0 2px 6px 0 #333;
-			-moz-box-shadow: 0 2px 6px 0 #333;
-			-webkit-box-shadow: 0 2px 6px 0 #333;
-			-o-box-shadow: 0 2px 6px 0 #333;
-		}
-		
-		.toolBarMenu {
-			margin: 0;
-			padding: 0;
-		}
-		
-		.toolBarMenu td {
+
+        .disabledButton {
+            opacity: 0.4;
+            cursor: default;
+        }
+
+        .popupMenu {
+            width: auto;
+            background: #444;
+            border: 1px solid #999;
+            z-index: 240;
+            border-radius: 4px;
+            box-shadow: 0 2px 6px 0 #333;
+            -moz-box-shadow: 0 2px 6px 0 #333;
+            -webkit-box-shadow: 0 2px 6px 0 #333;
+            -o-box-shadow: 0 2px 6px 0 #333;
+        }
+
+        .toolBarMenu {
+            margin: 0;
+            padding: 0;
+        }
+
+        .toolBarMenu td {
             border-top: 1px solid #5a5a5a;
             border-bottom: 1px solid #333;
             padding: 3px 8px;
         }
-        
+
         .toolBarMenu td:hover {
-	       background-color: #0186ba;
+           background-color: #0186ba;
+
+        }
+
+        .activeIcon {
+            display: block;
+            white-space: nowrap;
+            color: #666;
+            text-shadow: 0px 1px 1px #333;
+            text-decoration: none;
+            min-height: 14px;
+            color: #eee;
+            padding: 2px 25px;
+            cursor: default;
+        }
 
+        .read {
+            background-position: 0 -1222px;
         }
-		
-		.activeIcon {
-			display: block;
-			white-space: nowrap;
-			color: #666;
-			text-shadow: 0px 1px 1px #333;
-			text-decoration: none;
-			min-height: 14px;
-			color: #eee;
-			padding: 2px 25px;
-			cursor: default;
-		}
-		
-		.read {
-			background-position: 0 -1222px;
-		}
-		
-		.unread {
-			background-position: 0 -1198px;
-		}
-
-        
-	</ui:style>
-
-	<g:FlowPanel addStyleNames="{style.bar}" ui:field="ToolBar">
-		<g:Anchor ui:field="refresh" addStyleNames="{style.button} {style.checkMail} {style.handCursor}" title="Refresh">Refresh</g:Anchor>
-		<g:Anchor ui:field="compose" addStyleNames="{style.button} {style.compose} {style.handCursor}" title="Compose">Compose</g:Anchor>
-		<g:HTMLPanel tag="span" addStyleNames="{style.spacer}"></g:HTMLPanel>
-		<g:Anchor ui:field="reply"
-			addStyleNames="{style.button} {style.reply} {style.handCursor}" title="Reply">Reply</g:Anchor>
-		<g:HTMLPanel ui:field="replyAllGroup" tag="span"
-			addStyleNames="{style.dropButton} {style.handCursor}" title="Reply all">
-			<g:Anchor ui:field="replyAll" addStyleNames="{style.button} {style.replyAll}">Reply all
-			</g:Anchor>
-			<g:HTMLPanel ui:field="replyAllTip" tag="span" addStyleNames="{style.dropButtonTip}" />
-		</g:HTMLPanel>
-		<g:HTMLPanel ui:field="forwardGroup" tag="span"
-			addStyleNames="{style.dropButton} {style.handCursor}" title="Forward">
-			<g:Anchor ui:field="forward" addStyleNames="{style.button} {style.forward}">Forward
-			</g:Anchor>
-			<g:HTMLPanel ui:field="forwardTip" tag="span" addStyleNames="{style.dropButtonTip}" />
-		</g:HTMLPanel>
+
+        .unread {
+            background-position: 0 -1198px;
+        }
+
+
+    </ui:style>
+
+    <g:FlowPanel addStyleNames="{style.bar}" ui:field="ToolBar">
+        <g:Anchor ui:field="refresh" addStyleNames="{style.button} {style.checkMail} {style.handCursor}" title="Refresh">Refresh</g:Anchor>
+        <g:Anchor ui:field="compose" addStyleNames="{style.button} {style.compose} {style.handCursor}" title="Compose">Compose</g:Anchor>
+        <g:HTMLPanel tag="span" addStyleNames="{style.spacer}"></g:HTMLPanel>
+        <g:Anchor ui:field="reply"
+            addStyleNames="{style.button} {style.reply} {style.handCursor}" title="Reply">Reply</g:Anchor>
+        <g:HTMLPanel ui:field="replyAllGroup" tag="span"
+            addStyleNames="{style.dropButton} {style.handCursor}" title="Reply all">
+            <g:Anchor ui:field="replyAll" addStyleNames="{style.button} {style.replyAll}">Reply all
+            </g:Anchor>
+            <g:HTMLPanel ui:field="replyAllTip" tag="span" addStyleNames="{style.dropButtonTip}" />
+        </g:HTMLPanel>
+        <g:HTMLPanel ui:field="forwardGroup" tag="span"
+            addStyleNames="{style.dropButton} {style.handCursor}" title="Forward">
+            <g:Anchor ui:field="forward" addStyleNames="{style.button} {style.forward}">Forward
+            </g:Anchor>
+            <g:HTMLPanel ui:field="forwardTip" tag="span" addStyleNames="{style.dropButtonTip}" />
+        </g:HTMLPanel>
         <g:Anchor ui:field="raw"
             addStyleNames="{style.button} {style.raw} {style.handCursor}" title="Show original">Show Raw</g:Anchor>
-		<g:Anchor ui:field="delete"
-			addStyleNames="{style.button} {style.delete} {style.handCursor}" title="Delete">Delete</g:Anchor>
-		<g:Anchor ui:field="mark"
-			addStyleNames="{style.button} {style.mark} {style.handCursor}" title="Mark as">Mark</g:Anchor>
-		<g:Anchor ui:field="more"
-			addStyleNames="{style.button} {style.more} {style.handCursor}" title="More...">More</g:Anchor>
-	</g:FlowPanel>
+        <g:Anchor ui:field="delete"
+            addStyleNames="{style.button} {style.delete} {style.handCursor}" title="Delete">Delete</g:Anchor>
+        <g:Anchor ui:field="mark"
+            addStyleNames="{style.button} {style.mark} {style.handCursor}" title="Mark as">Mark</g:Anchor>
+        <g:Anchor ui:field="more"
+            addStyleNames="{style.button} {style.more} {style.handCursor}" title="More...">More</g:Anchor>
+    </g:FlowPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.java Thu Mar 20 08:16:02 2014
@@ -38,58 +38,58 @@ import com.google.gwt.user.client.ui.Sim
 
 public class TopBarView extends Composite implements TopBarActivity.Displayable {
 
-	@UiField Anchor about;
-	@UiField Anchor logout;
-	@UiField HTMLPanel userLabel;
-	@UiField SimplePanel loading;
-	@UiField HTML loadingRegion;
-	
-	@UiField Style style;
-
-	interface Style extends CssResource {
-		String hideLoading();
-	}
-
-	public TopBarView() {
-		initWidget(binder.createAndBindUi(this));
-	}
-	
-	@UiHandler("about")
-	void handleAboutClick(ClickEvent e){
-		Window.alert("// TODO show about model view");
-	}
-
-	@Override
-	public void showLoading(String message){
-		loadingRegion.setHTML(message);
-		loading.removeStyleName(style.hideLoading());
-	}
-	
-	@Override
-	public void hideLoading(){
-		loadingRegion.setHTML("");
-		loading.addStyleName(style.hideLoading());
-	}
-	
-	@Override
-	public HasClickHandlers getLogoutClick() {
-		return logout;
-	}
-
-	@Override
-	public HTMLPanel getUserLabel() {
-		return userLabel;
-	}
-	
-	@Override
-	public void showUserName(String userName){
-		userLabel.clear();
-		userLabel.add(new HTML(userName));
-	}
+    @UiField Anchor about;
+    @UiField Anchor logout;
+    @UiField HTMLPanel userLabel;
+    @UiField SimplePanel loading;
+    @UiField HTML loadingRegion;
+
+    @UiField Style style;
+
+    interface Style extends CssResource {
+        String hideLoading();
+    }
+
+    public TopBarView() {
+        initWidget(binder.createAndBindUi(this));
+    }
+
+    @UiHandler("about")
+    void handleAboutClick(ClickEvent e){
+        Window.alert("// TODO show about model view");
+    }
+
+    @Override
+    public void showLoading(String message){
+        loadingRegion.setHTML(message);
+        loading.removeStyleName(style.hideLoading());
+    }
+
+    @Override
+    public void hideLoading(){
+        loadingRegion.setHTML("");
+        loading.addStyleName(style.hideLoading());
+    }
+
+    @Override
+    public HasClickHandlers getLogoutClick() {
+        return logout;
+    }
+
+    @Override
+    public HTMLPanel getUserLabel() {
+        return userLabel;
+    }
+
+    @Override
+    public void showUserName(String userName){
+        userLabel.clear();
+        userLabel.add(new HTML(userName));
+    }
 
-	interface TopBarUiBinder extends UiBinder<DockLayoutPanel, TopBarView> {
-	}
+    interface TopBarUiBinder extends UiBinder<DockLayoutPanel, TopBarView> {
+    }
 
-	private static TopBarUiBinder binder = GWT.create(TopBarUiBinder.class);
+    private static TopBarUiBinder binder = GWT.create(TopBarUiBinder.class);
 
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopBarView.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,110 +1,110 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui'>
-	<ui:image field="topBarBackgroundImg" src="res/linen_header.jpg" />
-	<ui:image field="buttons" src="res/buttons.png" />
+    xmlns:g='urn:import:com.google.gwt.user.client.ui'>
+    <ui:image field="topBarBackgroundImg" src="res/linen_header.jpg" />
+    <ui:image field="buttons" src="res/buttons.png" />
     <ui:style type="org.apache.hupa.client.ui.TopBarView.Style">
-		@sprite .self {
-			gwt-image: 'topBarBackgroundImg';
-			width: 100%;
-			height: 100%;
-			background-repeat: repeat-x;
-			text-decoration: none;
-			border-bottom: 1px solid #4F4F4F;
-			padding: 2px 0 2px 10px;
-			color: #AAA;
-			height: 18px;
-		}
-		
-		@sprite .logout {
-			gwt-image: 'buttons';
-			display: inline-block;
-			padding: 4px 8px 2px 20px;
-			color: white;
-			background-position: -4px -191px;
-			cursor: pointer;
-		}
-		
-		.about {
-			display: inline-block;
-			padding: 4px 0.8em 0 10px;
-			color: #AAA;
-			text-decoration: none;
-			cursor: pointer;
-		}
-		
-		.username {
-			padding-top: 4px;
-			padding-right: 1em;
-		}
-		
-		.left {
-			float: left;
-		}
-		
-		.right {
-			float: right;
-		}
-		
-		.textCenter {
-			text-align: center;
-		}
-		
-		.loadingPosition {
-			position: absolute;
-			left: 0;
-			top: 0;
-			width: 100%;
-			height: 100%;
-		}
-		
-		.fontFeel {
-			display: inline-block;
-			border-color: #f0c36d;
-			background-color: #f9edbe;
-			padding: 0 10px;
-			border: 1px solid transparent;
-			border-radius: 2px;
-			-webkit-border-radius: 2px;
-			-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
-			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
-			color: black;
-			font-weight: bold;
-		}
-		
-		.hideLoading {
-			visibility: hidden;
-		}
-	</ui:style>
-	<g:DockLayoutPanel ui:field="TopBar" unit="PX"
-		addStyleNames="{style.self} ">
-		<g:west size="300">
-			<g:SimplePanel addStyleNames="{style.left}">
-				<g:Anchor ui:field="about" styleName="{style.about}">About</g:Anchor>
-			</g:SimplePanel>
-		</g:west>
-		<g:center>
-			<g:SimplePanel addStyleNames="{style.hideLoading} {style.loadingPosition} {style.textCenter}" ui:field="loading">
-				<g:HTML ui:field="loadingRegion" addStyleNames="{style.fontFeel}">Loading...
-				</g:HTML>
-			</g:SimplePanel>
-		</g:center>
-		<g:east size="300">
-			<g:FlowPanel>
-				<g:Anchor ui:field="logout" addStyleNames="{style.right} {style.logout}">Logout</g:Anchor>
-				<g:HTMLPanel ui:field="userLabel" tag="span"
-					addStyleNames="{style.right} {style.username}" />
-			</g:FlowPanel>
-		</g:east>
-	</g:DockLayoutPanel>
+        @sprite .self {
+            gwt-image: 'topBarBackgroundImg';
+            width: 100%;
+            height: 100%;
+            background-repeat: repeat-x;
+            text-decoration: none;
+            border-bottom: 1px solid #4F4F4F;
+            padding: 2px 0 2px 10px;
+            color: #AAA;
+            height: 18px;
+        }
+
+        @sprite .logout {
+            gwt-image: 'buttons';
+            display: inline-block;
+            padding: 4px 8px 2px 20px;
+            color: white;
+            background-position: -4px -191px;
+            cursor: pointer;
+        }
+
+        .about {
+            display: inline-block;
+            padding: 4px 0.8em 0 10px;
+            color: #AAA;
+            text-decoration: none;
+            cursor: pointer;
+        }
+
+        .username {
+            padding-top: 4px;
+            padding-right: 1em;
+        }
+
+        .left {
+            float: left;
+        }
+
+        .right {
+            float: right;
+        }
+
+        .textCenter {
+            text-align: center;
+        }
+
+        .loadingPosition {
+            position: absolute;
+            left: 0;
+            top: 0;
+            width: 100%;
+            height: 100%;
+        }
+
+        .fontFeel {
+            display: inline-block;
+            border-color: #f0c36d;
+            background-color: #f9edbe;
+            padding: 0 10px;
+            border: 1px solid transparent;
+            border-radius: 2px;
+            -webkit-border-radius: 2px;
+            -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
+            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
+            color: black;
+            font-weight: bold;
+        }
+
+        .hideLoading {
+            visibility: hidden;
+        }
+    </ui:style>
+    <g:DockLayoutPanel ui:field="TopBar" unit="PX"
+        addStyleNames="{style.self} ">
+        <g:west size="300">
+            <g:SimplePanel addStyleNames="{style.left}">
+                <g:Anchor ui:field="about" styleName="{style.about}">About</g:Anchor>
+            </g:SimplePanel>
+        </g:west>
+        <g:center>
+            <g:SimplePanel addStyleNames="{style.hideLoading} {style.loadingPosition} {style.textCenter}" ui:field="loading">
+                <g:HTML ui:field="loadingRegion" addStyleNames="{style.fontFeel}">Loading...
+                </g:HTML>
+            </g:SimplePanel>
+        </g:center>
+        <g:east size="300">
+            <g:FlowPanel>
+                <g:Anchor ui:field="logout" addStyleNames="{style.right} {style.logout}">Logout</g:Anchor>
+                <g:HTMLPanel ui:field="userLabel" tag="span"
+                    addStyleNames="{style.right} {style.username}" />
+            </g:FlowPanel>
+        </g:east>
+    </g:DockLayoutPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml Thu Mar 20 08:16:02 2014
@@ -18,17 +18,17 @@
 -->
 
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui'>
-	<g:FlowPanel ui:field="topWrapper">
-		<g:HorizontalPanel ui:field="buttonContainer">
-			<g:HorizontalPanel ui:field="loginInfoPanel"></g:HorizontalPanel>
-			<g:Label ui:field="loginUserLabel"></g:Label>
-			<g:Anchor ui:field="mainButton"></g:Anchor>
-			<g:Anchor ui:field="logoutButton"></g:Anchor>
-		</g:HorizontalPanel>
-		<g:HorizontalPanel ui:field="infoContainer">
-			<g:Label ui:field="appnameLabel"></g:Label>
-			<g:Label ui:field="extraLabel"></g:Label>
-		</g:HorizontalPanel>
-	</g:FlowPanel>
+    xmlns:g='urn:import:com.google.gwt.user.client.ui'>
+    <g:FlowPanel ui:field="topWrapper">
+        <g:HorizontalPanel ui:field="buttonContainer">
+            <g:HorizontalPanel ui:field="loginInfoPanel"></g:HorizontalPanel>
+            <g:Label ui:field="loginUserLabel"></g:Label>
+            <g:Anchor ui:field="mainButton"></g:Anchor>
+            <g:Anchor ui:field="logoutButton"></g:Anchor>
+        </g:HorizontalPanel>
+        <g:HorizontalPanel ui:field="infoContainer">
+            <g:Label ui:field="appnameLabel"></g:Label>
+            <g:Label ui:field="extraLabel"></g:Label>
+        </g:HorizontalPanel>
+    </g:FlowPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.java Thu Mar 20 08:16:02 2014
@@ -31,35 +31,35 @@ import com.google.gwt.user.client.ui.Wid
 
 public class _CenterComposePanel extends Composite {
 
-	@UiField protected SplitLayoutPanel thisPanel;
-	@UiField protected __OutlineComposePanel outlinePanel;
-	@UiField protected SimpleLayoutPanel composeContainer;
-
-	public _CenterComposePanel() {
-		initWidget(binder.createAndBindUi(this));
-//		thisPanel.setWidgetHidden(outlinePanel, true);
-	}
-
-	public AcceptsOneWidget getAddressListView() {
-		return outlinePanel.getAddressListView();
-	}
-
-
-	interface _CenterPanelUiBinder extends
-			UiBinder<SplitLayoutPanel, _CenterComposePanel> {
-	}
-
-	private static _CenterPanelUiBinder binder = GWT
-			.create(_CenterPanelUiBinder.class);
-
-
-	public AcceptsOneWidget getComposeView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				composeContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
+    @UiField protected SplitLayoutPanel thisPanel;
+    @UiField protected __OutlineComposePanel outlinePanel;
+    @UiField protected SimpleLayoutPanel composeContainer;
+
+    public _CenterComposePanel() {
+        initWidget(binder.createAndBindUi(this));
+//        thisPanel.setWidgetHidden(outlinePanel, true);
+    }
+
+    public AcceptsOneWidget getAddressListView() {
+        return outlinePanel.getAddressListView();
+    }
+
+
+    interface _CenterPanelUiBinder extends
+            UiBinder<SplitLayoutPanel, _CenterComposePanel> {
+    }
+
+    private static _CenterPanelUiBinder binder = GWT
+            .create(_CenterPanelUiBinder.class);
+
+
+    public AcceptsOneWidget getComposeView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                composeContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
 
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterComposePanel.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,24 +1,24 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
-	<ui:style src="res/CssSplitLayoutPanel.css" />
-	<g:SplitLayoutPanel ui:field="thisPanel"
-		addStyleNames="{style.splitLayoutPanel}">
-		<g:west size="220">
-			<hupa:__OutlineComposePanel ui:field="outlinePanel" />
-		</g:west>
-		<g:center>
+    xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
+    <ui:style src="res/CssSplitLayoutPanel.css" />
+    <g:SplitLayoutPanel ui:field="thisPanel"
+        addStyleNames="{style.splitLayoutPanel}">
+        <g:west size="220">
+            <hupa:__OutlineComposePanel ui:field="outlinePanel" />
+        </g:west>
+        <g:center>
             <g:SimpleLayoutPanel ui:field="composeContainer" />
-		</g:center>
-	</g:SplitLayoutPanel>
+        </g:center>
+    </g:SplitLayoutPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.java Thu Mar 20 08:16:02 2014
@@ -41,77 +41,77 @@ import com.google.gwt.view.client.Single
 
 public class _CenterContactPanel extends Composite {
 
-	@UiField SplitLayoutPanel thisPanel;
+    @UiField SplitLayoutPanel thisPanel;
 
-	@UiField SimpleLayoutPanel settingsTab;
+    @UiField SimpleLayoutPanel settingsTab;
 
-	@UiField SimpleLayoutPanel labelListContainer;
-	@UiField SimplePanel labelPropertiesContainer;
+    @UiField SimpleLayoutPanel labelListContainer;
+    @UiField SimplePanel labelPropertiesContainer;
 
-	public _CenterContactPanel() {
+    public _CenterContactPanel() {
 
-		initWidget(binder.createAndBindUi(this));
-		settingsTab.setWidget(createTabList());
-	}
-
-	private static final List<String> TABS = Arrays.asList("Folders");
-
-	private CellList<String> createTabList() {
-		CellList<String> cellList = new CellList<String>(new SpanCell());
-		cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
-		final SingleSelectionModel<String> selectionModel = new SingleSelectionModel<String>();
-		cellList.setSelectionModel(selectionModel);
-		selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
-			public void onSelectionChange(SelectionChangeEvent event) {
-				String selected = selectionModel.getSelectedObject();
-				if (selected != null) {
-					// Window.alert("You selected: " + selected);
-				}
-			}
-		});
-		cellList.setRowCount(TABS.size(), true);
-
-		// Push the data into the widget.
-		cellList.setRowData(0, TABS);
-		return cellList;
-	}
-
-	static class SpanCell extends AbstractCell<String> {
-
-		public SpanCell() {
-		}
-
-		@Override
-		public void render(Context context, String value, SafeHtmlBuilder sb) {
-			if (value == null) {
-				return;
-			}
-			sb.appendHtmlConstant("<span style='display: block;color: #376572;text-shadow: 0px 1px 1px #fff;text-decoration: none;cursor: default;padding: 6px 8px 2px 8px;height: 17px;white-space: nowrap;'>");
-			sb.appendHtmlConstant(value);
-			sb.appendHtmlConstant("</span>");
-		}
-	}
-
-	interface _CeterSettingPanelUiBinder extends UiBinder<SplitLayoutPanel, _CenterContactPanel> {
-	}
-
-	private static _CeterSettingPanelUiBinder binder = GWT.create(_CeterSettingPanelUiBinder.class);
-
-	public AcceptsOneWidget getContactListView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				labelListContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
-
-	public AcceptsOneWidget getContactPropertiesView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				labelPropertiesContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
+        initWidget(binder.createAndBindUi(this));
+        settingsTab.setWidget(createTabList());
+    }
+
+    private static final List<String> TABS = Arrays.asList("Folders");
+
+    private CellList<String> createTabList() {
+        CellList<String> cellList = new CellList<String>(new SpanCell());
+        cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
+        final SingleSelectionModel<String> selectionModel = new SingleSelectionModel<String>();
+        cellList.setSelectionModel(selectionModel);
+        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
+            public void onSelectionChange(SelectionChangeEvent event) {
+                String selected = selectionModel.getSelectedObject();
+                if (selected != null) {
+                    // Window.alert("You selected: " + selected);
+                }
+            }
+        });
+        cellList.setRowCount(TABS.size(), true);
+
+        // Push the data into the widget.
+        cellList.setRowData(0, TABS);
+        return cellList;
+    }
+
+    static class SpanCell extends AbstractCell<String> {
+
+        public SpanCell() {
+        }
+
+        @Override
+        public void render(Context context, String value, SafeHtmlBuilder sb) {
+            if (value == null) {
+                return;
+            }
+            sb.appendHtmlConstant("<span style='display: block;color: #376572;text-shadow: 0px 1px 1px #fff;text-decoration: none;cursor: default;padding: 6px 8px 2px 8px;height: 17px;white-space: nowrap;'>");
+            sb.appendHtmlConstant(value);
+            sb.appendHtmlConstant("</span>");
+        }
+    }
+
+    interface _CeterSettingPanelUiBinder extends UiBinder<SplitLayoutPanel, _CenterContactPanel> {
+    }
+
+    private static _CeterSettingPanelUiBinder binder = GWT.create(_CeterSettingPanelUiBinder.class);
+
+    public AcceptsOneWidget getContactListView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                labelListContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
+
+    public AcceptsOneWidget getContactPropertiesView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                labelPropertiesContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterContactPanel.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,147 +1,147 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
+    xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
 
-	<ui:style src="res/CssSplitLayoutPanel.css">
-		.scroller {
-			overflow: auto;
-		}
-		
-		.uibox {
-			border: 1px solid #a3a3a3;
-			border-radius: 4px;
-			overflow: hidden;
-			box-shadow: 0 0 2px #999;
-			-o-box-shadow: 0 0 2px #999;
-			-webkit-box-shadow: 0 0 2px #999;
-			-moz-box-shadow: 0 0 2px #999;
-			background: #fff;
-		}
-		
-		.listbox {
-			background: #d9ecf4;
-			overflow: hidden;
-		}
-		
-		.listbox .scroller {
-			position: absolute;
-			top: 0;
-			left: 0;
-			width: 100%;
-			bottom: 0;
-			overflow-x: hidden;
-			overflow-y: auto;
-		}
-		
-		.listbox .scroller.withfooter {
-			bottom: 42px;
-		}
-		
-		.listbox .boxtitle+.scroller {
-			top: 34px;
-		}
-		
-		.boxtitle,.uibox .listing thead td {
-			font-size: 12px;
-			font-weight: bold;
-			padding: 10px 8px 3px 8px;
-			height: 20px; /* doesn't affect table-cells in FF */
-			margin: 0;
-			text-shadow: 0px 1px 1px #fff;
-			border-bottom: 1px solid #bbd3da;
-			white-space: nowrap;
-		}
-		
-		.uibox .boxtitle,.uibox .listing thead td {
-			background: #b0ccd7;
-			color: #004458;
-			border-radius: 4px 4px 0 0;
-		}
-		
-		.contentbox .boxtitle {
-			color: #777;
-			background: #eee;
-			background: -moz-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-			background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee),
-				color-stop(100%, #dfdfdf) );
-			background: -o-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-			background: -ms-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-			background: linear-gradient(top, #eee 0%, #dfdfdf 100%);
-			border-bottom: 1px solid #ccc;
-		}
-		
-		.contentbox .scroller {
-			position: absolute;
-			top: 34px;
-			left: 0;
-			right: 0;
-			bottom: 28px;
-			overflow: auto;
-		}
-		
-		body.iframe .boxtitle {
-			position: fixed;
-			top: 0;
-			left: 0;
-			width: 100%;
-			z-index: 100;
-		}
-		
-		.boxcontent {
-			padding: 10px;
-		}
-	</ui:style>
-
-	<g:SplitLayoutPanel ui:field="thisPanel"
-		addStyleNames="{style.splitLayoutPanel}">
-		<g:west size="220">
-			<g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
-				<g:north size="34">
-					<g:HTML>
-						<h2 class="{style.boxtitle}">Groups</h2>
-					</g:HTML>
-				</g:north>
-				<g:center>
-					<g:SimpleLayoutPanel ui:field="settingsTab"
-						addStyleNames="{style.scroller}" />
-				</g:center>
-			</g:DockLayoutPanel>
-		</g:west>
-		<g:center>
-			<g:SplitLayoutPanel>
-				<g:west size="260">
-					<g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
-						<g:north size="34">
-							<g:HTML>
-								<h2 class="{style.boxtitle}">Contacts</h2>
-							</g:HTML>
-						</g:north>
-						<g:center>
-							<g:SimpleLayoutPanel ui:field="labelListContainer" />
-						</g:center>
-					</g:DockLayoutPanel>
-				</g:west>
-				<g:center>
-					<g:SimpleLayoutPanel addStyleNames="{style.uibox} {style.contentbox}">
-						<g:HTMLPanel>
-							<h2 class="{style.boxtitle}">Folder properties</h2>
-							<g:FlowPanel addStyleNames="{style.boxcontent}">
-								<g:SimplePanel ui:field="labelPropertiesContainer"></g:SimplePanel>
-							</g:FlowPanel>
-							<div class="{style.statusbar}" />
-						</g:HTMLPanel>
-					</g:SimpleLayoutPanel>
-				</g:center>
-			</g:SplitLayoutPanel>
-		</g:center>
-	</g:SplitLayoutPanel>
+    <ui:style src="res/CssSplitLayoutPanel.css">
+        .scroller {
+            overflow: auto;
+        }
+
+        .uibox {
+            border: 1px solid #a3a3a3;
+            border-radius: 4px;
+            overflow: hidden;
+            box-shadow: 0 0 2px #999;
+            -o-box-shadow: 0 0 2px #999;
+            -webkit-box-shadow: 0 0 2px #999;
+            -moz-box-shadow: 0 0 2px #999;
+            background: #fff;
+        }
+
+        .listbox {
+            background: #d9ecf4;
+            overflow: hidden;
+        }
+
+        .listbox .scroller {
+            position: absolute;
+            top: 0;
+            left: 0;
+            width: 100%;
+            bottom: 0;
+            overflow-x: hidden;
+            overflow-y: auto;
+        }
+
+        .listbox .scroller.withfooter {
+            bottom: 42px;
+        }
+
+        .listbox .boxtitle+.scroller {
+            top: 34px;
+        }
+
+        .boxtitle,.uibox .listing thead td {
+            font-size: 12px;
+            font-weight: bold;
+            padding: 10px 8px 3px 8px;
+            height: 20px; /* doesn't affect table-cells in FF */
+            margin: 0;
+            text-shadow: 0px 1px 1px #fff;
+            border-bottom: 1px solid #bbd3da;
+            white-space: nowrap;
+        }
+
+        .uibox .boxtitle,.uibox .listing thead td {
+            background: #b0ccd7;
+            color: #004458;
+            border-radius: 4px 4px 0 0;
+        }
+
+        .contentbox .boxtitle {
+            color: #777;
+            background: #eee;
+            background: -moz-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee),
+                color-stop(100%, #dfdfdf) );
+            background: -o-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+            background: -ms-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+            background: linear-gradient(top, #eee 0%, #dfdfdf 100%);
+            border-bottom: 1px solid #ccc;
+        }
+
+        .contentbox .scroller {
+            position: absolute;
+            top: 34px;
+            left: 0;
+            right: 0;
+            bottom: 28px;
+            overflow: auto;
+        }
+
+        body.iframe .boxtitle {
+            position: fixed;
+            top: 0;
+            left: 0;
+            width: 100%;
+            z-index: 100;
+        }
+
+        .boxcontent {
+            padding: 10px;
+        }
+    </ui:style>
+
+    <g:SplitLayoutPanel ui:field="thisPanel"
+        addStyleNames="{style.splitLayoutPanel}">
+        <g:west size="220">
+            <g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
+                <g:north size="34">
+                    <g:HTML>
+                        <h2 class="{style.boxtitle}">Groups</h2>
+                    </g:HTML>
+                </g:north>
+                <g:center>
+                    <g:SimpleLayoutPanel ui:field="settingsTab"
+                        addStyleNames="{style.scroller}" />
+                </g:center>
+            </g:DockLayoutPanel>
+        </g:west>
+        <g:center>
+            <g:SplitLayoutPanel>
+                <g:west size="260">
+                    <g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
+                        <g:north size="34">
+                            <g:HTML>
+                                <h2 class="{style.boxtitle}">Contacts</h2>
+                            </g:HTML>
+                        </g:north>
+                        <g:center>
+                            <g:SimpleLayoutPanel ui:field="labelListContainer" />
+                        </g:center>
+                    </g:DockLayoutPanel>
+                </g:west>
+                <g:center>
+                    <g:SimpleLayoutPanel addStyleNames="{style.uibox} {style.contentbox}">
+                        <g:HTMLPanel>
+                            <h2 class="{style.boxtitle}">Folder properties</h2>
+                            <g:FlowPanel addStyleNames="{style.boxcontent}">
+                                <g:SimplePanel ui:field="labelPropertiesContainer"></g:SimplePanel>
+                            </g:FlowPanel>
+                            <div class="{style.statusbar}" />
+                        </g:HTMLPanel>
+                    </g:SimpleLayoutPanel>
+                </g:center>
+            </g:SplitLayoutPanel>
+        </g:center>
+    </g:SplitLayoutPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.java Thu Mar 20 08:16:02 2014
@@ -28,40 +28,40 @@ import com.google.gwt.user.client.ui.Spl
 
 public class _CenterPanel extends Composite {
 
-	@UiField protected SplitLayoutPanel thisPanel;
-	@UiField protected __OutlinePanel outlinePanel;
-	@UiField protected __ContentPanel contentPanel;
-
-	public _CenterPanel() {
-		initWidget(binder.createAndBindUi(this));
-		thisPanel.setWidgetMinSize(outlinePanel, 144);
-	}
-
-	public AcceptsOneWidget getFolderListView() {
-		return outlinePanel.getFolderListView();
-	}
-
-	public AcceptsOneWidget getMessageListView() {
-		return contentPanel.getMessageListView();
-	}
-
-	public AcceptsOneWidget getMessageListFooterView() {
-		return contentPanel.getMessageListFooterView();
-	}
-
-	public AcceptsOneWidget getMessageContentView() {
-		return contentPanel.getMessageContentView();
-	}
-
-	public AcceptsOneWidget getStatusView() {
-		return contentPanel.getStatusView();
-	}
-
-	interface _CenterPanelUiBinder extends
-			UiBinder<SplitLayoutPanel, _CenterPanel> {
-	}
+    @UiField protected SplitLayoutPanel thisPanel;
+    @UiField protected __OutlinePanel outlinePanel;
+    @UiField protected __ContentPanel contentPanel;
+
+    public _CenterPanel() {
+        initWidget(binder.createAndBindUi(this));
+        thisPanel.setWidgetMinSize(outlinePanel, 144);
+    }
+
+    public AcceptsOneWidget getFolderListView() {
+        return outlinePanel.getFolderListView();
+    }
+
+    public AcceptsOneWidget getMessageListView() {
+        return contentPanel.getMessageListView();
+    }
+
+    public AcceptsOneWidget getMessageListFooterView() {
+        return contentPanel.getMessageListFooterView();
+    }
+
+    public AcceptsOneWidget getMessageContentView() {
+        return contentPanel.getMessageContentView();
+    }
+
+    public AcceptsOneWidget getStatusView() {
+        return contentPanel.getStatusView();
+    }
+
+    interface _CenterPanelUiBinder extends
+            UiBinder<SplitLayoutPanel, _CenterPanel> {
+    }
 
-	private static _CenterPanelUiBinder binder = GWT
-			.create(_CenterPanelUiBinder.class);
+    private static _CenterPanelUiBinder binder = GWT
+            .create(_CenterPanelUiBinder.class);
 
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterPanel.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,24 +1,24 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
-	<ui:style src="res/CssSplitLayoutPanel.css" />
-	<g:SplitLayoutPanel ui:field="thisPanel"
-		addStyleNames="{style.splitLayoutPanel}">
-		<g:west size="220">
-			<hupa:__OutlinePanel ui:field="outlinePanel" />
-		</g:west>
-		<g:center>
-			<hupa:__ContentPanel ui:field="contentPanel" />
-		</g:center>
-	</g:SplitLayoutPanel>
+    xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
+    <ui:style src="res/CssSplitLayoutPanel.css" />
+    <g:SplitLayoutPanel ui:field="thisPanel"
+        addStyleNames="{style.splitLayoutPanel}">
+        <g:west size="220">
+            <hupa:__OutlinePanel ui:field="outlinePanel" />
+        </g:west>
+        <g:center>
+            <hupa:__ContentPanel ui:field="contentPanel" />
+        </g:center>
+    </g:SplitLayoutPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.java Thu Mar 20 08:16:02 2014
@@ -38,23 +38,23 @@ import com.google.gwt.user.client.ui.Wid
 
 public class _CenterSettingPanel extends Composite {
 
-	@UiField public SplitLayoutPanel thisPanel;
+    @UiField public SplitLayoutPanel thisPanel;
 
-	@UiField public SimpleLayoutPanel settingNavContainer;
+    @UiField public SimpleLayoutPanel settingNavContainer;
 
-	@UiField public SettingLabelPanel settingLabelPanel;
+    @UiField public SettingLabelPanel settingLabelPanel;
 
-	@UiField public LayoutPanel settingBox;
+    @UiField public LayoutPanel settingBox;
 
-	@UiField public Style style;
+    @UiField public Style style;
 
-	public interface Style extends CssResource {
-	}
+    public interface Style extends CssResource {
+    }
 
-	public void arrangeLayout(int lyt) {
+    public void arrangeLayout(int lyt) {
         settingBox.setWidgetLeftWidth(settingLabelPanel, 0, Unit.PCT, 100, Unit.PCT);
         settingBox.setWidgetTopHeight(settingLabelPanel, 0, Unit.PCT, 100, Unit.PCT);
-	}
+    }
 
     interface _CenterSettingPanelUiBinder extends UiBinder<SplitLayoutPanel, _CenterSettingPanel> {
     }
@@ -65,40 +65,40 @@ public class _CenterSettingPanel extends
     @SuppressWarnings("unchecked")
     public _CenterSettingPanel() {
         binder = createBinder();
-		initWidget((SplitLayoutPanel)binder.createAndBindUi(this));
-	}
-    
+        initWidget((SplitLayoutPanel)binder.createAndBindUi(this));
+    }
+
     @SuppressWarnings("rawtypes")
     protected UiBinder createBinder() {
         return GWT.create(_CenterSettingPanelUiBinder.class);
     }
 
-	public interface Resources extends CellList.Resources {
+    public interface Resources extends CellList.Resources {
+
+        Resources INSTANCE = GWT.create(Resources.class);
+
+        @Source("res/CssLabelListView.css")
+        public CellList.Style cellListStyle();
+    }
+
+    public AcceptsOneWidget getLabelListView() {
+        return settingLabelPanel.getLabelListView();
+    }
 
-		Resources INSTANCE = GWT.create(Resources.class);
+    public AcceptsOneWidget getLabelPropertiesView() {
+        return settingLabelPanel.getLabelPropertiesView();
+    }
 
-		@Source("res/CssLabelListView.css")
-		public CellList.Style cellListStyle();
-	}
-
-	public AcceptsOneWidget getLabelListView() {
-		return settingLabelPanel.getLabelListView();
-	}
-
-	public AcceptsOneWidget getLabelPropertiesView() {
-		return settingLabelPanel.getLabelPropertiesView();
-	}
-	
-	public AcceptsOneWidget getSettingNavView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				settingNavContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
+    public AcceptsOneWidget getSettingNavView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                settingNavContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
 
-	public void swithTo(SettingPlace sp) {
+    public void swithTo(SettingPlace sp) {
         GQuery.console.log("_CenterSetting... swithTo " + sp + " " + sp.getToken());
-	}
+    }
 }

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.ui.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.ui.xml?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.ui.xml (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_CenterSettingPanel.ui.xml Thu Mar 20 08:16:02 2014
@@ -1,129 +1,129 @@
-<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
-	license agreements. See the NOTICE file distributed with this work for additional 
-	information regarding copyright ownership. The ASF licenses this file to 
-	you under the Apache License, Version 2.0 (the "License"); you may not use 
-	this file except in compliance with the License. You may obtain a copy of 
-	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
-	by applicable law or agreed to in writing, software distributed under the 
-	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
-	OF ANY KIND, either express or implied. See the License for the specific 
-	language governing permissions and limitations under the License. -->
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+    license agreements. See the NOTICE file distributed with this work for additional
+    information regarding copyright ownership. The ASF licenses this file to
+    you under the Apache License, Version 2.0 (the "License"); you may not use
+    this file except in compliance with the License. You may obtain a copy of
+    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
-	xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
+    xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:hupa='urn:import:org.apache.hupa.client.ui'>
 
-	<ui:style src="res/CssSplitLayoutPanel.css"
-		type="org.apache.hupa.client.ui._CenterSettingPanel.Style">
-			.scroller {
-				overflow: auto;
-			}
-			
-			.uibox {
-				border: 1px solid #a3a3a3;
-				border-radius: 4px;
-				overflow: hidden;
-				box-shadow: 0 0 2px #999;
-				-o-box-shadow: 0 0 2px #999;
-				-webkit-box-shadow: 0 0 2px #999;
-				-moz-box-shadow: 0 0 2px #999;
-				background: #fff;
-			}
-			
-			.listbox {
-				background: #d9ecf4;
-				overflow: hidden;
-			}
-			
-			.listbox .scroller {
-				position: absolute;
-				top: 0;
-				left: 0;
-				width: 100%;
-				bottom: 0;
-				overflow-x: hidden;
-				overflow-y: auto;
-			}
-			
-			.listbox .scroller.withfooter {
-				bottom: 42px;
-			}
-			
-			.listbox .boxtitle+.scroller {
-				top: 34px;
-			}
-			
-			.boxtitle,.uibox .listing thead td {
-				font-size: 12px;
-				font-weight: bold;
-				padding: 10px 8px 3px 8px;
-				height: 20px; /* doesn't affect table-cells in FF */
-				margin: 0;
-				text-shadow: 0px 1px 1px #fff;
-				border-bottom: 1px solid #bbd3da;
-				white-space: nowrap;
-			}
-			
-			.uibox .boxtitle,.uibox .listing thead td {
-				background: #b0ccd7;
-				color: #004458;
-				border-radius: 4px 4px 0 0;
-			}
-			
-			.contentbox .boxtitle {
-				color: #777;
-				background: #eee;
-				background: -moz-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-				background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee),
-					color-stop(100%, #dfdfdf) );
-				background: -o-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-				background: -ms-linear-gradient(top, #eee 0%, #dfdfdf 100%);
-				background: linear-gradient(top, #eee 0%, #dfdfdf 100%);
-				border-bottom: 1px solid #ccc;
-			}
-			
-			.contentbox .scroller {
-				position: absolute;
-				top: 34px;
-				left: 0;
-				right: 0;
-				bottom: 28px;
-				overflow: auto;
-			}
-			
-			body.iframe .boxtitle {
-				position: fixed;
-				top: 0;
-				left: 0;
-				width: 100%;
-				z-index: 100;
-			}
-			
-			.boxcontent {
-				padding: 10px;
-			}
-		</ui:style>
-
-	<g:SplitLayoutPanel ui:field="thisPanel"
-		addStyleNames="{style.splitLayoutPanel}">
-		<g:west size="220">
-			<g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
-				<g:north size="0">
-					<g:HTML>
-						<h2 class="{style.boxtitle}">Settings</h2>
-					</g:HTML>
-				</g:north>
-				<g:center>
-					<g:SimpleLayoutPanel ui:field="settingNavContainer"
-						addStyleNames="{style.scroller}">
-					</g:SimpleLayoutPanel>
-				</g:center>
-			</g:DockLayoutPanel>
-		</g:west>
-		<g:center>
-			<g:LayoutPanel ui:field="settingBox">
-				<g:layer left="0%" width="100%" top="0%" height="100%">
-					<hupa:SettingLabelPanel ui:field="settingLabelPanel" />
-				</g:layer>
-			</g:LayoutPanel>
-		</g:center>
-	</g:SplitLayoutPanel>
+    <ui:style src="res/CssSplitLayoutPanel.css"
+        type="org.apache.hupa.client.ui._CenterSettingPanel.Style">
+            .scroller {
+                overflow: auto;
+            }
+
+            .uibox {
+                border: 1px solid #a3a3a3;
+                border-radius: 4px;
+                overflow: hidden;
+                box-shadow: 0 0 2px #999;
+                -o-box-shadow: 0 0 2px #999;
+                -webkit-box-shadow: 0 0 2px #999;
+                -moz-box-shadow: 0 0 2px #999;
+                background: #fff;
+            }
+
+            .listbox {
+                background: #d9ecf4;
+                overflow: hidden;
+            }
+
+            .listbox .scroller {
+                position: absolute;
+                top: 0;
+                left: 0;
+                width: 100%;
+                bottom: 0;
+                overflow-x: hidden;
+                overflow-y: auto;
+            }
+
+            .listbox .scroller.withfooter {
+                bottom: 42px;
+            }
+
+            .listbox .boxtitle+.scroller {
+                top: 34px;
+            }
+
+            .boxtitle,.uibox .listing thead td {
+                font-size: 12px;
+                font-weight: bold;
+                padding: 10px 8px 3px 8px;
+                height: 20px; /* doesn't affect table-cells in FF */
+                margin: 0;
+                text-shadow: 0px 1px 1px #fff;
+                border-bottom: 1px solid #bbd3da;
+                white-space: nowrap;
+            }
+
+            .uibox .boxtitle,.uibox .listing thead td {
+                background: #b0ccd7;
+                color: #004458;
+                border-radius: 4px 4px 0 0;
+            }
+
+            .contentbox .boxtitle {
+                color: #777;
+                background: #eee;
+                background: -moz-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+                background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee),
+                    color-stop(100%, #dfdfdf) );
+                background: -o-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+                background: -ms-linear-gradient(top, #eee 0%, #dfdfdf 100%);
+                background: linear-gradient(top, #eee 0%, #dfdfdf 100%);
+                border-bottom: 1px solid #ccc;
+            }
+
+            .contentbox .scroller {
+                position: absolute;
+                top: 34px;
+                left: 0;
+                right: 0;
+                bottom: 28px;
+                overflow: auto;
+            }
+
+            body.iframe .boxtitle {
+                position: fixed;
+                top: 0;
+                left: 0;
+                width: 100%;
+                z-index: 100;
+            }
+
+            .boxcontent {
+                padding: 10px;
+            }
+        </ui:style>
+
+    <g:SplitLayoutPanel ui:field="thisPanel"
+        addStyleNames="{style.splitLayoutPanel}">
+        <g:west size="220">
+            <g:DockLayoutPanel addStyleNames="{style.listbox} {style.uibox}">
+                <g:north size="0">
+                    <g:HTML>
+                        <h2 class="{style.boxtitle}">Settings</h2>
+                    </g:HTML>
+                </g:north>
+                <g:center>
+                    <g:SimpleLayoutPanel ui:field="settingNavContainer"
+                        addStyleNames="{style.scroller}">
+                    </g:SimpleLayoutPanel>
+                </g:center>
+            </g:DockLayoutPanel>
+        </g:west>
+        <g:center>
+            <g:LayoutPanel ui:field="settingBox">
+                <g:layer left="0%" width="100%" top="0%" height="100%">
+                    <hupa:SettingLabelPanel ui:field="settingLabelPanel" />
+                </g:layer>
+            </g:LayoutPanel>
+        </g:center>
+    </g:SplitLayoutPanel>
 </ui:UiBinder>
\ No newline at end of file

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.java Thu Mar 20 08:16:02 2014
@@ -31,69 +31,69 @@ import com.google.gwt.user.client.ui.Wid
 
 public class _ToolPanel extends Composite {
 
-	@UiField protected DockLayoutPanel thisPanel;
-	@UiField protected SimplePanel toolBarContainer;
-	@UiField protected SimplePanel composeToolBarContainer;
-	@UiField protected SimplePanel searchBoxContainer;
-
-	public _ToolPanel() {
-		initWidget(binder.createAndBindUi(this));
-	}
-
-	public void toggleTo(int layout) {
-		switch (layout) {
-		case HupaLayout.LAYOUT_MESSAGE:
-			this.toggleToCompose(false);break;
-		case HupaLayout.LAYOUT_COMPOSE:
-			this.toggleToCompose(true);break;
-			//TODO compose button should be shown when setting
-		default:
-			hideAll();
-		}
-	}
-
-	private void hideAll() {
-		thisPanel.setWidgetHidden(toolBarContainer, true);
-		thisPanel.setWidgetHidden(searchBoxContainer, true);
-		thisPanel.setWidgetHidden(composeToolBarContainer, true);
-	}
-
-	protected void toggleToCompose(boolean visible) {
-		thisPanel.setWidgetHidden(toolBarContainer, visible);
-		thisPanel.setWidgetHidden(searchBoxContainer, visible);
-		thisPanel.setWidgetHidden(composeToolBarContainer, !visible);
-	}
-
-	public AcceptsOneWidget getToolBarView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				toolBarContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
-
-	public AcceptsOneWidget getComposeToolBarView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				composeToolBarContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
-
-	public AcceptsOneWidget getSearchBoxView() {
-		return new AcceptsOneWidget() {
-			@Override
-			public void setWidget(IsWidget w) {
-				searchBoxContainer.setWidget(Widget.asWidgetOrNull(w));
-			}
-		};
-	}
+    @UiField protected DockLayoutPanel thisPanel;
+    @UiField protected SimplePanel toolBarContainer;
+    @UiField protected SimplePanel composeToolBarContainer;
+    @UiField protected SimplePanel searchBoxContainer;
+
+    public _ToolPanel() {
+        initWidget(binder.createAndBindUi(this));
+    }
+
+    public void toggleTo(int layout) {
+        switch (layout) {
+        case HupaLayout.LAYOUT_MESSAGE:
+            this.toggleToCompose(false);break;
+        case HupaLayout.LAYOUT_COMPOSE:
+            this.toggleToCompose(true);break;
+            //TODO compose button should be shown when setting
+        default:
+            hideAll();
+        }
+    }
+
+    private void hideAll() {
+        thisPanel.setWidgetHidden(toolBarContainer, true);
+        thisPanel.setWidgetHidden(searchBoxContainer, true);
+        thisPanel.setWidgetHidden(composeToolBarContainer, true);
+    }
+
+    protected void toggleToCompose(boolean visible) {
+        thisPanel.setWidgetHidden(toolBarContainer, visible);
+        thisPanel.setWidgetHidden(searchBoxContainer, visible);
+        thisPanel.setWidgetHidden(composeToolBarContainer, !visible);
+    }
+
+    public AcceptsOneWidget getToolBarView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                toolBarContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
+
+    public AcceptsOneWidget getComposeToolBarView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                composeToolBarContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
+
+    public AcceptsOneWidget getSearchBoxView() {
+        return new AcceptsOneWidget() {
+            @Override
+            public void setWidget(IsWidget w) {
+                searchBoxContainer.setWidget(Widget.asWidgetOrNull(w));
+            }
+        };
+    }
 
-	interface _ToolPanelUiBinder extends UiBinder<DockLayoutPanel, _ToolPanel> {
-	}
+    interface _ToolPanelUiBinder extends UiBinder<DockLayoutPanel, _ToolPanel> {
+    }
 
-	private static _ToolPanelUiBinder binder = GWT.create(_ToolPanelUiBinder.class);
+    private static _ToolPanelUiBinder binder = GWT.create(_ToolPanelUiBinder.class);
 
 }



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