Revision 01bd6099
b/src/gr/grnet/pithos/web/client/PermissionsList.java | ||
---|---|---|
45 | 45 |
import com.google.gwt.event.logical.shared.ValueChangeHandler; |
46 | 46 |
import com.google.gwt.user.client.Command; |
47 | 47 |
import com.google.gwt.user.client.ui.AbstractImagePrototype; |
48 |
import com.google.gwt.user.client.ui.Anchor; |
|
48 | 49 |
import com.google.gwt.user.client.ui.CheckBox; |
49 | 50 |
import com.google.gwt.user.client.ui.Composite; |
50 | 51 |
import com.google.gwt.user.client.ui.FlexTable; |
... | ... | |
164 | 165 |
changePermissionsCallback.execute(); |
165 | 166 |
} |
166 | 167 |
}); |
167 |
PushButton removeButton = new PushButton(AbstractImagePrototype.create(images.delete()).createImage(), new ClickHandler() { |
|
168 |
Anchor removeButton = new Anchor("remove"); |
|
169 |
removeButton.addStyleName(Pithos.resources.pithosCss().commandAnchor()); |
|
170 |
removeButton.addClickHandler(new ClickHandler() { |
|
168 | 171 |
@Override |
169 | 172 |
public void onClick(ClickEvent event) { |
170 | 173 |
permissions.remove(user); |
... | ... | |
174 | 177 |
changePermissionsCallback.execute(); |
175 | 178 |
} |
176 | 179 |
}); |
177 |
removeButton.setTitle("Remove"); |
|
178 | 180 |
permTable.setWidget(i, 3, removeButton); |
179 | 181 |
permTable.getFlexCellFormatter().setHorizontalAlignment(i, 3, HasHorizontalAlignment.ALIGN_CENTER); |
180 | 182 |
} |
b/src/gr/grnet/pithos/web/client/Pithos.css | ||
---|---|---|
1 |
/* |
|
2 |
* Copyright 2011-2012 GRNET S.A. All rights reserved. |
|
3 |
* |
|
4 |
* Redistribution and use in source and binary forms, with or |
|
5 |
* without modification, are permitted provided that the following |
|
6 |
* conditions are met: |
|
7 |
* |
|
8 |
* 1. Redistributions of source code must retain the above |
|
9 |
* copyright notice, this list of conditions and the following |
|
10 |
* disclaimer. |
|
11 |
* |
|
12 |
* 2. Redistributions in binary form must reproduce the above |
|
13 |
* copyright notice, this list of conditions and the following |
|
14 |
* disclaimer in the documentation and/or other materials |
|
15 |
* provided with the distribution. |
|
16 |
* |
|
17 |
* THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
|
18 |
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
19 |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
20 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
|
21 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
22 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
23 |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
24 |
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
|
25 |
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
26 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
|
27 |
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
28 |
* POSSIBILITY OF SUCH DAMAGE. |
|
29 |
* |
|
30 |
* The views and conclusions contained in the software and |
|
31 |
* documentation are those of the authors and should not be |
|
32 |
* interpreted as representing official policies, either expressed |
|
33 |
* or implied, of GRNET S.A. |
|
34 |
*/ |
|
35 |
|
|
36 |
.commandAnchor { |
|
37 |
color: #4085A5; |
|
38 |
text-decoration: underline; |
|
39 |
} |
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.PithosDisclosurePanel.Style; |
|
37 | 38 |
import gr.grnet.pithos.web.client.commands.UploadFileCommand; |
38 | 39 |
import gr.grnet.pithos.web.client.foldertree.AccountResource; |
39 | 40 |
import gr.grnet.pithos.web.client.foldertree.File; |
... | ... | |
82 | 83 |
import com.google.gwt.json.client.JSONParser; |
83 | 84 |
import com.google.gwt.json.client.JSONString; |
84 | 85 |
import com.google.gwt.json.client.JSONValue; |
86 |
import com.google.gwt.resources.client.ClientBundle; |
|
87 |
import com.google.gwt.resources.client.CssResource; |
|
85 | 88 |
import com.google.gwt.resources.client.ImageResource; |
89 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
86 | 90 |
import com.google.gwt.resources.client.ImageResource.ImageOptions; |
87 | 91 |
import com.google.gwt.user.client.Command; |
88 | 92 |
import com.google.gwt.user.client.Cookies; |
... | ... | |
114 | 118 |
|
115 | 119 |
public static final Configuration config = GWT.create(Configuration.class); |
116 | 120 |
|
121 |
public interface Style extends CssResource { |
|
122 |
String commandAnchor(); |
|
123 |
} |
|
124 |
|
|
125 |
public interface Resources extends ClientBundle { |
|
126 |
@Source("Pithos.css") |
|
127 |
Style pithosCss(); |
|
128 |
} |
|
129 |
|
|
130 |
public static Resources resources = GWT.create(Resources.class); |
|
131 |
|
|
117 | 132 |
/** |
118 | 133 |
* Instantiate an application-level image bundle. This object will provide |
119 | 134 |
* programmatic access to all the images needed by widgets. |
... | ... | |
264 | 279 |
} |
265 | 280 |
|
266 | 281 |
private void initialize() { |
282 |
resources.pithosCss().ensureInjected(); |
|
267 | 283 |
boolean bareContent = Window.Location.getParameter("noframe") != null; |
268 | 284 |
String contentWidth = bareContent ? "100%" : "75%"; |
269 | 285 |
|
Also available in: Unified diff