branch develop updated (d79fd88 -> 20bf658)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository tutti. See https://gitlab.nuiton.org/codelutin/tutti.git from d79fd88 Fixes #8116 Merge branch 'feature/8116' into develop new 20bf658 Java 8 party \o/ The 1 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 20bf658c7e671aca787f31531ab930f73c6be26a Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Mar 16 18:35:38 2016 +0100 Java 8 party \o/ Summary of changes: .../frequency/SpeciesFrequencyUIHandler.java | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) -- 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 develop in repository tutti. See https://gitlab.nuiton.org/codelutin/tutti.git commit 20bf658c7e671aca787f31531ab930f73c6be26a Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Mar 16 18:35:38 2016 +0100 Java 8 party \o/ --- .../frequency/SpeciesFrequencyUIHandler.java | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIHandler.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIHandler.java index c2123c2..c1f3094 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIHandler.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIHandler.java @@ -97,7 +97,6 @@ import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JSplitPane; -import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; @@ -563,7 +562,7 @@ public class SpeciesFrequencyUIHandler extends AbstractTuttiTableUIHandler<Speci // si on etait en mode taille et que l'utilisateur avait saisi des tailles if (oldCopyMode == CopyIndividualObservationMode.SIZE) { rowsWithUserData = model.getRows().stream() - .filter(row -> row.withWeight()) + .filter(SpeciesFrequencyRowModel::withWeight) .count(); } else { @@ -1093,19 +1092,16 @@ public class SpeciesFrequencyUIHandler extends AbstractTuttiTableUIHandler<Speci { // RTP computed Weight Color computedDataColor = getConfig().getColorComputedWeights(); - TableCellRenderer renderer = new TableCellRenderer() { - @Override - public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { - Component result = table.getDefaultRenderer(Number.class).getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); - if (result instanceof JLabel) { - JLabel jLabel = (JLabel) result; - jLabel.setHorizontalTextPosition(SwingConstants.RIGHT); - jLabel.setForeground(computedDataColor); - jLabel.setFont(jLabel.getFont().deriveFont(Font.ITALIC)); + TableCellRenderer renderer = (table1, value, isSelected, hasFocus, row, column) -> { + Component result = table1.getDefaultRenderer(Number.class).getTableCellRendererComponent(table1, value, isSelected, hasFocus, row, column); + if (result instanceof JLabel) { + JLabel jLabel = (JLabel) result; + jLabel.setHorizontalTextPosition(SwingConstants.RIGHT); + jLabel.setForeground(computedDataColor); + jLabel.setFont(jLabel.getFont().deriveFont(Font.ITALIC)); - } - return result; } + return result; }; addColumnToModel(columnModel, -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm