[isidorus-cvs] r909 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Thu Sep 15 12:15:36 UTC 2011
Author: lgiessmann
Date: Thu Sep 15 05:15:35 2011
New Revision: 909
Log:
gdl-frontend: Widgets: added a new scroll function, that scrolls the screen to the top after a psi was clicked, so the GDlPanel is directly visble when it's instantiated
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java Thu Sep 15 04:50:43 2011 (r908)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/HashObjectUi.java Thu Sep 15 05:15:35 2011 (r909)
@@ -59,7 +59,12 @@
navigationPanel.add(createNewButton);
this.requestHashObjectPsis();
}
-
+
+
+ public void resetPage(){
+ // TODO: implement
+ }
+
private void requestHashObjectPsis(){
String url = URL.encode(IsidorusConstants.GET_HASH_OBJECT_PSIS_URL);
@@ -74,11 +79,6 @@
}
- public void resetPage(){
- // TODO: implement
- }
-
-
private class CreateNewClickHandler implements ClickHandler {
@Override
public void onClick(ClickEvent event) {
@@ -117,6 +117,7 @@
gdlPanel.setCommitCallback(new CommitCallback());
gdlPanel.setDeleteCallback(new DeleteCallback());
gdlPanel.loadSchema();
+ Window.scrollTo(0, 0);
}catch(Exception e){
e.printStackTrace();
Window.alert("could not instantiate the GdlPanel, because(" + e.getClass() + "): " + e.getMessage());
More information about the Isidorus-cvs
mailing list