Revision 3264607e
b/src/gr/grnet/pithos/web/client/FileList.java | ||
---|---|---|
56 | 56 |
import com.google.gwt.http.client.URL; |
57 | 57 |
import com.google.gwt.i18n.client.DateTimeFormat; |
58 | 58 |
import com.google.gwt.resources.client.ImageResource; |
59 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
60 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
|
61 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
|
59 | 62 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
60 | 63 |
import com.google.gwt.safehtml.shared.SafeHtml; |
61 | 64 |
import com.google.gwt.safehtml.shared.SafeHtmlBuilder; |
... | ... | |
90 | 93 |
@Override |
91 | 94 |
@Source({CellTable.Style.DEFAULT_CSS, "PithosCellTable.css"}) |
92 | 95 |
TableStyle cellTableStyle(); |
96 |
|
|
97 |
@Source("share.png") |
|
98 |
@ImageOptions(repeatStyle = RepeatStyle.None) |
|
99 |
ImageResource cellTableSharedIcon(); |
|
93 | 100 |
} |
94 | 101 |
|
95 | 102 |
static interface Templates extends SafeHtmlTemplates { |
b/src/gr/grnet/pithos/web/client/PithosCellTable.css | ||
---|---|---|
94 | 94 |
overflow: auto; |
95 | 95 |
} |
96 | 96 |
|
97 |
.cellTableFirstColumnShared { |
|
98 |
background: url(images/share.png) no-repeat 5px 9px; |
|
97 |
@sprite .cellTableFirstColumnShared { |
|
98 |
gwt-image: 'cellTableSharedIcon'; |
|
99 |
background-position: 5px 9px; |
|
99 | 100 |
} |
b/src/gr/grnet/pithos/web/client/PithosCellTreeBasic.css | ||
---|---|---|
16 | 16 |
.cellTreeWidget { |
17 | 17 |
} |
18 | 18 |
|
19 |
.cellTreeEmptyMessage { |
|
19 |
@sprite .cellTreeEmptyMessage { |
|
20 |
gwt-image: 'cellTreeLoadingBasic'; |
|
20 | 21 |
padding-left: 16px; |
22 |
width: 0px; |
|
21 | 23 |
font-style: italic; |
22 |
/* background: url(images/cellTreeLoadingBasic.gif) no-repeat;*/ |
|
23 | 24 |
color: #4085A5; |
24 | 25 |
} |
25 | 26 |
|
b/src/gr/grnet/pithos/web/client/foldertree/FolderTreeView.java | ||
---|---|---|
41 | 41 |
import com.google.gwt.core.client.GWT; |
42 | 42 |
import com.google.gwt.resources.client.ImageResource; |
43 | 43 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
44 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
|
44 | 45 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
45 | 46 |
import com.google.gwt.safehtml.shared.SafeHtml; |
46 | 47 |
import com.google.gwt.user.cellview.client.CellTree; |
... | ... | |
110 | 111 |
@Override |
111 | 112 |
@Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"}) |
112 | 113 |
CellTree.Style cellTreeStyle(); |
114 |
|
|
115 |
@Source("gr/grnet/pithos/web/client/cellTreeLoadingBasic.gif") |
|
116 |
@ImageOptions(repeatStyle=RepeatStyle.None) |
|
117 |
ImageResource cellTreeLoadingBasic(); |
|
113 | 118 |
} |
114 | 119 |
|
115 | 120 |
public static interface Images extends Tree.Resources, FolderContextMenu.Images { |
b/src/gr/grnet/pithos/web/client/grouptree/GroupTreeView.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
import com.google.gwt.core.client.GWT; |
43 | 43 |
import com.google.gwt.resources.client.ImageResource; |
44 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
44 | 45 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
46 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
|
45 | 47 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
46 | 48 |
import com.google.gwt.safehtml.shared.SafeHtml; |
47 | 49 |
import com.google.gwt.user.cellview.client.CellTree; |
... | ... | |
97 | 99 |
@Override |
98 | 100 |
@Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"}) |
99 | 101 |
CellTree.Style cellTreeStyle(); |
102 |
|
|
103 |
@Source("gr/grnet/pithos/web/client/cellTreeLoadingBasic.gif") |
|
104 |
@ImageOptions(repeatStyle=RepeatStyle.None) |
|
105 |
ImageResource cellTreeLoadingBasic(); |
|
100 | 106 |
} |
101 | 107 |
|
102 | 108 |
public static interface Images extends Tree.Resources, FolderContextMenu.Images { |
b/src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeView.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
import com.google.gwt.core.client.GWT; |
43 | 43 |
import com.google.gwt.resources.client.ImageResource; |
44 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
44 | 45 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
46 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
|
45 | 47 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
46 | 48 |
import com.google.gwt.safehtml.shared.SafeHtml; |
47 | 49 |
import com.google.gwt.user.cellview.client.CellTree; |
... | ... | |
92 | 94 |
@Override |
93 | 95 |
@Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"}) |
94 | 96 |
CellTree.Style cellTreeStyle(); |
97 |
|
|
98 |
@Source("gr/grnet/pithos/web/client/cellTreeLoadingBasic.gif") |
|
99 |
@ImageOptions(repeatStyle=RepeatStyle.None) |
|
100 |
ImageResource cellTreeLoadingBasic(); |
|
95 | 101 |
} |
96 | 102 |
|
97 | 103 |
public static interface Images extends Tree.Resources, FolderContextMenu.Images { |
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeView.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
import com.google.gwt.core.client.GWT; |
43 | 43 |
import com.google.gwt.resources.client.ImageResource; |
44 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
44 | 45 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
46 |
import com.google.gwt.resources.client.ImageResource.RepeatStyle; |
|
45 | 47 |
import com.google.gwt.safehtml.client.SafeHtmlTemplates; |
46 | 48 |
import com.google.gwt.safehtml.shared.SafeHtml; |
47 | 49 |
import com.google.gwt.user.cellview.client.CellTree; |
... | ... | |
92 | 94 |
@Override |
93 | 95 |
@Source({"gr/grnet/pithos/web/client/PithosCellTreeBasic.css"}) |
94 | 96 |
CellTree.Style cellTreeStyle(); |
97 |
|
|
98 |
@Source("gr/grnet/pithos/web/client/cellTreeLoadingBasic.gif") |
|
99 |
@ImageOptions(repeatStyle=RepeatStyle.None) |
|
100 |
ImageResource cellTreeLoadingBasic(); |
|
95 | 101 |
} |
96 | 102 |
|
97 | 103 |
public static interface Images extends Tree.Resources, FolderContextMenu.Images { |
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java | ||
---|---|---|
378 | 378 |
GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), username, path, f) { |
379 | 379 |
@Override |
380 | 380 |
public void onSuccess(Folder _result) { |
381 |
if (!_result.isShared()) { |
|
381 |
if (!_result.isShared() && !_result.isContainer()) {
|
|
382 | 382 |
for (File file : _result.getFiles()) { |
383 | 383 |
if (file.isShared()) |
384 | 384 |
sharedFiles.get(username).add(file); |
Also available in: Unified diff