r1667 - in isis-fish/trunk: . src/main/java/fr/ifremer/isisfish/ui/input
Author: tchemit Date: 2008-12-12 20:41:08 +0000 (Fri, 12 Dec 2008) New Revision: 1667 Modified: isis-fish/trunk/pom.xml isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx Log: utilisation jaxx en snapshot pour avoir l'amelioration du rendu des nodes mais c'est pas encore ?\195?\167a. ajout de TODO dans CellUI pour utiliser des PCS et le binding jaxx Modified: isis-fish/trunk/pom.xml =================================================================== --- isis-fish/trunk/pom.xml 2008-12-12 19:51:39 UTC (rev 1666) +++ isis-fish/trunk/pom.xml 2008-12-12 20:41:08 UTC (rev 1667) @@ -306,7 +306,7 @@ <!--labs.project>isis-fish</labs.project--> <!-- jaxx version --> - <jaxx.version>0.7</jaxx.version> + <jaxx.version>0.8-SNAPSHOT</jaxx.version> <!-- generator version --> <generator.version>0.62</generator.version> Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx =================================================================== --- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx 2008-12-12 19:51:39 UTC (rev 1666) +++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/CellUI.jaxx 2008-12-12 20:41:08 UTC (rev 1667) @@ -113,9 +113,9 @@ getParentContainer(InputUI.class).setTreeSelection("$root/$zones"); } protected void valueChanged(boolean b){ - changed=b; - save.setEnabled(b); - cancel.setEnabled(b); + //TODO remove method valueChanged + // must use the setter to fire property changes, and make possible bindings + setChanged(b); } protected void setInfoText(String txt){ WelcomePanelUI root = getParentContainer(WelcomePanelUI.class); @@ -125,21 +125,25 @@ Cell c = (Cell)fieldCell.getSelectedItem(); getContextValue(InputAction.class).setValue(c); getParentContainer(InputUI.class).setTreeSelection("$root/$cells/"+c.getTopiaId()); + //fixme no :) as you select a new node, you should not do anything more on ui ? refresh(); valueChanged(true); } protected void nameChanged(){ getContextValue(InputAction.class).getCell().setName(fieldCellName.getText()); + //fixme no :) use a propertyChangeListener on the bean refresh(); valueChanged(true); } protected void cellLandChanged(){ getContextValue(InputAction.class).getCell().setLand(fieldCellLand.isSelected()); + //fixme no :) use a propertyChangeListener on the bean refresh(); valueChanged(true); } protected void commentChanged(){ getContextValue(InputAction.class).getCell().setComment(fieldCellComment.getText()); + //fixme no :) use a propertyChangeListener on the bean refresh(); valueChanged(true); }
participants (1)
-
tchemit@users.labs.libre-entreprise.org