[isidorus-cvs] r586 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: container text

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Fri Jul 8 16:14:13 UTC 2011


Author: lgiessmann
Date: Fri Jul  8 09:14:13 2011
New Revision: 586

Log:
gdl-frontend: Widgets: fixed a bug in the registration of the event handlers of GdlList

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/container/GdlList.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTitle.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/container/GdlList.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/container/GdlList.java	Fri Jul  8 09:06:12 2011	(r585)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/container/GdlList.java	Fri Jul  8 09:14:13 2011	(r586)
@@ -275,37 +275,37 @@
 
 		@Override
 		public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseOverEvent.getType());
+			return this.addDomHandler(handler, MouseOverEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseOutEvent.getType());
+			return this.addDomHandler(handler, MouseOutEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addBlurHandler(BlurHandler handler) {
-			return this.basePanel.addDomHandler(handler, BlurEvent.getType());
+			return this.addDomHandler(handler, BlurEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addFocusHandler(FocusHandler handler) {
-			return this.basePanel.addDomHandler(handler, FocusEvent.getType());
+			return this.addDomHandler(handler, FocusEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseUpEvent.getType());
+			return this.addDomHandler(handler, MouseUpEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseDownEvent.getType());
+			return this.addDomHandler(handler, MouseDownEvent.getType());
 		}
 	}
 	

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTitle.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTitle.java	Fri Jul  8 09:06:12 2011	(r585)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTitle.java	Fri Jul  8 09:14:13 2011	(r586)
@@ -371,9 +371,9 @@
 	public void onHoverStart(MouseOverEvent event, HoverStyleHandler handler) {
 		Widget source = (Widget)event.getSource();
 		super.onHoverStart(event, handler);
+		Window.alert("TEST 1 >> " + source.getClass());
 		if(source.getClass().equals(TitleWidget.class)){
 			// TODO: implement
-			Window.alert("TEST 1");
 		}
 	}
 	
@@ -381,9 +381,9 @@
 	// applies the styles bound to hover and the passed element
 	@Override
 	protected void onHoverStart(Widget widget){
+		Window.alert("TEST 1.1 >> " + widget.getClass());
 		if(widget.getClass().equals(TitleWidget.class)){
 			// TODO: implement
-			Window.alert("TEST 1.1");
 		}
 		for (Pair<String, String> elem : this.hoverCssNamesAndStyles) {
 			DOM.setStyleAttribute(widget.getElement(), elem.getFirst(), elem.getSecond());
@@ -460,37 +460,37 @@
 
 		@Override
 		public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseOverEvent.getType());
+			return this.addDomHandler(handler, MouseOverEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseOutEvent.getType());
+			return this.addDomHandler(handler, MouseOutEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addBlurHandler(BlurHandler handler) {
-			return this.basePanel.addDomHandler(handler, BlurEvent.getType());
+			return this.addDomHandler(handler, BlurEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addFocusHandler(FocusHandler handler) {
-			return this.basePanel.addDomHandler(handler, FocusEvent.getType());
+			return this.addDomHandler(handler, FocusEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseUpHandler(MouseUpHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseUpEvent.getType());
+			return this.addDomHandler(handler, MouseUpEvent.getType());
 		}
 
 
 		@Override
 		public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) {
-			return this.basePanel.addDomHandler(handler, MouseDownEvent.getType());
+			return this.addDomHandler(handler, MouseDownEvent.getType());
 		}
 	}
 }




More information about the Isidorus-cvs mailing list