This is an automated email from the git hooks/post-receive script. New commit to branch feature/ReplaceComboByList in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 369d034f7a24ed7829195585d17c69756dfc517c Author: Julien Ruchaud <julien.ruchaud@debux.org> Date: Wed Jun 8 15:47:07 2016 +0200 Add count --- .../com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.jaxx | 3 +++ .../faxtomail/ui/swing/content/demande/DemandeUIHandler.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.jaxx b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.jaxx index 1c7883d..54d8d90 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.jaxx +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUI.jaxx @@ -137,6 +137,9 @@ constructorParams='this' genericType="Client"/> </cell> + <cell> + <JLabel id='countClient' text='(0)'/> + </cell> <!--<cell>--> <!--<JLabel id='brandLabel'/>--> <!--</cell>--> diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java index f670119..008310c 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIHandler.java @@ -449,12 +449,12 @@ public class DemandeUIHandler extends AbstractFaxToMailUIHandler<DemandeUIModel, final JComboBox comboBox = clientComboBox.getCombobox(); final JTextComponent editorComponent = (JTextComponent) comboBox.getEditor().getEditorComponent(); + final JLabel countClient = ui.getCountClient(); FaxToMailServiceContext serviceContext = getContext().newServiceContext(); final ClientService clientService = serviceContext.getClientService(); final String company = clientService.getCompany(folder); - editorComponent.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { @@ -481,6 +481,8 @@ public class DemandeUIHandler extends AbstractFaxToMailUIHandler<DemandeUIModel, if (count == 1) { comboBox.setSelectedIndex(0); } + + countClient.setText("(" + count + ")"); } } }); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.