[isidorus-cvs] r658 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: . base text

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Fri Jul 22 09:15:05 UTC 2011


Author: lgiessmann
Date: Fri Jul 22 02:15:04 2011
New Revision: 658

Log:
gdl-frontend: Widgets: fixed a bug when applying the css properties for clear, displayan z-index

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTextObject.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt	Fri Jul 22 01:31:07 2011	(r657)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/TODO.txt	Fri Jul 22 02:15:04 2011	(r658)
@@ -1,8 +1,8 @@
-1. Use a Hyperlink element in GdlReference instead of the inner class Reference
+
 2. Implement GdlLineBreak => placeholder
 3. Implement TopicMaps data consumption
 4. Implement TopicMaps data generation
 3. Implement GdlButton(s)
 4. Implement GdlButton(s) positioning 
 6. ImplementGdlVisibleObject => (de)registerButtonCallback
-7. Fix css-handlers
\ No newline at end of file
+7. Fix css-pseudo-class-handlers
\ No newline at end of file

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Fri Jul 22 01:31:07 2011	(r657)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Fri Jul 22 02:15:04 2011	(r658)
@@ -221,7 +221,7 @@
 	// this property if no gdl:float occurrence is available
 	public Float getFloat() throws InvalidGdlSchemaException {
 		Occurrence floatOcc = getNoneOrOneUnscopedOccurrence(GdlPsis.OccurrenceType.gdlFloat);
-
+		
 		if(floatOcc != null){
 			String value = floatOcc.getValue().toLowerCase();
 			if(value.equals("none")){
@@ -1121,7 +1121,7 @@
 	// sets the id property of this element by using the GWT DOM class
 	public void setId(String id){
 		if(id != null){
-			DOM.setElementProperty(this.getElement(), "id", id);
+			DOM.setElementProperty(this.mainPanel.getElement(), "id", id);
 		}
 	}
 
@@ -1129,7 +1129,7 @@
 	// sets the display style property of this element by using the GWT DOM class
 	public void setDisplay(Display display){
 		if(display != null){
-			DOM.setStyleAttribute(this.getElement(), "display", display.getCssName());
+			DOM.setStyleAttribute(this.mainPanel.getElement(), "display", display.getCssName());
 		}
 	}
 
@@ -1137,7 +1137,7 @@
 	// sets the z-index style property of this element by using the GWT DOM class
 	public void setZindex(AutoNumValue value){
 		if(value != null){
-			DOM.setStyleAttribute(this.getElement(), "zIndex", value.getCssValue());
+			DOM.setStyleAttribute(this.mainPanel.getElement(), "zIndex", value.getCssValue());
 		}
 	}
 
@@ -1145,7 +1145,7 @@
 	// sets the float style property of this element by using the GWT DOM class
 	public void setFloat(Float value){
 		if(value != null){
-			DOM.setStyleAttribute(this.getElement(), "float", value.getCssName());
+			DOM.setStyleAttribute(this.mainPanel.getElement(), "float", value.getCssName());
 		}
 	}
 	
@@ -1162,7 +1162,7 @@
 	// sets the clear style property of this element by using the GWT DOM class
 	public void setClear(ClearValue value){
 		if(value != null){
-			DOM.setStyleAttribute(this.getElement(), "clear", value.getCssValue());
+			DOM.setStyleAttribute(this.mainPanel.getElement(), "clear", value.getCssValue());
 		}
 	}
 	
@@ -1170,7 +1170,7 @@
 	// sets the vertical-align style property of this element and all it's sub-elements by using the GWT DOM class
 	public void setVerticalAlign(Widget widget, VerticalAlign value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
 		if(value != null){
-			this.setCssProperty( widget, styleClass, "verticalAlign", value.getCssName());
+			this.setCssProperty(widget, styleClass, "verticalAlign", value.getCssName());
 			this.setCssProperty(styleClass, "verticalAlign", value.getCssName());
 		}
 	}

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTextObject.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTextObject.java	Fri Jul 22 01:31:07 2011	(r657)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlTextObject.java	Fri Jul 22 02:15:04 2011	(r658)
@@ -27,6 +27,7 @@
 	
 	public GdlTextObject(Topic tmRepresentative) throws InvalidGdlSchemaException, ExecutionException{
 		super(tmRepresentative);
+		super.setGdlStyle();
 	}
 	
 	




More information about the Isidorus-cvs mailing list