Index: topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.4 topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.5 --- topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.4 Thu Sep 16 15:55:03 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java Fri Sep 17 15:47:34 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.4 $ +* @version $Revision: 1.5 $ * -* Mise a jour: $Date: 2004/09/16 15:55:03 $ +* Mise a jour: $Date: 2004/09/17 15:47:34 $ * par : $Author: mazelier $ */ @@ -101,7 +101,7 @@ init(); } - public void setEntity(<%=capitalizeName(clazz)%> entity) throws java.io.IOException, org.codelutin.topia.TopiaException { + public void setEntity(<%=capitalizeName(clazz)%> entity) throws java.io.IOException, org.codelutin.topia.TopiaException, java.text.ParseException { this.entity = entity; load(); } @@ -130,7 +130,7 @@ /*{ } - public void on_delete()throws org.codelutin.topia.TopiaException, java.io.IOException { + public void on_delete()throws org.codelutin.topia.TopiaException, java.io.IOException, java.text.ParseException { System.out.println("on_delete"); if(entity != null){ entity.remove(); @@ -140,7 +140,7 @@ } } - public void on_cancel() throws java.io.IOException, org.codelutin.topia.TopiaException{ + public void on_cancel() throws java.io.IOException, org.codelutin.topia.TopiaException, java.text.ParseException{ System.out.println("on_cancel"); load(); } @@ -151,7 +151,7 @@ } - protected void load() throws java.io.IOException, org.codelutin.topia.TopiaException{ + protected void load() throws java.io.IOException, org.codelutin.topia.TopiaException, java.text.ParseException{ //inverse du save }*/ for(Iterator i=clazz.getSuperclasses().iterator(); i.hasNext();) { @@ -196,7 +196,8 @@ att.getType().equalsIgnoreCase("int") || att.getType().equalsIgnoreCase("double") || att.getType().equalsIgnoreCase("byte") || - att.getType().equalsIgnoreCase("char")){ + att.getType().equalsIgnoreCase("char") || + att.getType().equalsIgnoreCase("date")){ /*{ get<%=capitalizeName(clazz)%>AttributesPanelPanel().get<%=capitalizeName(parent)%>Attributes().get<%=capitalizeName(att)%>Editor().setText(""+entity.get<%=capitalizeName(att)%>()); }*/