Author: manolo
Date: Thu Dec 3 17:52:20 2009
New Revision: 886863
URL: http://svn.apache.org/viewvc?rev=886863&view=rev
Log:
Minor changes to layout.
Added a new class for hupa's css constants
Added:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
Modified:
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/IMAPMessageListView.java
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml
james/hupa/trunk/client/war/Hupa.css
Added: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java?rev=886863&view=auto
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
(added)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
Thu Dec 3 17:52:20 2009
@@ -0,0 +1,32 @@
+/****************************************************************
+ * 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. *
+ ****************************************************************/
+
+package org.apache.hupa.client;
+
+
+/**
+ * CSS class names used in Hupa
+ */
+public class HupaCSS {
+
+ public static final String C_main_container = "Hupa";
+
+ public static final String C_logout_btn = "hupa-logout-btn";
+
+}
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=886863&r1=886862&r2=886863&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
Thu Dec 3 17:52:20 2009
@@ -19,6 +19,7 @@
package org.apache.hupa.client.mvp;
+import org.apache.hupa.client.HupaCSS;
import org.apache.hupa.client.HupaConstants;
import org.apache.hupa.shared.events.ServerStatusEvent.ServerStatus;
@@ -73,8 +74,10 @@
@Inject
public AppView(HupaConstants constants) {
logoutButton = new Hyperlink(constants.logoutButton(),"");
+ logoutButton.addStyleName(HupaCSS.C_logout_btn);
VerticalPanel vPanel = new VerticalPanel();
+ vPanel.setStyleName(HupaCSS.C_main_container);
vPanel.setSpacing(3);
vPanel.setWidth("100%");
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java?rev=886863&r1=886862&r2=886863&view=diff
==============================================================================
---
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
(original)
+++
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
Thu Dec 3 17:52:20 2009
@@ -188,12 +188,12 @@
// This is only needed as workaround in pagingscrolltable
// See
http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScrollTable
- mailTable.setWidth(Window.getClientWidth() -150 -40+"px");
+ mailTable.setWidth(Window.getClientWidth() -200+"px");
mailTable.setHeight("600px");
Window.addResizeHandler(new ResizeHandler() {
public void onResize(ResizeEvent event) {
- mailTable.setWidth(Window.getClientWidth() -150 -30+"px");
+ mailTable.setWidth(Window.getClientWidth() -200+"px");
}
});
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=886863&r1=886862&r2=886863&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
Thu Dec 3 17:52:20 2009
@@ -75,8 +75,7 @@
sendButton = new EnableButton(constants.sendButton());
backButton = new EnableHyperlink(constants.backButton(),"");
final VerticalPanel mPanel = new VerticalPanel();
- //mPanel.setWidth("100%");
- mPanel.setWidth(Window.getClientWidth() -10 +"px");
+ mPanel.setWidth(Window.getClientWidth() -200 +"px");
Window.addResizeHandler(new ResizeHandler() {
Modified: james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml?rev=886863&r1=886862&r2=886863&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml (original)
+++ james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml Thu Dec 3 17:52:20
2009
@@ -2,7 +2,7 @@
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
-<!-- live config -->
+
<web-app>
<!-- Default page to serve -->
@@ -10,11 +10,18 @@
<welcome-file>Hupa.html</welcome-file>
</welcome-file-list>
+ <!-- Max size of the upload request (10MB) -->
<context-param>
- <!-- max size of the upload request (100MB) -->
<param-name>maxSize</param-name>
- <param-value>104857600</param-value>
+ <param-value>10485760</param-value>
</context-param>
+ <!-- Useful in development mode to see the upload progress bar in fast
networks -->
+ <!--
+ <context-param>
+ <param-name>slowUploads</param-name>
+ <param-value>100</param-value>
+ </context-param>
+ -->
<!-- servlet for incubator gwt stuff -->
<servlet>
Modified: james/hupa/trunk/client/war/Hupa.css
URL:
http://svn.apache.org/viewvc/james/hupa/trunk/client/war/Hupa.css?rev=886863&r1=886862&r2=886863&view=diff
==============================================================================
--- james/hupa/trunk/client/war/Hupa.css (original)
+++ james/hupa/trunk/client/war/Hupa.css Thu Dec 3 17:52:20 2009
@@ -122,4 +122,8 @@
.hupa-editor {
border: 2px solid #E0ECFF;
-}
+}
+
+.hupa-logout-btn {
+ margin-right: 20px;
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]