onModuleLoad()
.
*/
public class Pithos implements EntryPoint, ResizeHandler {
- public static final String HOME_CONTAINER = "pithos";
+ public static final Configuration config = GWT.create(Configuration.class);
+
+ public interface Style extends CssResource {
+ String commandAnchor();
+
+ String statistics();
+
+ @ClassName("gwt-HTML")
+ String html();
+
+ String uploadAlert();
+
+ String uploadAlertLink();
+
+ String uploadAlertProgress();
- public static final String TRASH_CONTAINER = "trash";
+ String uploadAlertPercent();
- public static final Configuration config = GWT.create(Configuration.class);
-
- /**
- * Instantiate an application-level image bundle. This object will provide
- * programmatic access to all the images needed by widgets.
- */
- static Images images = (Images) GWT.create(Images.class);
+ String uploadAlertClose();
+ }
+
+ public interface Resources extends ClientBundle {
+ @Source("Pithos.css")
+ Style pithosCss();
+
+ @Source("gr/grnet/pithos/resources/close-popup.png")
+ ImageResource closePopup();
+ }
+
+ public static Resources resources = GWT.create(Resources.class);
+
+ /**
+ * Instantiate an application-level image bundle. This object will provide
+ * programmatic access to all the images needed by widgets.
+ */
+ static Images images = (Images) GWT.create(Images.class);
- public String getUsername() {
- return username;
+ public String getUserID() {
+ return userID;
+ }
+
+ public UserCatalogs getUserCatalogs() {
+ return userCatalogs;
+ }
+
+ public String getCurrentUserDisplayNameOrID() {
+ final String displayName = userCatalogs.getDisplayName(getUserID());
+ return displayName == null ? getUserID() : displayName;
+ }
+
+ public boolean hasUserDisplayNameForID(String userID) {
+ return userCatalogs.getDisplayName(userID) != null;
+ }
+
+ public String getUserDisplayNameForID(String userID) {
+ return userCatalogs.getDisplayName(userID);
+ }
+
+ public String getUserIDForDisplayName(String displayName) {
+ return userCatalogs.getUserID(displayName);
+ }
+
+ public List" + imageProto.getHTML() - + " | " - + caption + " |
" + imageProto.getHTML() + + " | " + + caption + " |