onModuleLoad()
.
*/
public class Pithos implements EntryPoint, ResizeHandler {
- public static final String HOME_CONTAINER = "pithos";
-
- public static final String TRASH_CONTAINER = "trash";
-
- 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();
-
- String uploadAlertPercent();
-
- 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 static final String HOME_CONTAINER = "pithos";
+
+ public static final String TRASH_CONTAINER = "trash";
+
+ 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();
+
+ String uploadAlertPercent();
+
+ 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;
@@ -174,19 +139,19 @@ public class Pithos implements EntryPoint, ResizeHandler {
}
public void updateMySharedRoot() {
- mysharedTreeView.updateRoot();
+ mysharedTreeView.updateRoot();
}
-
+
public void updateSharedFolder(Folder f, boolean showfiles, Command callback) {
- mysharedTreeView.updateFolder(f, showfiles, callback);
+ mysharedTreeView.updateFolder(f, showfiles, callback);
}
-
+
public void updateSharedFolder(Folder f, boolean showfiles) {
- updateSharedFolder(f, showfiles, null);
+ updateSharedFolder(f, showfiles, null);
}
public void updateOtherSharedFolder(Folder f, boolean showfiles, Command callback) {
- otherSharedTreeView.updateFolder(f, showfiles, callback);
+ otherSharedTreeView.updateFolder(f, showfiles, callback);
}
public MysharedTreeView getMySharedTreeView() {
@@ -194,64 +159,64 @@ public class Pithos implements EntryPoint, ResizeHandler {
}
/**
- * An aggregate image bundle that pulls together all the images for this
- * application into a single bundle.
- */
- public interface Images extends TopPanel.Images, FileList.Images, ToolsMenu.Images {
-
- @Source("gr/grnet/pithos/resources/document.png")
- ImageResource folders();
-
- @Source("gr/grnet/pithos/resources/advancedsettings.png")
- @ImageOptions(width=32, height=32)
- ImageResource tools();
- }
-
- private Throwable error;
-
- /**
- * The Application Clipboard implementation;
- */
- private Clipboard clipboard = new Clipboard();
-
- /**
- * The top panel that contains the menu bar.
- */
- private TopPanel topPanel;
-
- /**
- * The panel that contains the various system messages.
- */
- private MessagePanel messagePanel = new MessagePanel(this, Pithos.images);
-
- /**
- * The bottom panel that contains the status bar.
- */
- private StatusPanel statusPanel = null;
-
- /**
- * The file list widget.
- */
- private FileList fileList;
-
- /**
- * The tab panel that occupies the right side of the screen.
- */
- private VerticalPanel inner = new VerticalPanel();
-
-
- /**
- * The split panel that will contain the left and right panels.
- */
- private HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
-
- /**
- * The currently selected item in the application, for use by the Edit menu
- * commands. Potential types are Folder, File, User and Group.
- */
- private Object currentSelection;
-
- public HashMap" + imageProto.getHTML() - + " | " - + caption + " |
" + imageProto.getHTML() + + " | " + + caption + " |