Revision 7ed6977e web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java
b/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
88 | 88 |
* The image bundle for this widget's images that reuses images defined in |
89 | 89 |
* other menus. |
90 | 90 |
*/ |
91 |
public interface Images extends ClientBundle,FileMenu.Images, EditMenu.Images {
|
|
91 |
public interface Images extends ClientBundle { |
|
92 | 92 |
|
93 | 93 |
@Source("gr/grnet/pithos/resources/mimetypes/document.png") |
94 | 94 |
ImageResource fileContextMenu(); |
... | ... | |
96 | 96 |
@Source("gr/grnet/pithos/resources/doc_versions.png") |
97 | 97 |
ImageResource versions(); |
98 | 98 |
|
99 |
@Override |
|
100 | 99 |
@Source("gr/grnet/pithos/resources/group.png") |
101 | 100 |
ImageResource sharing(); |
102 | 101 |
|
103 |
@Override |
|
104 | 102 |
@Source("gr/grnet/pithos/resources/border_remove.png") |
105 | 103 |
ImageResource unselectAll(); |
106 | 104 |
|
107 | 105 |
@Source("gr/grnet/pithos/resources/demo.png") |
108 | 106 |
ImageResource viewImage(); |
109 |
} |
|
107 |
|
|
108 |
@Source("gr/grnet/pithos/resources/folder_new.png") |
|
109 |
ImageResource folderNew(); |
|
110 |
|
|
111 |
@Source("gr/grnet/pithos/resources/folder_outbox.png") |
|
112 |
ImageResource fileUpdate(); |
|
113 |
|
|
114 |
@Source("gr/grnet/pithos/resources/view_text.png") |
|
115 |
ImageResource viewText(); |
|
116 |
|
|
117 |
@Source("gr/grnet/pithos/resources/folder_inbox.png") |
|
118 |
ImageResource download(); |
|
119 |
|
|
120 |
@Source("gr/grnet/pithos/resources/trashcan_empty.png") |
|
121 |
ImageResource emptyTrash(); |
|
122 |
|
|
123 |
@Source("gr/grnet/pithos/resources/refresh.png") |
|
124 |
ImageResource refresh(); |
|
125 |
|
|
126 |
/** |
|
127 |
* Will bundle the file 'editcut.png' residing in the package |
|
128 |
* 'gr.grnet.pithos.web.resources'. |
|
129 |
* |
|
130 |
* @return the image prototype |
|
131 |
*/ |
|
132 |
@Source("gr/grnet/pithos/resources/editcut.png") |
|
133 |
ImageResource cut(); |
|
134 |
|
|
135 |
/** |
|
136 |
* Will bundle the file 'editcopy.png' residing in the package |
|
137 |
* 'gr.grnet.pithos.web.resources'. |
|
138 |
* |
|
139 |
* @return the image prototype |
|
140 |
*/ |
|
141 |
@Source("gr/grnet/pithos/resources/editcopy.png") |
|
142 |
ImageResource copy(); |
|
143 |
|
|
144 |
/** |
|
145 |
* Will bundle the file 'editpaste.png' residing in the package |
|
146 |
* 'gr.grnet.pithos.web.resources'. |
|
147 |
* |
|
148 |
* @return the image prototype |
|
149 |
*/ |
|
150 |
@Source("gr/grnet/pithos/resources/editpaste.png") |
|
151 |
ImageResource paste(); |
|
152 |
|
|
153 |
/** |
|
154 |
* Will bundle the file 'editdelete.png' residing in the package |
|
155 |
* 'gr.grnet.pithos.web.resources'. |
|
156 |
* |
|
157 |
* @return the image prototype |
|
158 |
*/ |
|
159 |
@Source("gr/grnet/pithos/resources/editdelete.png") |
|
160 |
ImageResource delete(); |
|
161 |
|
|
162 |
/** |
|
163 |
* Will bundle the file 'translate.png' residing in the package |
|
164 |
* 'gr.grnet.pithos.web.resources'. |
|
165 |
* |
|
166 |
* @return the image prototype |
|
167 |
*/ |
|
168 |
@Source("gr/grnet/pithos/resources/translate.png") |
|
169 |
ImageResource selectAll(); |
|
170 |
} |
|
110 | 171 |
|
111 | 172 |
public static native String getDate()/*-{ |
112 | 173 |
return (new Date()).toUTCString(); |
... | ... | |
152 | 213 |
trashItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.emptyTrash()).getHTML() + " Move to Trash</span>", true, new ToTrashCommand(app, this, selectedFiles)); |
153 | 214 |
contextMenu.addItem(trashItem); |
154 | 215 |
|
155 |
deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + " Delete</span>", true, new DeleteCommand(app, this, selectedFiles, images)); |
|
216 |
deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + " Delete</span>", true, new DeleteCommand(app, this, selectedFiles, MessagePanel.images));
|
|
156 | 217 |
contextMenu.addItem(deleteItem); |
157 | 218 |
|
158 | 219 |
// sharingItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.sharing()).getHTML() + " Sharing</span>", true, new PropertiesCommand(this, images, 1)); |
Also available in: Unified diff