[isidorus-cvs] r988 - in trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: base isidorus

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Tue Sep 27 08:23:43 UTC 2011


Author: lgiessmann
Date: Tue Sep 27 01:23:43 2011
New Revision: 988

Log:
gdl-frontend: Widgets: fixed a bug when creating a LoadScreenPanel and (un-)setting the browser's scrollbars

Modified:
   trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TestClass.java
   trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java

Modified: trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TestClass.java
==============================================================================
--- trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TestClass.java	Tue Sep 27 00:20:10 2011	(r987)
+++ trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TestClass.java	Tue Sep 27 01:23:43 2011	(r988)
@@ -5,16 +5,16 @@
 
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.RootPanel;
 
 
 public class TestClass implements EntryPoint{
-	HorizontalPanel mainPanel = new HorizontalPanel();
-	GdlPanel gdlPanel = null;
-	
 	@Override
 	public void onModuleLoad() {
+		RootPanel.get().setHeight("1500px");
+		RootPanel.get().setWidth("2500px");
+		Window.enableScrolling(false);
 		final LoadScreenPanel lsp = new LoadScreenPanel("Title", "message");
 		RootPanel.get().add(lsp);
 		
@@ -22,57 +22,12 @@
 			@Override
 			public void run() {
 				lsp.removeFromParent();
+				Window.enableScrolling(true);
 			}
 		};
 		
 		t.schedule(5000);
 		
-		/*
-		try{
-			RootPanel.get("GWT_Content").add(mainPanel);
-			mainPanel.setBorderWidth(1);
-			mainPanel.setPixelSize(1000, 600);
-			
-			ArrayList<Pair<String, TopicIdentifierTypes>> requestedTopicsToCreate = new ArrayList<Pair<String,TopicIdentifierTypes>>();
-			requestedTopicsToCreate.add(new Pair<String, TopicIdentifierTypes>("http://textgrid.org/serviceregistry/model/types/Hash-Object", TopicIdentifierTypes.SubjectIdentifier));
-			//requestedTopicsToCreate.add(new Pair<String, TopicIdentifierTypes>("http://textgrid.org/serviceregistry/model/types/Environment", TopicIdentifierTypes.SubjectIdentifier));
-			//requestedTopicsToCreate.add(new Pair<String, TopicIdentifierTypes>("http://psi.test.org/gdl-test/Poet", TopicIdentifierTypes.SubjectIdentifier));
-			//requestedTopicsToCreate.add(new Pair<String, TopicIdentifierTypes>("http://psi.test.org/gdl-test/Musician", TopicIdentifierTypes.SubjectIdentifier));
-			
-			//Pair<String, TopicIdentifierTypes> requestedTopicToEdit = new Pair<String, TopicIdentifierTypes>("http://textgrid.org/serviceregistry/test-env-1", TopicIdentifierTypes.SubjectIdentifier);
-			//Pair<String, TopicIdentifierTypes> requestedTopicToEdit = new Pair<String, TopicIdentifierTypes>("http://textgrid.org/serviceregistry/test-hash-2", TopicIdentifierTypes.SubjectIdentifier);
-			//Pair<String, TopicIdentifierTypes> requestedTopicToEdit = new Pair<String, TopicIdentifierTypes>("http://textgrid.org/serviceregistry/hash-object/Test Environment 1/test1", TopicIdentifierTypes.SubjectIdentifier);
-			gdlPanel = new GdlPanel(null, requestedTopicsToCreate);
-			 
-			gdlPanel.addClickHandler("hash_object_reset_button_id", new ClickHandler() {
-				@Override
-				public void onClick(ClickEvent event) {
-					Element elem = DOM.getElementById("hash_object_text_key_id__GDL_0");
-					((TextAreaElement)elem).setValue("");
-					elem = DOM.getElementById("hash_object_text_value_id__GDL_0");
-					((TextAreaElement)elem).setValue("");
-				}
-			});
-			
-			mainPanel.add(gdlPanel);
-			gdlPanel.setTmEngine(new JtmsTmEngine());
-			gdlPanel.setLoadSchemaCallback(new LoadSchemaCallback());
-			gdlPanel.setCommitCallback(new CommitCallback());
-			gdlPanel.setDeleteCallback(new DeleteCallback());
-			
-			Button requestButton = new Button("load schema");
-			requestButton.addClickHandler(new ClickHandler() {
-				@Override
-				public void onClick(ClickEvent event) {
-					gdlPanel.loadSchema();
-				}
-			});
-			
-			mainPanel.add(requestButton);
-		}catch(Exception e){
-			e.printStackTrace();
-			Window.alert(">> e >> " + e.getClass() + " >> " + e.getMessage());
-		}
-		*/
+		
 	}
 }

Modified: trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java
==============================================================================
--- trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java	Tue Sep 27 00:20:10 2011	(r987)
+++ trunk/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/isidorus/GdlWebPage.java	Tue Sep 27 01:23:43 2011	(r988)
@@ -121,8 +121,8 @@
 	
 	
 	public void createLoadScreenPanel(String title, String message){
-		Window.enableScrolling(false);
 		this.removeLoadScreenPanel();
+		Window.enableScrolling(false);
 		this.loadScreenPanel = new LoadScreenPanel(title, message);
 		RootPanel.get().add(this.loadScreenPanel);
 	}




More information about the Isidorus-cvs mailing list