From chatellier@users.labs.libre-entreprise.org Mon Jun 15 00:26:14 2026
From: chatellier@users.labs.libre-entreprise.org
To: isis-fish-commits@list.isis-fish.org
Subject: [Isis-fish-commits] r2398 - in isis-fish/trunk/src/main:
java/fr/ifremer/isisfish/ui/input
java/fr/ifremer/isisfish/ui/input/setofvessels resources/i18n
Date: Wed, 17 Jun 2009 15:00:13 +0200
Message-ID: <20090617130013.8EF37461CC4@labs.libre-entreprise.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6296313454001295225=="
--===============6296313454001295225==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Author: chatellier
Date: 2009-06-17 13:00:12 +0000 (Wed, 17 Jun 2009)
New Revision: 2398
Added:
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescripti=
onParametersUI.jaxx
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsBas=
icsUI.jaxx
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/Ef=
fortDescriptionListModel.java
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/Ef=
fortDescriptionListRenderer.java
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/Me=
tierListModel.java
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/Me=
tierListRenderer.java
Removed:
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsTab=
sUI.jaxx
Modified:
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescripti=
onUI.jaxx
isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsUI.=
jaxx
isis-fish/trunk/src/main/resources/i18n/isis-fish-en_GB.properties
isis-fish/trunk/src/main/resources/i18n/isis-fish-fr_FR.properties
Log:
#1891 : UI de flottille/m?\195?\169tiers pratiqu?\195?\169s
Added: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescr=
iptionParametersUI.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescript=
ionParametersUI.jaxx (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescript=
ionParametersUI.jaxx 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,284 @@
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+
Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDe=
scriptionUI.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescript=
ionUI.jaxx 2009-06-17 08:47:48 UTC (rev 2397)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/EffortDescript=
ionUI.jaxx 2009-06-17 13:00:12 UTC (rev 2398)
@@ -22,70 +22,42 @@
=20
-
-
-
-
+
|
-
+
|
-
-
-
- |
-
- |
-
-
- |
-
-
-
- |
-
-
+
+
|
-
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
+
+
|
| |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
Copied: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesse=
lsBasicsUI.jaxx (from rev 2393, isis-fish/trunk/src/main/java/fr/ifremer/isis=
fish/ui/input/SetOfVesselsTabsUI.jaxx)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsBa=
sicsUI.jaxx (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsBa=
sicsUI.jaxx 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+ |
+
+
+ |
+
+
+ |
+
+
+
Deleted: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVess=
elsTabsUI.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsTa=
bsUI.jaxx 2009-06-17 08:47:48 UTC (rev 2397)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsTa=
bsUI.jaxx 2009-06-17 13:00:12 UTC (rev 2398)
@@ -1,183 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
- |
-
-
- |
-
-
- |
-
- |
-
-
- |
-
-
- |
-
- |
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
- |
-
-
- |
-
- |
-
-
-
- |
-
-
- |
-
-
-
-
-
- |
-
- |
-
-
- |
-
-
- |
-
- |
-
-
- |
-
-
- |
-
-
-
Modified: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVes=
selsUI.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsUI=
.jaxx 2009-06-17 08:47:48 UTC (rev 2397)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/SetOfVesselsUI=
.jaxx 2009-06-17 13:00:12 UTC (rev 2398)
@@ -31,7 +31,7 @@
// (depends on sensitivity can't be done on constructor)
installChangeListener(setOfVesselsTab);
=20
- getVerifier().addCurrentPanel(setOfVesselsTabsUI, effortDescriptionUI);
+ getVerifier().addCurrentPanel(setOfVesselsBasicsUI, effortDescriptionUI,=
effortParametersUI);
}
=20
@Override
@@ -41,13 +41,16 @@
}
]]>
-
+
-
+
+
+
+
Added: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessel=
s/EffortDescriptionListModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/E=
ffortDescriptionListModel.java (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/E=
ffortDescriptionListModel.java 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,100 @@
+/* *##%
+ * Copyright (C) 2009 Code Lutin
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US=
A.
+ *##%*/
+
+package fr.ifremer.isisfish.ui.input.setofvessels;
+
+import java.util.List;
+
+import javax.swing.DefaultListModel;
+
+import fr.ifremer.isisfish.entities.EffortDescription;
+
+/**
+ * Model pour la liste des metiers de l'interface SetOfVessels.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *=20
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class EffortDescriptionListModel extends DefaultListModel {
+
+ /** serialVersionUID. */
+ private static final long serialVersionUID =3D -2715181950778932871L;
+ =20
+ /** Listes des EffortDescription */
+ protected List effortDescriptions;
+
+ /**
+ * Empty constructor.
+ */
+ public EffortDescriptionListModel() {
+ this(null);
+ }
+
+ /**
+ * Constructor with effortDescriptions list.
+ *=20
+ * @param effortDescriptions liste des effortDescriptions
+ */
+ public EffortDescriptionListModel(List effortDescript=
ions) {
+ super();
+ setEffortDescriptions(effortDescriptions);
+ }
+
+ /**
+ * Get effortDescriptions lists.
+ *=20
+ * @return the effortDescriptions
+ */
+ public List getEffortDescriptions() {
+ return effortDescriptions;
+ }
+
+ /**
+ * Set effortDescriptions list.
+ *=20
+ * @param effortDescriptions the effortDescriptions list to set
+ */
+ public void setEffortDescriptions(List effortDescript=
ions) {
+ this.effortDescriptions =3D effortDescriptions;
+ fireContentsChanged(this, 0, getSize());
+ }
+
+ /*
+ * @see javax.swing.ListModel#getElementAt(int)
+ */
+ @Override
+ public Object getElementAt(int index) {
+ return effortDescriptions.get(index);
+ }
+
+ /*
+ * @see javax.swing.ListModel#getSize()
+ */
+ @Override
+ public int getSize() {
+ int size =3D 0;
+
+ if (effortDescriptions !=3D null) {
+ size =3D effortDescriptions.size();
+ }
+ return size;
+ }
+}
Property changes on: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/inp=
ut/setofvessels/EffortDescriptionListModel.java
___________________________________________________________________
Name: svn:keywords
+ Date Author Revision
Added: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessel=
s/EffortDescriptionListRenderer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/E=
ffortDescriptionListRenderer.java (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/E=
ffortDescriptionListRenderer.java 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,60 @@
+/* *##%
+ * Copyright (C) 2009 Code Lutin
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US=
A.
+ *##%*/
+
+package fr.ifremer.isisfish.ui.input.setofvessels;
+
+import java.awt.Component;
+
+import javax.swing.DefaultListCellRenderer;
+import javax.swing.JLabel;
+import javax.swing.JList;
+
+import fr.ifremer.isisfish.entities.EffortDescription;
+
+/**
+ * Renderer pour liste des {@link EffortDescription}.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *=20
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class EffortDescriptionListRenderer extends DefaultListCellRenderer {
+
+ /** serialVersionUID. */
+ private static final long serialVersionUID =3D 1113492654780402245L;
+
+ /*
+ * @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.=
swing.JList, java.lang.Object, int, boolean, boolean)
+ */
+ @Override
+ public Component getListCellRendererComponent(JList list, Object value,
+ int index, boolean isSelected, boolean cellHasFocus) {
+
+ // this must be used to have alterned highlight rows and default
+ // selection color
+ JLabel c =3D (JLabel) super.getListCellRendererComponent(list, value,
+ index, isSelected, cellHasFocus);
+
+ EffortDescription effort =3D (EffortDescription) value;
+ c.setText(effort.getPossibleMetiers().getName());
+
+ return c;
+ }
+}
Property changes on: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/inp=
ut/setofvessels/EffortDescriptionListRenderer.java
___________________________________________________________________
Name: svn:keywords
+ Date Author Revision
Added: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessel=
s/MetierListModel.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/M=
etierListModel.java (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/M=
etierListModel.java 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,100 @@
+/* *##%
+ * Copyright (C) 2009 Code Lutin
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US=
A.
+ *##%*/
+
+package fr.ifremer.isisfish.ui.input.setofvessels;
+
+import java.util.List;
+
+import javax.swing.DefaultListModel;
+
+import fr.ifremer.isisfish.entities.Metier;
+
+/**
+ * Model pour la liste des metiers de l'interface SetOfVessels.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *=20
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class MetierListModel extends DefaultListModel {
+
+ /** serialVersionUID. */
+ private static final long serialVersionUID =3D -2715181950778932871L;
+ =20
+ /** Listes des metiers */
+ protected List metiers;
+
+ /**
+ * Empty constructor.
+ */
+ public MetierListModel() {
+ this(null);
+ }
+
+ /**
+ * Constructor with metiers list.
+ *=20
+ * @param metiers liste des metiers
+ */
+ public MetierListModel(List metiers) {
+ super();
+ setMetiers(metiers);
+ }
+
+ /**
+ * Get metiers list.
+ *=20
+ * @return the metiers list
+ */
+ public List getMetiers() {
+ return metiers;
+ }
+
+ /**
+ * Set metiers list.
+ *=20
+ * @param metiers the metiers list to set
+ */
+ public void setMetiers(List metiers) {
+ this.metiers =3D metiers;
+ fireContentsChanged(this, 0, getSize());
+ }
+
+ /*
+ * @see javax.swing.ListModel#getElementAt(int)
+ */
+ @Override
+ public Object getElementAt(int index) {
+ return metiers.get(index);
+ }
+
+ /*
+ * @see javax.swing.ListModel#getSize()
+ */
+ @Override
+ public int getSize() {
+ int size =3D 0;
+
+ if (metiers !=3D null) {
+ size =3D metiers.size();
+ }
+ return size;
+ }
+}
Property changes on: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/inp=
ut/setofvessels/MetierListModel.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Revision
Added: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessel=
s/MetierListRenderer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/M=
etierListRenderer.java (rev 0)
+++ isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/input/setofvessels/M=
etierListRenderer.java 2009-06-17 13:00:12 UTC (rev 2398)
@@ -0,0 +1,60 @@
+/* *##%
+ * Copyright (C) 2009 Code Lutin
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US=
A.
+ *##%*/
+
+package fr.ifremer.isisfish.ui.input.setofvessels;
+
+import java.awt.Component;
+
+import javax.swing.DefaultListCellRenderer;
+import javax.swing.JLabel;
+import javax.swing.JList;
+
+import fr.ifremer.isisfish.entities.Metier;
+
+/**
+ * Renderer pour liste des metiers.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *=20
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class MetierListRenderer extends DefaultListCellRenderer {
+
+ /** serialVersionUID. */
+ private static final long serialVersionUID =3D 1113492654780402245L;
+
+ /*
+ * @see javax.swing.ListCellRenderer#getListCellRendererComponent(javax.=
swing.JList, java.lang.Object, int, boolean, boolean)
+ */
+ @Override
+ public Component getListCellRendererComponent(JList list, Object value,
+ int index, boolean isSelected, boolean cellHasFocus) {
+
+ // this must be used to have alterned highlight rows and default
+ // selection color
+ JLabel c =3D (JLabel) super.getListCellRendererComponent(list, value,
+ index, isSelected, cellHasFocus);
+
+ Metier metier =3D (Metier) value;
+ c.setText(metier.getName());
+
+ return c;
+ }
+}
Property changes on: isis-fish/trunk/src/main/java/fr/ifremer/isisfish/ui/inp=
ut/setofvessels/MetierListRenderer.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Revision
Modified: isis-fish/trunk/src/main/resources/i18n/isis-fish-en_GB.properties
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/resources/i18n/isis-fish-en_GB.properties 2009-0=
6-17 08:47:48 UTC (rev 2397)
+++ isis-fish/trunk/src/main/resources/i18n/isis-fish-en_GB.properties 2009-0=
6-17 13:00:12 UTC (rev 2398)
@@ -218,19 +218,23 @@
isisfish.dataResult.scrolledwindow2=3DdefaultToolTip-fr.ifremer.resultat.Dat=
aResult.scrolledwindow2
isisfish.dataResult.table2=3DdefaultToolTip-fr.ifremer.resultat.DataResult.t=
able2
isisfish.date.toString=3D%1$s %2$s
-isisfish.effortDescription.crewFoodCost=3Disisfish.effortDescription.crewFoo=
dCost
-isisfish.effortDescription.crewShareRate=3Disisfish.effortDescription.crewSh=
areRate
-isisfish.effortDescription.crewSize=3Disisfish.effortDescription.crewSize
-isisfish.effortDescription.fishingOperation=3Disisfish.effortDescription.fis=
hingOperation
-isisfish.effortDescription.fishingOperationDuration=3Disisfish.effortDescrip=
tion.fishingOperationDuration
-isisfish.effortDescription.fixedCrewSalary=3Disisfish.effortDescription.fixe=
dCrewSalary
-isisfish.effortDescription.gearsNumberPerOperation=3Disisfish.effortDescript=
ion.gearsNumberPerOperation
-isisfish.effortDescription.landingCosts=3Disisfish.effortDescription.landing=
Costs
-isisfish.effortDescription.otherRunningCost=3Disisfish.effortDescription.oth=
erRunningCost
-isisfish.effortDescription.repairAndMaintenanceGearCost=3Disisfish.effortDes=
cription.repairAndMaintenanceGearCost
-isisfish.effortDescription.title=3Disisfish.effortDescription.title
+isisfish.effortDescription.crewFoodCost=3DCrew food cost
+isisfish.effortDescription.crewShareRate=3DCrew share rate
+isisfish.effortDescription.crewSize=3DCrew size
+isisfish.effortDescription.economicTitle=3D\u00C9conomiques parameters
+isisfish.effortDescription.effortTitle=3DFishing effort parameters
+isisfish.effortDescription.fishingOperation=3DFishing operation
+isisfish.effortDescription.fishingOperationDuration=3DFishing operation dura=
tion
+isisfish.effortDescription.fishingOperationDuration.tooltip=3DIn hours
+isisfish.effortDescription.fixedCrewSalary=3DFixed crew salary
+isisfish.effortDescription.gearsNumberPerOperation=3DGears number per operat=
ion
+isisfish.effortDescription.landingCosts=3DLanding costs
+isisfish.effortDescription.otherRunningCost=3DOther running cost
+isisfish.effortDescription.parametersTitle=3DM\u00E9tiers parameters
+isisfish.effortDescription.repairAndMaintenanceGearCost=3DRepair and mainten=
ance gear cost
+isisfish.effortDescription.title=3DPracticed metier
isisfish.effortDescription.toString=3DEffortDescription for %1$s with %2$s
-isisfish.effortDescription.unitCostOfFishing=3Disisfish.effortDescription.un=
itCostOfFishing
+isisfish.effortDescription.unitCostOfFishing=3DFishing unit cost
isisfish.equation.editor.title=3DEquation Editor
isisfish.error.acceptable.population=3DNew value isn't acceptable value for =
this population
isisfish.error.add.card=3DError while adding of result to the map.
Modified: isis-fish/trunk/src/main/resources/i18n/isis-fish-fr_FR.properties
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- isis-fish/trunk/src/main/resources/i18n/isis-fish-fr_FR.properties 2009-0=
6-17 08:47:48 UTC (rev 2397)
+++ isis-fish/trunk/src/main/resources/i18n/isis-fish-fr_FR.properties 2009-0=
6-17 13:00:12 UTC (rev 2398)
@@ -221,12 +221,16 @@
isisfish.effortDescription.crewFoodCost=3DCo\u00FBt de l'alimentation pour l=
'\u00E9quipage
isisfish.effortDescription.crewShareRate=3DTaux de partage de l'\u00E9quipage
isisfish.effortDescription.crewSize=3DTaille de l'\u00E9quipage
+isisfish.effortDescription.economicTitle=3DParam\u00E8tres \u00E9conomiques
+isisfish.effortDescription.effortTitle=3DParam\u00E8tres d'effort de p\u00EA=
che
isisfish.effortDescription.fishingOperation=3DOp\u00E9ration de p\u00EAche
isisfish.effortDescription.fishingOperationDuration=3DDur\u00E9e de la p\u00=
EAche
+isisfish.effortDescription.fishingOperationDuration.tooltip=3DEn heures
isisfish.effortDescription.fixedCrewSalary=3DSalaire d'\u00E9quipage fixe
isisfish.effortDescription.gearsNumberPerOperation=3DNombre d'engins par op\=
u00E9ration
isisfish.effortDescription.landingCosts=3DCo\u00FBts d'accastillage
isisfish.effortDescription.otherRunningCost=3DAutres co\u00FBts
+isisfish.effortDescription.parametersTitle=3DParam\u00E8tres des m\u00E9tiers
isisfish.effortDescription.repairAndMaintenanceGearCost=3DCo\u00FBts de main=
tenance
isisfish.effortDescription.title=3DM\u00E9tiers pratiqu\u00E9s
isisfish.effortDescription.toString=3DEffortDescription for %1$s with %2$s
--===============6296313454001295225==--