</target>
<target name="uploadToVM" depends="gwt-compile">
- <scp todir="chstath@pithos.dev.grnet.gr:/var/www/pithos_web_client" keyfile="/home/chstath/.ssh/id_rsa" passphrase="r0bax45">
+ <scp todir="chstath@pithos.dev.grnet.gr:/var/www/pithos_web_client" keyfile="/home/chstath/.ssh/chstath@ross.key" passphrase="r0bax45">
<fileset dir="${gwt.www.dir}/${gwt.module}"/>
</scp>
</target>
<arg value="${gwt.www.dir}"/>
<arg value="-noserver"/>
<arg value="-startupUrl"/>
- <arg value="http://127.0.0.1:8080/client/pithos.html"/>
+ <arg value="http://127.0.0.1:8080/client"/>
<arg value="${gwt.module}"/>
</java>
</target>
<inherits name="com.google.gwt.json.JSON"/>
<entry-point class='gr.grnet.pithos.web.client.Pithos' />
- <stylesheet src='gss.css' />
+ <stylesheet src='pithos.css' />
<source path="client"/>
</module>
interface TableResources extends CellTable.Resources {
@Override
- @Source({CellTable.Style.DEFAULT_CSS, "GssCellTable.css"})
+ @Source({CellTable.Style.DEFAULT_CSS, "PithosCellTable.css"})
TableStyle cellTableStyle();
}
selectionModel = new MultiSelectionModel<File>(keyProvider);
- celltable.setSelectionModel(selectionModel, GSSSelectionEventManager.<File> createDefaultManager());
+ celltable.setSelectionModel(selectionModel, PithosSelectionEventManager.<File> createDefaultManager());
// celltable.setPageSize(Pithos.VISIBLE_FILE_COUNT);
sinkEvents(Event.ONCONTEXTMENU);
permList.updatePermissionTable();\r
}\r
});\r
+ add.addStyleName("button");\r
permButtons.add(add);\r
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER);\r
\r
permList.updatePermissionTable();\r
}\r
});\r
+ addUser.addStyleName("button");\r
permButtons.add(addUser);\r
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);\r
\r
dlg.center();\r
}\r
});\r
+ add.addStyleName("button");\r
permButtons.add(add);\r
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER);\r
\r
dlg.center();\r
}\r
});\r
- addUser.getElement().setId("folderPropertiesDialog.button.addUser");\r
+ addUser.addStyleName("button");\r
permButtons.add(addUser);\r
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);\r
permButtons.setSpacing(8);\r
- permButtons.addStyleName("gss-TabPanelBottom");\r
permPanel.add(permButtons);\r
}\r
\r
*
* @param <T> the data type of records in the list
*/
-public class GSSSelectionEventManager<T> implements
+public class PithosSelectionEventManager<T> implements
CellPreviewEvent.Handler<T> {
/**
- * Implementation of {@link gr.grnet.pithos.web.client.GSSSelectionEventManager.EventTranslator} that only triggers selection when
+ * Implementation of {@link gr.grnet.pithos.web.client.PithosSelectionEventManager.EventTranslator} that only triggers selection when
* any checkbox is selected.
*
* @param <T> the data type
private final int column;
/**
- * Construct a new {@link gr.grnet.pithos.web.client.GSSSelectionEventManager.CheckboxEventTranslator} that will trigger
+ * Construct a new {@link gr.grnet.pithos.web.client.PithosSelectionEventManager.CheckboxEventTranslator} that will trigger
* selection when any checkbox in any column is selected.
*/
public CheckboxEventTranslator() {
}
/**
- * Construct a new {@link gr.grnet.pithos.web.client.GSSSelectionEventManager.CheckboxEventTranslator} that will trigger
+ * Construct a new {@link gr.grnet.pithos.web.client.PithosSelectionEventManager.CheckboxEventTranslator} that will trigger
* selection when a checkbox in the specified column is selected.
*
* @param column the column index, or -1 for all columns
}
/**
- * Construct a new {@link GSSSelectionEventManager} that triggers
+ * Construct a new {@link PithosSelectionEventManager} that triggers
* selection when any checkbox in any column is clicked.
*
* @param <T> the data type of the display
- * @return a {@link GSSSelectionEventManager} instance
+ * @return a {@link PithosSelectionEventManager} instance
*/
- public static <T> GSSSelectionEventManager<T> createCheckboxManager() {
- return new GSSSelectionEventManager<T>(new CheckboxEventTranslator<T>());
+ public static <T> PithosSelectionEventManager<T> createCheckboxManager() {
+ return new PithosSelectionEventManager<T>(new CheckboxEventTranslator<T>());
}
/**
- * Construct a new {@link GSSSelectionEventManager} that triggers
+ * Construct a new {@link PithosSelectionEventManager} that triggers
* selection when a checkbox in the specified column is clicked.
*
* @param <T> the data type of the display
* @param column the column to handle
- * @return a {@link GSSSelectionEventManager} instance
+ * @return a {@link PithosSelectionEventManager} instance
*/
- public static <T> GSSSelectionEventManager<T> createCheckboxManager(
+ public static <T> PithosSelectionEventManager<T> createCheckboxManager(
int column) {
- return new GSSSelectionEventManager<T>(new CheckboxEventTranslator<T>(
+ return new PithosSelectionEventManager<T>(new CheckboxEventTranslator<T>(
column));
}
/**
- * Create a new {@link GSSSelectionEventManager} using the specified
+ * Create a new {@link PithosSelectionEventManager} using the specified
* {@link EventTranslator} to control which {@link SelectAction} to take for
* each event.
*
* @param <T> the data type of the display
* @param translator the {@link EventTranslator} to use
- * @return a {@link GSSSelectionEventManager} instance
+ * @return a {@link PithosSelectionEventManager} instance
*/
- public static <T> GSSSelectionEventManager<T> createCustomManager(
+ public static <T> PithosSelectionEventManager<T> createCustomManager(
EventTranslator<T> translator) {
- return new GSSSelectionEventManager<T>(translator);
+ return new PithosSelectionEventManager<T>(translator);
}
/**
- * Create a new {@link GSSSelectionEventManager} that handles selection
+ * Create a new {@link PithosSelectionEventManager} that handles selection
* via user interactions.
*
* @param <T> the data type of the display
- * @return a new {@link GSSSelectionEventManager} instance
+ * @return a new {@link PithosSelectionEventManager} instance
*/
- public static <T> GSSSelectionEventManager<T> createDefaultManager() {
- return new GSSSelectionEventManager<T>(null);
+ public static <T> PithosSelectionEventManager<T> createDefaultManager() {
+ return new PithosSelectionEventManager<T>(null);
}
/**
private final EventTranslator<T> translator;
/**
- * Construct a new {@link GSSSelectionEventManager} using the specified
+ * Construct a new {@link PithosSelectionEventManager} using the specified
* {@link EventTranslator} to control which {@link SelectAction} to take for
* each event.
*
* @param translator the {@link EventTranslator} to use
*/
- protected GSSSelectionEventManager(EventTranslator<T> translator) {
+ protected PithosSelectionEventManager(EventTranslator<T> translator) {
this.translator = translator;
}
username.setStyleName("pithos-usernameMenu");
MenuBar userItemMenu = new MenuBar(true);
+ userItemMenu.addStyleName("pithos-userItemMenu");
userItemMenu.addItem(new MenuItem("invite friends...", new Command() {
@Override
userItem.addStyleName("pithos-usernameMenuItem");
username.addItem(userItem);
username.addSeparator();
- username.addItem(new MenuItem("en", (Command) null));
+
+ MenuItem langItem = new MenuItem("en", (Command) null);
+ langItem.addStyleName("pithos-langMenuItem");
+ username.addItem(langItem);
+
inner.add(username);
inner.setCellHorizontalAlignment(username, HasHorizontalAlignment.ALIGN_RIGHT);
ImageResource cellTreeOpenItem();
@Override
- @Source({"gr/grnet/pithos/web/client/GssCellTreeBasic.css"})
+ @Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"})
CellTree.Style cellTreeStyle();
}
ImageResource cellTreeOpenItem();
@Override
- @Source({"gr/grnet/pithos/web/client/GssCellTreeBasic.css"})
+ @Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"})
CellTree.Style cellTreeStyle();
}
ImageResource cellTreeOpenItem();
@Override
- @Source({"gr/grnet/pithos/web/client/GssCellTreeBasic.css"})
+ @Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"})
CellTree.Style cellTreeStyle();
}
ImageResource cellTreeOpenItem();
@Override
- @Source({"gr/grnet/pithos/web/client/GssCellTreeBasic.css"})
+ @Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"})
CellTree.Style cellTreeStyle();
}
ImageResource cellTreeOpenItem();
@Override
- @Source({"gr/grnet/pithos/web/client/GssCellTreeBasic.css"})
+ @Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"})
CellTree.Style cellTreeStyle();
}
+++ /dev/null
-<!--
- ~ Copyright 2011 GRNET S.A. All rights reserved.
- ~
- ~ Redistribution and use in source and binary forms, with or
- ~ without modification, are permitted provided that the following
- ~ conditions are met:
- ~
- ~ 1. Redistributions of source code must retain the above
- ~ copyright notice, this list of conditions and the following
- ~ disclaimer.
- ~
- ~ 2. Redistributions in binary form must reproduce the above
- ~ copyright notice, this list of conditions and the following
- ~ disclaimer in the documentation and/or other materials
- ~ provided with the distribution.
- ~
- ~ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
- ~ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- ~ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- ~ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
- ~ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ~ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ~ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ~ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- ~ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- ~ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- ~ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- ~ POSSIBILITY OF SUCH DAMAGE.
- ~
- ~ The views and conclusions contained in the software and
- ~ documentation are those of the authors and should not be
- ~ interpreted as representing official policies, either expressed
- ~ or implied, of GRNET S.A.
- -->
-
-<html>
- <head>
- <title>Pithos</title>
- <link type="text/css" rel="stylesheet" href="gss.css">
- </head>
- <body>
- <center>
- <p>Thank you for using Pithos.
- <p><a href='/pithos/'>Login again</a>
- </center>
- </body>
-</html>
--- /dev/null
+body {
+ color: black;
+ font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
+ margin: 8px;
+ margin-top: 3px;
+ background: url(images/background.png) repeat-x;
+}
+
+a {
+ color: white;
+ text-decoration: none;
+}
+
+a:hover {
+ color: white;
+}
+
+a:visited {
+ color: white;
+}
+
+a.info {
+ position: relative; /*this is the key*/
+ z-index: 24;
+ color: black;
+ text-decoration: none
+}
+
+a.info:hover {
+ z-index: 25;
+ background-color: yellow;
+}
+
+a.info div {
+ display: none
+}
+
+a.info:hover span {
+ cursor: pointer;
+}
+
+/* The span will only display on :hover state. */
+a.info:hover div {
+ display: block;
+ position: absolute;
+ bottom: 2em;
+ right: 1em;
+ width: 10em;
+ border: 1px solid lightblue;
+ background-color: #D0E4F6;
+ color: black;
+ text-align: center
+}
+
+.pithos-DialogBox .inner {
+ width: 95%;
+ background: url(images/white50.png);
+}
+
+.pithos-DialogBox .button {
+ background: none;
+ background-color: #4085A5;
+ color: white;
+ padding: 5px 6px;
+ white-space: nowrap;
+
+}
+
+.pithos-DialogBox .Caption {
+ color: white;
+ background-color: #4085a5;
+ padding: 4px 4px 4px 8px;
+ border-bottom: 1px solid white;
+}
+
+.pithos-DialogBox .close {
+ background: url(images/close-popup.png) no-repeat;
+ cursor: pointer;
+ position: absolute;
+ width: 13px;
+ height: 13px;
+ top: 7px;
+ right: 7px;
+}
+
+.pithos-DialogBox .dialogMiddleCenter {
+ background: url(images/popup-bg.png) repeat-x;
+ background-color: white;
+ padding: 3px;
+}
+
+.pithos-DialogBox .dialogBottomCenter {
+ border-bottom: 5px solid #4085A5;
+}
+
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopLeft {
+ background-position: 0px -55px;
+}
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopRight {
+ background-position: -6px -55px;
+}
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabTopCenter {
+ background: #D0E4F6;
+}
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleLeft,
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleCenter,
+.gwt-DecoratedTabBar .gwt-TabBarItem-selected .tabMiddleRight {
+ background: #D0E4F6;
+ color:#d45500;
+}
+.pithos-TabPanelBottom {
+ border: none;
+}
+
+table.pithos-permList {
+ border-spacing: 3px;
+ border-collapse: collapse;
+
+}
+
+table.pithos-permList td {
+ padding: 5px 5px 5px 5px;
+ font-size:80%;
+}
+
+table.pithos-permList.props-labels {
+ font-weight: bold;
+}
+
+.props-labels {
+ font-size: 80%;
+ font-weight: bold;
+}
+
+.props-toplabels {
+ font-size: 80%;
+ font-weight: bold;
+ font-style: italic;
+}
+
+.props-values {
+ font-size: 80%;
+}
+
+.hidden-link {
+ text-decoration: none !important;
+ color: black !important;
+}
+
+.hidden-link:visited {
+ text-decoration: none !important;
+ color: black !important;
+}
+
+.pithos-topPanel {
+ background-color: #4085a5;
+ font-size: 80%;
+ height: 60px;
+ border-bottom: 1px solid white;
+}
+
+.pithos-usernameMenu {
+ cursor: pointer;
+}
+
+.pithos-usernameMenuItem {
+ background: url(images/down-arrow-light.png) no-repeat scroll right 8px transparent;
+ padding-right: 13px;
+ cursor: pointer;
+ color: white;
+}
+
+.pithos-usernameMenuItem:HOVER {
+ background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
+ background-color: #599EBD;
+}
+
+.pithos-usernameMenuItem:ACTIVE {
+ background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
+ background-color: #BED5E0;
+}
+
+.pithos-langMenuItem {
+ cursor: pointer;
+ color: #72ADC8;
+}
+
+.gwt-MenuBar-vertical {
+ background: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopCenter {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopRight {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupMiddleLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupMiddleRight {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.pithos-userItemMenu {
+ background-color: #D0E3ED;
+}
+
+.gwt-popuppanel {
+ border: 3px solid #D0E3ED;
+ padding: 3px;
+ background: #D0E3ED;
+ border-image: initial;
+}
+
+.gwt-MenuBar .gwt-MenuItem {
+ border-bottom: 1px solid #EFEFEF;
+}
+
+.gwt-MenuBar .gwt-MenuItem-selected {
+ background-color: #E1EFF6;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomCenter {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomRight {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.pithos-sessionExpired {
+ width: 24em;
+ /* Restore the padding we remove when overriding the gwt-DialogBox style */
+ padding: 3px;
+}
+
+.pithos-statusbar {
+ background-color: #4085a5;
+ border: none;
+ font-size: 90%;
+ vertical-align: middle;
+ font-weight: normal;
+ height:145px;
+ color: white;
+}
+
+.pithos-List {
+ cursor: default;
+ border-collapse: collapse;
+ /* prevents selecting text in table with shift and ctrl*/
+ -moz-user-select: none;
+}
+
+.pithos-errorMessage {
+ font-size: 90%;
+ background-color: #ff9999;
+ cursor: pointer;
+}
+
+.pithos-warnMessage {
+ font-size: 90%;
+ background-color: #eeee99;
+ cursor: pointer;
+}
+
+.pithos-infoMessage {
+ font-size: 90%;
+ background-color: #ccffcc;
+ cursor: pointer;
+}
+
+.pithos-clearMessage {
+ font-size: 90%;
+ font-weight: bold;
+ text-decoration: none;
+ color: black;
+}
+
+.pithos-clearMessage:visited {
+ font-size: 90%;
+ font-weight: bold;
+ text-decoration: none;
+ color: black;
+}
+
+.pithos-readForAllNote {
+ width: 240px;
+ text-align: justify;
+ font-style: italic;
+ font-size: 12px;
+ padding-left: 4;
+}
+
+.pithos-treeHeader {
+ background-color: #74aec9;
+}
+
+.pithos-splitPanel {
+ background: url(images/white50.png);
+}
+
+/* Use the background color for the splitter. */
+.gwt-HorizontalSplitPanel .hsplitter {
+ cursor: move;
+ border: 0px;
+ background: url(images/background.png) repeat-x;
+}
+
+.pithos-tag {
+ display:inline;
+}
+
+.pithos-uploadButton {
+ background: none;
+ background-color: #ff6600;
+ font-size: 120%;
+ text-align: center;
+ height: 40px;
+ width: 300px;
+}
+
+.pithos-rightSide {
+ vertical-align: middle;
+ width: 100%;
+}
+.pithos-parentButton {
+ background: none;
+ background-color: #a1c8da;
+}
+
+.pithos-folderStatistics {
+ background-color: #a1c8da;
+ text-align: center;
+ color: white;
+}
+
+.pithos-credentialsText {
+ padding: 10px;
+}
+
+.grnet-sign {
+ color: #72ADC8;
+}
background-color: #4085A5;
color: white;
padding: 5px 6px;
+ white-space: nowrap;
+
}
.pithos-DialogBox .Caption {
color: white;
}
-.pithos-usernameMenuItem :hover {
+.pithos-usernameMenuItem:HOVER {
background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
- background-color: red;
+ background-color: #599EBD;
+}
+
+.pithos-usernameMenuItem:ACTIVE {
+ background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
+ background-color: #BED5E0;
+}
+
+.pithos-langMenuItem {
+ cursor: pointer;
+ color: #72ADC8;
+}
+
+.gwt-MenuBar-vertical {
+ background: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopCenter {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupTopRight {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupMiddleLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupMiddleRight {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.pithos-userItemMenu {
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBar .gwt-MenuItem {
+ border-bottom: 1px solid #EFEFEF;
+}
+
+.gwt-MenuBar .gwt-MenuItem-selected {
+ background-color: #E1EFF6;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomLeft {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomCenter {
+ background: none;
+ background-color: #D0E3ED;
+}
+
+.gwt-MenuBarPopup .menuPopupBottomRight {
+ background: none;
+ background-color: #D0E3ED;
}
.pithos-sessionExpired {