[isidorus-cvs] r798 - branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view

lgiessmann at common-lisp.net lgiessmann at common-lisp.net
Mon Aug 29 08:39:52 UTC 2011


Author: lgiessmann
Date: Mon Aug 29 01:39:52 2011
New Revision: 798

Log:
gdl-frontend: Widgets: implemented the constructor and creation of GdlCreatorAssociationView

Modified:
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlCreatorAssociationView.java
   branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlView.java

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlCreatorAssociationView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlCreatorAssociationView.java	Mon Aug 29 01:28:52 2011	(r797)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlCreatorAssociationView.java	Mon Aug 29 01:39:52 2011	(r798)
@@ -10,6 +10,10 @@
 
 	public GdlCreatorAssociationView(Topic tmRepresentative, Topic  receivedData, GdlVisibleObject gdlParent) throws InvalidGdlSchemaException, ExecutionException {
 		super(tmRepresentative, receivedData, gdlParent);
-		// TODO Auto-generated constructor stub
+		
+		
+		int minValues = this.getCardMin() == 0 ? 1 : this.getCardMax();
+		for(int i = 0; i != minValues; ++i)
+			this.addToContainerPanel(new AssociationItem(this.tmRepresentative, null, this));
 	}
 }

Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlView.java	Mon Aug 29 01:28:52 2011	(r797)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/view/GdlView.java	Mon Aug 29 01:39:52 2011	(r798)
@@ -55,6 +55,7 @@
 	
 	// content orientation has no effect on a view
 	@Override
+	@Deprecated
 	public void setContentOrientation(ContentOrientationValue value) throws InvalidGdlSchemaException, ExecutionException {
 		// do nothing, no table is set for organizing content widgets, since a view does not organize
 		// its content in this manner




More information about the Isidorus-cvs mailing list