branch feature/7211 created (now bb401c1)
This is an automated email from the git hooks/post-receive script. New change to branch feature/7211 in repository tutti. See http://git.codelutin.com/tutti.git at bb401c1 à la crétion d'un lot ou à la catégorisation sur le benthos, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (fixes #7211) This branch includes the following new commits: new 6331aa1 à la crétion d'un lot ou à la catégorisation sur les especes, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (refs #7211) new bb401c1 à la crétion d'un lot ou à la catégorisation sur le benthos, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (fixes #7211) The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit bb401c130f5c64887a1fd474c237e4388ba560bd Author: Kevin Morin <morin@codelutin.com> Date: Mon Dec 21 17:52:25 2015 +0100 à la crétion d'un lot ou à la catégorisation sur le benthos, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (fixes #7211) commit 6331aa16f288d0d1904076b09ad32dba43f496ab Author: Kevin Morin <morin@codelutin.com> Date: Mon Dec 21 17:49:33 2015 +0100 à la crétion d'un lot ou à la catégorisation sur les especes, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (refs #7211) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7211 in repository tutti. See http://git.codelutin.com/tutti.git commit 6331aa16f288d0d1904076b09ad32dba43f496ab Author: Kevin Morin <morin@codelutin.com> Date: Mon Dec 21 17:49:33 2015 +0100 à la crétion d'un lot ou à la catégorisation sur les especes, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (refs #7211) --- .../catches/species/create/CreateSpeciesBatchUIHandler.java | 8 ++++++++ .../catches/species/split/SplitSpeciesBatchUIHandler.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/create/CreateSpeciesBatchUIHandler.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/create/CreateSpeciesBatchUIHandler.java index ac4f29b..5dd2ed0 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/create/CreateSpeciesBatchUIHandler.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/create/CreateSpeciesBatchUIHandler.java @@ -478,6 +478,14 @@ public class CreateSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<Spl } SplitSpeciesBatchRowModel newRow = tableModel.createNewRow(); newRow.setCategoryValue(qualitativeValue); + newRow.addPropertyChangeListener(SplitSpeciesBatchRowModel.PROPERTY_WEIGHT, new PropertyChangeListener() { + @Override + public void propertyChange(PropertyChangeEvent evt) { + if (evt.getNewValue() != null) { + ((SplitSpeciesBatchRowModel) evt.getSource()).setSelected(true); + } + } + }); rows.add(newRow); } } diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/SplitSpeciesBatchUIHandler.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/SplitSpeciesBatchUIHandler.java index f6ab59d..dffe3ce 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/SplitSpeciesBatchUIHandler.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/SplitSpeciesBatchUIHandler.java @@ -462,6 +462,14 @@ public class SplitSpeciesBatchUIHandler extends AbstractTuttiTableUIHandler<Spli } SplitSpeciesBatchRowModel newRow = tableModel.createNewRow(); newRow.setCategoryValue(qualitativeValue); + newRow.addPropertyChangeListener(SplitSpeciesBatchRowModel.PROPERTY_WEIGHT, new PropertyChangeListener() { + @Override + public void propertyChange(PropertyChangeEvent evt) { + if (evt.getNewValue() != null) { + ((SplitSpeciesBatchRowModel) evt.getSource()).setSelected(true); + } + } + }); rows.add(newRow); } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7211 in repository tutti. See http://git.codelutin.com/tutti.git commit bb401c130f5c64887a1fd474c237e4388ba560bd Author: Kevin Morin <morin@codelutin.com> Date: Mon Dec 21 17:52:25 2015 +0100 à la crétion d'un lot ou à la catégorisation sur le benthos, quand l'utilisateur saisit un poids sur une catégorie, automatiquement cocher la catégorie (fixes #7211) --- .../catches/benthos/create/CreateBenthosBatchUIHandler.java | 10 +++++++++- .../catches/benthos/split/SplitBenthosBatchUIHandler.java | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/create/CreateBenthosBatchUIHandler.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/create/CreateBenthosBatchUIHandler.java index 744865d..02a5ec5 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/create/CreateBenthosBatchUIHandler.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/create/CreateBenthosBatchUIHandler.java @@ -47,7 +47,7 @@ import org.apache.commons.logging.LogFactory; import org.jdesktop.swingx.JXTable; import org.jdesktop.swingx.table.DefaultTableColumnModelExt; -import javax.swing.JComponent; +import javax.swing.*; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.List; @@ -478,6 +478,14 @@ public class CreateBenthosBatchUIHandler extends AbstractTuttiTableUIHandler<Spl } SplitBenthosBatchRowModel newRow = tableModel.createNewRow(); newRow.setCategoryValue(qualitativeValue); + newRow.addPropertyChangeListener(SplitBenthosBatchRowModel.PROPERTY_WEIGHT, new PropertyChangeListener() { + @Override + public void propertyChange(PropertyChangeEvent evt) { + if (evt.getNewValue() != null) { + ((SplitBenthosBatchRowModel) evt.getSource()).setSelected(true); + } + } + }); rows.add(newRow); } } diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/split/SplitBenthosBatchUIHandler.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/split/SplitBenthosBatchUIHandler.java index 625aae1..e8554f5 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/split/SplitBenthosBatchUIHandler.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/benthos/split/SplitBenthosBatchUIHandler.java @@ -458,6 +458,14 @@ public class SplitBenthosBatchUIHandler extends AbstractTuttiTableUIHandler<Spli } SplitBenthosBatchRowModel newRow = tableModel.createNewRow(); newRow.setCategoryValue(qualitativeValue); + newRow.addPropertyChangeListener(SplitBenthosBatchRowModel.PROPERTY_WEIGHT, new PropertyChangeListener() { + @Override + public void propertyChange(PropertyChangeEvent evt) { + if (evt.getNewValue() != null) { + ((SplitBenthosBatchRowModel) evt.getSource()).setSelected(true); + } + } + }); rows.add(newRow); } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm