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

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Wed Jul 6 12:16:54 UTC 2011


Author: lgiessmann
Date: Wed Jul  6 05:16:54 2011
New Revision: 566

Log:
gdl-frontend: Widgets: fixed all methods in GdlText that sets Gdl Style properties => handling of null values

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/text/GdlText.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlCreatorAssociationView.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlDefaultCreatorTopicView.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlEditorAssociationView.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialCreatorTopicView.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialEditorTopicView.java

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	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlVisibleObject.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -59,9 +59,6 @@
 	protected ActiveStyleHandler activeStyleHandler = new ActiveStyleHandler();
 	protected FocusStyleHandler focusStyleHandler = new FocusStyleHandler();
 	protected HoverStyleHandler hoverStyleHandler = new HoverStyleHandler();
-	protected boolean isActive = false;
-	protected boolean isFocused = false;
-	protected boolean isHovered = false;
 
 
 	// some constructors
@@ -1316,6 +1313,11 @@
 	public abstract void setBackgroundColor(Widget widget, ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException;
 
 
+	// sets the width, height and overflow property of this element depending on the amount
+	// of sub-elements
+	protected abstract void adjustSize();
+	
+	
 	// sets the overflow style property of this element by using the GWT DOM class
 	public void setOverflow(Overflow value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
 		if(value != null) this.setCssProperty(styleClass, "overflow", value.getCssName());

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlText.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlText.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/text/GdlText.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -1,9 +1,6 @@
 package us.isidor.gdl.anaToMia.Widgets.text;
 
-
 import java.util.ArrayList;
-
-import com.google.gwt.dom.client.Style.Float;
 import com.google.gwt.dom.client.Style.FontStyle;
 import com.google.gwt.event.dom.client.BlurHandler;
 import com.google.gwt.event.dom.client.FocusHandler;
@@ -29,7 +26,6 @@
 import us.isidor.gdl.anaToMia.Widgets.values.AbsoluteNumValue;
 import us.isidor.gdl.anaToMia.Widgets.values.AutoNumUnitValue;
 import us.isidor.gdl.anaToMia.Widgets.values.BorderStyleValue;
-import us.isidor.gdl.anaToMia.Widgets.values.ClearValue;
 import us.isidor.gdl.anaToMia.Widgets.values.ColorValue;
 import us.isidor.gdl.anaToMia.Widgets.values.ContentOrientationValue;
 import us.isidor.gdl.anaToMia.Widgets.values.CursorValue;
@@ -49,12 +45,9 @@
 	protected ArrayList<TextArea> textElements = new ArrayList<TextArea>();
 	protected ArrayList<PasswordKeyPressHandler> passwordKeyPressHandler = null;
 	protected ArrayList<HandlerRegistration> passwordKeyPressRegistrations = null;
-	protected ArrayList<Pair<TextArea, ActiveStyleHandler>> activeStyleHandler = new ArrayList<Pair<TextArea,ActiveStyleHandler>>();
-	protected ArrayList<Pair<TextArea, FocusStyleHandler>> focusStyleHandler = new ArrayList<Pair<TextArea,FocusStyleHandler>>();
-	protected ArrayList<Pair<TextArea, HoverStyleHandler>> hoverStyleHandler = new ArrayList<Pair<TextArea,HoverStyleHandler>>();
-	
-	
-	// TODO: check ActiveHandler, FocusHandler and HoverHandler for bugs ==> click event! 
+	// TODO: protected ArrayList<Pair<TextArea, ActiveStyleHandler>> activeStyleHandler = new ArrayList<Pair<TextArea,ActiveStyleHandler>>();
+	// TODO: protected ArrayList<Pair<TextArea, FocusStyleHandler>> focusStyleHandler = new ArrayList<Pair<TextArea,FocusStyleHandler>>();
+	// TODO: protected ArrayList<Pair<TextArea, HoverStyleHandler>> hoverStyleHandler = new ArrayList<Pair<TextArea,HoverStyleHandler>>();
 	
 	
 	// some constructors
@@ -64,10 +57,7 @@
 	
 	
 	public GdlText(Topic tmRepresentative) throws InvalidGdlSchemaException, ExecutionException{
-		this();
-		this.tmRepresentative = tmRepresentative;
-		this.tm = this.tmRepresentative.getTopicMap();
-		super.setId(this.getId());
+		super(tmRepresentative);
 		// TODO: create a text element for each TM-elem
 		this.createNewTextArea();
 	}
@@ -77,17 +67,19 @@
 	// and applies the styles on it
 	protected TextArea createNewTextArea() throws InvalidGdlSchemaException, ExecutionException {
 		TextArea elem = new TextArea();
-		this.textElements.add(elem);
 		DOM.setElementAttribute(elem.getElement(), "id", this.getId() + "__GDL_" + this.textElements.size());
-		super.mainPanel.add(elem);		
-		// TODO: reset the text area size on each text element
+		this.textElements.add(elem);
+		super.mainPanel.add(elem);
+		this.setGdlStyle((Widget)elem);
+		this.adjustSize();
 		return elem;
 	}
 	
 	
 	// removes the passed element and all its handlers from the outer element
 	protected void removeTextArea(TextArea elem){
-		for (Pair<TextArea, ActiveStyleHandler> item : this.activeStyleHandler) {
+		// TODO: implement
+		/*for (Pair<TextArea, ActiveStyleHandler> item : this.activeStyleHandler) {
 			if(item.getFirst().equals(elem)){
 				this.activeStyleHandler.remove(item);
 				break;
@@ -105,11 +97,11 @@
 				break;
 			}
 		}
+		*/
 		
 		this.textElements.remove(elem);
 		elem.removeFromParent();
-		
-		// TODO: reset the text area size on each text element
+		this.adjustSize();
 	}
 	
 	
@@ -173,7 +165,7 @@
 	// If no gdl:cols occurrence is set, the default value is returned
 	public int getCols() throws InvalidGdlSchemaException {
 		Occurrence colsOcc = getNoneOrOneUnscopedOccurrence(GdlPsis.OccurrenceType.gdlCols);
-
+		
 		if(colsOcc != null){
 			try{
 				int value = Integer.valueOf(colsOcc.getValue());
@@ -212,26 +204,31 @@
 		if(styleClass == null){
 			DOM.setStyleAttribute(elem.getElement(), cssProperty, cssValue);
 		} else if(styleClass.equals(GdlPsis.Scope.gdlActive)){
-			for (Pair<TextArea, ActiveStyleHandler> item : this.activeStyleHandler) {
-				if(item.getFirst().equals(elem)){
+			/* TODO: implement
+			 if(item.getFirst().equals(elem)){
 					item.getSecond().addCssStyle(new Pair<String, String>(cssProperty, cssValue));
 					break;
 				}
 			}
+			*/
 		} else if(styleClass.equals(GdlPsis.Scope.gdlFocus)){
+			/* TODO: implement
 			for (Pair<TextArea, FocusStyleHandler> item : this.focusStyleHandler) {
 				if(item.getFirst().equals(elem)){
 					item.getSecond().addCssStyle(new Pair<String, String>(cssProperty, cssValue));
 					break;
 				}
 			}
+			*/
 		} else if (styleClass.equals(GdlPsis.Scope.gdlHover)){
+			/* TODO: implement
 			for (Pair<TextArea, HoverStyleHandler> item : this.hoverStyleHandler) {
 				if(item.getFirst().equals(elem)){
 					item.getSecond().addCssStyle(new Pair<String, String>(cssProperty, cssValue));
 					break;
 				}
 			}
+			*/
 		} else {
 			String values = GdlPsis.Scope.gdlActive + ", " + GdlPsis.Scope.gdlFocus + ", " + GdlPsis.Scope.gdlHover; 
 			throw new InvalidGdlSchemaException("GDL defines only the style classes " + values + ", but found " + styleClass);
@@ -243,9 +240,9 @@
 	// If gdl:readonly is set to true, this property is set to none, i.e. the passed value is ignored.
 	// IF gdl:readonly is set to false, this property is set to the passed argument.
 	public void setResize(ResizeValue value) throws InvalidGdlSchemaException, ExecutionException{
-		if(getReadonly() == true){
+		if(value == null || getReadonly() == true){
 			for (TextArea elem : this.textElements) this.setCssProperty(elem, null, "resize", "none");
-		} else {
+		} else{
 			for (TextArea elem : this.textElements) this.setCssProperty(elem, null, "resize", value.getCssValue());
 		}
 		
@@ -262,7 +259,7 @@
 	// sets and registers or unsets and deregisters a PasswordKeyPressHandler
 	// on this element's text area item.
 	public void setTextType(TextTypeValue value){
-		if(value == TextTypeValue.Password){
+		if(value != null && value == TextTypeValue.Password){
 			if(this.passwordKeyPressHandler == null) {
 				this.passwordKeyPressHandler = new ArrayList<PasswordKeyPressHandler>();
 				this.passwordKeyPressRegistrations = new ArrayList<HandlerRegistration>();
@@ -310,757 +307,383 @@
 	}
 	
 	
-	/*
-	// sets the background-color style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBackgroundColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "backgroundColor", value.getCssValue());
-	}
-	
-	
-	// sets the cursor style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setCursor(CursorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "cursor", value.getCssValue());
-	}
-	
-	
-	// sets the border-color property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-color property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderTopColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderTopColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-color property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderRightColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderRightColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-color property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderBottomColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderBottomColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-color property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderLeftColor(ColorValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderLeftColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderStyle(BorderStyleValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderTopStyle(BorderStyleValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderTopStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderRightStyle(BorderStyleValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderRightStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderBottomStyle(BorderStyleValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderBottomStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-style property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderLeftStyle(BorderStyleValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderLeftStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-width property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderWidth(AbsoluteNumValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-width property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderTopWidth(AbsoluteNumValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderTopWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-width property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderRightWidth(AbsoluteNumValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderRightWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-width property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderBottomWidth(AbsoluteNumValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderBottomWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-width property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderLeftWidth(AbsoluteNumValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderLeftWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-radius property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderRadius(NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-right-radius property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderTopRightRadius(NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderTopRightRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-right-radius property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderBottomRightRadius(NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderBottomRightRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-left-radius property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderBottomLeftRadius(NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderBottomLeftRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-left-radius property of this element's text items by using the GWT DOM class
-	@Override
-	public void setBorderTopLeftRadius(NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(styleClass, "boderTopLeftRadius", value.getCssValue());
-	}
-	
-	
-	// sets the margin property of this element's text items by using the GWT DOM class
-	public void setMargin(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "margin", value.getCssValue());
-	}
-	
-	
-	// sets the margin-top-color property of this element's text items by using the GWT DOM class
-	public void setMarginTop(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "marginTop", value.getCssValue());
-	}
-	
-	
-	// sets the margin-right-color property of this element's text items by using the GWT DOM class
-	public void setMarginRight(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "marginRight", value.getCssValue());
-	}
-	
-	
-	// sets the margin-bottom-color property of this element's text items by using the GWT DOM class
-	public void setMarginBottom(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "marginBottom", value.getCssValue());
-	}
-	
-	
-	// sets the margin-left-color property of this element's text items by using the GWT DOM class
-	public void setMarginLeft(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "marginLeft", value.getCssValue());
-	}
-	
-	
-	// sets the padding property of this element's text items by using the GWT DOM class
-	public void setPadding(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "padding", value.getCssValue());
-	}
-	
-	
-	// sets the padding-top property of this element's text items by using the GWT DOM class
-	public void setPaddingTop(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "paddingTop", value.getCssValue());
-	}
-	
-	
-	// sets the padding-right property of this element's text items by using the GWT DOM class
-	public void setPaddingRight(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "paddingRight", value.getCssValue());
-	}
-	
-	
-	// sets the padding-bottom property of this element's text items by using the GWT DOM class
-	public void setPaddingBottom(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "paddingBottom", value.getCssValue());
-	}
-	
-	
-	// sets the padding-left property of this element's text items by using the GWT DOM class
-	public void setPaddingLeft(TextArea elem, NumUnitValue value, String styleClass)throws InvalidGdlSchemaException, ExecutionException{
-		if(value != null) this.setCssProperty(elem, styleClass, "paddingLeft", value.getCssValue());
-	}
-	
-	
-	// sets the background-color property of this element's text items by using the GWT DOM class
-	public void setBackgroundColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "backgroundColor", value.getCssValue());
-	}
-	
-	
-	// sets the cursor property of this element's text items by using the GWT DOM class
-	public void setCursor(TextArea elem, CursorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "cursor", value.getCssValue());
-	}
-	
-	
-	// sets the color property of this element's text items by using the GWT DOM class
-	public void setColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "color", value.getCssValue());
-	}
-	
-	
-	// sets the border-color property of this element's text items by using the GWT DOM class
-	public void setBorderColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-color property of this element's text items by using the GWT DOM class
-	public void setBorderTopColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderTopColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-color property of this element's text items by using the GWT DOM class
-	public void setBorderRightColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderRightColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-color property of this element's text items by using the GWT DOM class
-	public void setBorderBottomColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderBottomColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-color property of this element's text items by using the GWT DOM class
-	public void setBorderLeftColor(TextArea elem, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderLeftColor", value.getCssValue());
-	}
-	
-	
-	// sets the border-style property of this element's text items by using the GWT DOM class
-	public void setBorderStyle(TextArea elem, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-style property of this element's text items by using the GWT DOM class
-	public void setBorderTopStyle(TextArea elem, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderTopStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-style property of this element's text items by using the GWT DOM class
-	public void setBorderRightStyle(TextArea elem, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderRightStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-style property of this element's text items by using the GWT DOM class
-	public void setBorderBottomStyle(TextArea elem, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderBottomStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-style property of this element's text items by using the GWT DOM class
-	public void setBorderLeftStyle(TextArea elem, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderLeftStyle", value.getCssValue());
-	}
-	
-	
-	// sets the border-width property of this element's text items by using the GWT DOM class
-	public void setBorderWidth(TextArea elem, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-width property of this element's text items by using the GWT DOM class
-	public void setBorderTopWidth(TextArea elem, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderTopWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-right-width property of this element's text items by using the GWT DOM class
-	public void setBorderRightWidth(TextArea elem, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderRightWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-width property of this element's text items by using the GWT DOM class
-	public void setBorderBottomWidth(TextArea elem, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderBottomWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-left-width property of this element's text items by using the GWT DOM class
-	public void setBorderLeftWidth(TextArea elem, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderLeftWidth", value.getCssValue());
-	}
-	
-	
-	// sets the border-radius property of this element's text items by using the GWT DOM class
-	public void setBorderRadius(TextArea elem, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-right-radius property of this element's text items by using the GWT DOM class
-	public void setBorderTopRightRadius(TextArea elem, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderTopRightRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-right-radius property of this element's text items by using the GWT DOM class
-	public void setBorderBottomRightRadius(TextArea elem, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderBottomRightRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-bottom-left-radius property of this element's text items by using the GWT DOM class
-	public void setBorderBottomLeftRadius(TextArea elem, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderBottomLeftRadius", value.getCssValue());
-	}
-	
-	
-	// sets the border-top-left-radius property of this element's text items by using the GWT DOM class
-	public void setBorderTopLeftRadius(TextArea elem, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "borderTopLeftRadius", value.getCssValue());
-	}
-	
-	
-	// sets the direction property of this element's text items by using the GWT DOM class
-	public void setDirection(TextArea elem, DirectionValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "direction", value.getCssValue());
-	}
-	
-	
-	// sets the text-align property of this element's text items by using the GWT DOM class
-	public void setTextAlign(TextArea elem, TextAlignValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "textAlign", value.getCssValue());
-	}
-	
-	
-	// sets the line-height property of this element's text items by using the GWT DOM class
-	public void setLineHeight(TextArea elem, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "lineHeight", value.getCssValue());
-	}
-	
-	
-	// sets the text-decoration property of this element's text items by using the GWT DOM class
-	public void setTextDecoration(TextArea elem, TextDecorationValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "textDecoration", value.getCssValue());
-	}
-	
-	
-	// sets the font-family property of this element's text items by using the GWT DOM class
-	public void setFontFamily(TextArea elem, String value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "fontFamily", value);
-	}
-	
-	
-	// sets the font-style property of this element's text items by using the GWT DOM class
-	public void setFontStyle(TextArea elem, FontStyle value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "fontStyle", value.getCssName());
-	}
-	
-	
-	// sets the font-size property of this element's text items by using the GWT DOM class
-	public void setFontSize(TextArea elem, PositiveNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "fontSize", value.getCssValue());
-	}
-	
-	
-	// sets the font-weight property of this element's text items by using the GWT DOM class
-	public void setFontWeight(TextArea elem, FontWeightValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "fontWeight", value.getCssValue());
-	}
-	
-	
-	// sets the letter-spacing property of this element's text items by using the GWT DOM class
-	public void setLetterSpacing(TextArea elem, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "letterSpacing", value.getCssValue());
-	}
-	
-	
-	// sets the word-spacing property of this element's text items by using the GWT DOM class
-	public void setWordSpacing(TextArea elem, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		if(value != null) this.setCssProperty(elem, styleClass, "wordSpacing", value.getCssValue());
-	}
-	*/
-	
-	
-	
 	@Override
 	public void setDirection(Widget widget, DirectionValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "direction", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "direction", value.getCssValue());
 	}
 
 
 	@Override
 	public void setTextAlign(Widget widget, TextAlignValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "textAlign", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "textAlign", value.getCssValue());
 	}
 
 
 	@Override
 	public void setLineHeight(Widget widget, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "lineHeight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "lineHeight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setTextDecoration(Widget widget, TextDecorationValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "textDecoration", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "textDecoration", value.getCssValue());
 	}
 
 
 	@Override
 	public void setColor(Widget widget, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "color", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "color", value.getCssValue());
 	}
 
 
 	@Override
 	public void setFontFamily(Widget widget, String value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "fontFamily", value);
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "fontFamily", value);
 	}
 
 
 	@Override
 	public void setFontStyle(Widget widget, FontStyle value, String styleClass)	throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "fontStyle", value.getCssName());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "fontStyle", value.getCssName());
 	}
 
 
 	@Override
 	public void setFontSize(Widget widget, PositiveNumUnitValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "fontSize", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "fontSize", value.getCssValue());
 	}
 
 
 	@Override
 	public void setFontWeight(Widget widget, FontWeightValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "fontWeight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "fontWeight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setLetterSpacing(Widget widget, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "letterSpacing", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "letterSpacing", value.getCssValue());
 	}
 
 
 	@Override
 	public void setWordSpacing(Widget widget, NormalNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "wordSpacing", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "wordSpacing", value.getCssValue());
 	}
 
 
 	@Override
 	public void setContentOrientation(Widget widget, ContentOrientationValue value) throws InvalidGdlSchemaException, ExecutionException {
 		String valueStr = "inline";
-		if(value == ContentOrientationValue.Vertical) valueStr = "block";
+		if(value != null && value == ContentOrientationValue.Vertical) valueStr = "block";
 		this.setCssProperty((TextArea)widget, null, "display", valueStr);
 	}
 
 
 	@Override
 	public void setMargin(Widget widget, NumUnitValue value, String styleClass)	throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "margin", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "margin", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMarginTop(Widget widget, NumUnitValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "marginTop", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "marginTop", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMarginRight(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "marginRight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "marginRight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMarginBottom(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "marginBottom", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "marginBottom", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMarginLeft(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "marginLeft", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "marginLeft", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderColor(Widget widget, ColorValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderColor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderTopColor(Widget widget, ColorValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderTopColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderTopColor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderRightColor(Widget widget, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderRightColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderRightColor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderBottomColor(Widget widget, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderBottomColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderBottomColor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderLeftColor(Widget widget, ColorValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderLeftColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderLeftColor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderStyle(Widget widget, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderStyle", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderStyle", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderTopStyle(Widget widget, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderTopStyle", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderTopStyle", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderRightStyle(Widget widget, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderRightStyle", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderRightStyle", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderBottomStyle(Widget widget, BorderStyleValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderBottomStyle", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderBottomStyle", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderLeftStyle(Widget widget, BorderStyleValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderLeftStyle", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderLeftStyle", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderWidth(Widget widget, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderTopWidth(Widget widget, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderTopWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderTopWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderRightWidth(Widget widget, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderRightWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderRightWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderBottomWidth(Widget widget, AbsoluteNumValue value,	String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderBottomWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderBottomWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderLeftWidth(Widget widget, AbsoluteNumValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderLeftWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderLeftWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderRadius(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException,	ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderRadius", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderRadius", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderTopRightRadius(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderTopRightRadius", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderTopRightRadius", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderBottomRightRadius(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderBottomRightRadius", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderBottomRightRadius", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderBottomLeftRadius(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderBottomLeftRadius", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderBottomLeftRadius", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBorderTopLeftRadius(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "borderTopLeftRadius", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "borderTopLeftRadius", value.getCssValue());
 	}
 
 
 	@Override
 	public void setPadding(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "padding", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "padding", value.getCssValue());
 	}
 
 
 	@Override
 	public void setPaddingTop(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "paddingTop", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "paddingTop", value.getCssValue());
 	}
 
 
 	@Override
 	public void setPaddingRight(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "paddingRight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "paddingRight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setPaddingBottom(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "paddingBottom", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "paddingBottom", value.getCssValue());
 	}
 
 
 	@Override
 	public void setPaddingLeft(Widget widget, NumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "paddingLeft", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "paddingLeft", value.getCssValue());
 	}
 
 
 	@Override
 	public void setWidth(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "width", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "width", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMinWidth(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "minWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "minWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMaxWidth(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "maxWidth", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "maxWidth", value.getCssValue());
 	}
 
 
 	@Override
 	public void setHeight(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "height", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "height", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMinHeight(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "minHeight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "minHeight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setMaxHeight(Widget widget, AutoNumUnitValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "maxHeight", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "maxHeight", value.getCssValue());
 	}
 
 
 	@Override
 	public void setCursor(Widget widget, CursorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "cursor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "cursor", value.getCssValue());
 	}
 
 
 	@Override
 	public void setBackgroundColor(Widget widget, ColorValue value, String styleClass) throws InvalidGdlSchemaException, ExecutionException {
-		this.setCssProperty((TextArea)widget, styleClass, "backgroundColor", value.getCssValue());
+		if(value != null) this.setCssProperty((TextArea)widget, styleClass, "backgroundColor", value.getCssValue());
 	}
 
 	
-	// calls the super class's setGdlStyle and additionally calls local statements
-	// to fulfill the style settings
+	public void setGdlStyle(Widget widget) throws InvalidGdlSchemaException, ExecutionException {
+		String[] styleClasses = new String[]{null, GdlPsis.Scope.gdlActive, GdlPsis.Scope.gdlFocus, GdlPsis.Scope.gdlHover};
+		for (String styleClass : styleClasses) {
+			this.setMargin(widget, this.getMargin(styleClass), styleClass);
+			this.setMarginTop(widget, this.getMarginTop(styleClass), styleClass);
+			this.setMarginRight(widget, this.getMarginRight(styleClass), styleClass);
+			this.setMarginBottom(widget, this.getMarginBottom(styleClass), styleClass);
+			this.setMarginLeft(widget, this.getMarginLeft(styleClass), styleClass);
+		}
+		
+		// TODO: implement
+		// border-color
+		// border-top-color
+		// border-right-color
+		// border-bottom-color
+		// border-left-color
+		// border-style
+		// border-top-style
+		// border-right-style
+		// border-bottom-style
+		// border-left-style
+		// border-width
+		// border-top-width
+		// border-right-width
+		// border-bottom-width
+		// border-left-width
+		// border-radius
+		// border-top-right-radius
+		// border-top-bottom-radius
+		// border-bottom-left-radius
+		// border-top-left-radius
+		// cursor
+		// width
+		// max-widht
+		// min-width
+		// height
+		// max-height
+		// min-height
+		// content-orientation
+		// background-color
+		// direction
+		// text-align
+		// line-height
+		// text-decoration
+		// color
+		// font-family
+		// font-style
+		// font-size
+		// font-weight
+		// letter-spacing
+		// word-spacing
+		// text-type
+		// readonly
+		// rows
+		// cols
+		// resize
+	}
+	
+	
+	// calls the super applies the GdlStyle for eaver TextAre item of this instance
 	@Override
 	protected void setGdlStyle() throws InvalidGdlSchemaException, ExecutionException{
-		// TODO: implement
-		
-		/*
-		
-		// create all handlers for elem
-		ActiveStyleHandler asHandler = new ActiveStyleHandler();
-		this.activeStyleHandler.add(new Pair<TextArea, GdlVisibleObject.ActiveStyleHandler>(elem, asHandler));
-		FocusStyleHandler fsHandler = new FocusStyleHandler();
-		this.focusStyleHandler.add(new Pair<TextArea, GdlVisibleObject.FocusStyleHandler>(elem, fsHandler));
-		HoverStyleHandler hsHandler = new HoverStyleHandler();
-		this.hoverStyleHandler.add(new Pair<TextArea, GdlVisibleObject.HoverStyleHandler>(elem, hsHandler));
-		
-		
-		// all attributes for the actual text element
-		this.setReadonly(this.getReadonly());
-		this.setResize(this.getResize());
-		this.setTextType(this.getTextType());
-		this.setRows(this.getRows());
-		this.setCols(this.getCols());
+		if(this.textElements != null){
+			for (TextArea item : this.textElements) {
+				this.setGdlStyle((Widget)item);
+			}
+		}
 		
+		this.adjustSize();
+	}
 	
-		
-		// register the corresponding handlers for each text element
-		elem.addMouseDownHandler(asHandler);
-		elem.addMouseUpHandler(asHandler);
-		elem.addFocusHandler(fsHandler);
-		elem.addBlurHandler(fsHandler);
-		elem.addMouseOutHandler(hsHandler);
-		elem.addMouseOverHandler(hsHandler);
-		*/
+	
+	@Override
+	protected void adjustSize(){
+		// TODO: implement => width, height, overflow of the mainpanel
 	}
 	
 	

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlCreatorAssociationView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlCreatorAssociationView.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlCreatorAssociationView.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -373,4 +373,10 @@
 		// TODO Auto-generated method stub
 		
 	}
+
+	
+	@Override
+	protected void adjustSize() {
+		// ignore this method, since all instances of gdl:View have a static size
+	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlDefaultCreatorTopicView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlDefaultCreatorTopicView.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlDefaultCreatorTopicView.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -409,4 +409,10 @@
 		// TODO Auto-generated method stub
 		
 	}
+	
+	
+	@Override
+	protected void adjustSize() {
+		// ignore this method, since all instances of gdl:View have a static size
+	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlEditorAssociationView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlEditorAssociationView.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlEditorAssociationView.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -411,4 +411,10 @@
 		// TODO Auto-generated method stub
 		
 	}
+	
+	
+	@Override
+	protected void adjustSize() {
+		// ignore this method, since all instances of gdl:View have a static size
+	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialCreatorTopicView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialCreatorTopicView.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialCreatorTopicView.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -412,4 +412,10 @@
 		// TODO Auto-generated method stub
 		
 	}
+	
+	
+	@Override
+	protected void adjustSize() {
+		// ignore this method, since all instances of gdl:View have a static size
+	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialEditorTopicView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialEditorTopicView.java	Wed Jul  6 01:51:53 2011	(r565)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlSpecialEditorTopicView.java	Wed Jul  6 05:16:54 2011	(r566)
@@ -414,4 +414,10 @@
 		// TODO Auto-generated method stub
 		
 	}
+	
+	
+	@Override
+	protected void adjustSize() {
+		// ignore this method, since all instances of gdl:View have a static size
+	}
 }




More information about the Isidorus-cvs mailing list