Author: tchemit Date: 2008-01-22 01:53:40 +0000 (Tue, 22 Jan 2008) New Revision: 355 Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/DetailTabModel.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/ListTabModel.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/SynchronizeTabModel.java Log: implantations des TabModel pour l'appli Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/DetailTabModel.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/DetailTabModel.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/DetailTabModel.java 2008-01-22 01:53:40 UTC (rev 355) @@ -0,0 +1,58 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* 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, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.model; + +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerTab; +import fr.cemagref.simexplorer.is.ui.swing.bean.ApplicationBean; +import jaxx.runtime.builder.TabModel; + +/** + * Le model pour un Tab contenant le détail d'une application + * + * @author chemit + */ +public class DetailTabModel implements TabModel { + + protected SimExplorerTab tab; + + protected ApplicationBean bean; + + private static final long serialVersionUID = 4851121531481734868L; + + + public String getName() { + return tab.name(); + } + + public SimExplorerTab getTab() { + return tab; + } + + public ApplicationBean getBean() { + return bean; + } + + public void setName(String name) { + this.tab = SimExplorerTab.valueOf(name); + } + + public void setBean(ApplicationBean bean) { + this.bean = bean; + } +} \ No newline at end of file Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/ListTabModel.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/ListTabModel.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/ListTabModel.java 2008-01-22 01:53:40 UTC (rev 355) @@ -0,0 +1,57 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* 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, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.model; + +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerTab; +import fr.cemagref.simexplorer.is.ui.swing.bean.ListApplicationBean; +import jaxx.runtime.builder.TabModel; + +/** + * Le model pour un Tab contenant une liste d'application + * + * @author chemit + */ +public class ListTabModel implements TabModel { + + protected SimExplorerTab tab; + + protected ListApplicationBean list; + + private static final long serialVersionUID = -3623331875470531459L; + + public String getName() { + return tab.name(); + } + + public SimExplorerTab getTab() { + return tab; + } + + public ListApplicationBean getList() { + return list; + } + + public void setName(String name) { + this.tab = SimExplorerTab.valueOf(name); + } + + public void setList(ListApplicationBean list) { + this.list = list; + } +} Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/SynchronizeTabModel.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/SynchronizeTabModel.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/model/SynchronizeTabModel.java 2008-01-22 01:53:40 UTC (rev 355) @@ -0,0 +1,66 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* 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, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.model; + +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerTab; +import fr.cemagref.simexplorer.is.ui.swing.bean.ListApplicationBean; +import jaxx.runtime.builder.TabModel; + +/** + * Le model pour un Tab contenant 2 listes d'applications + * + * @author chemit + */ +public class SynchronizeTabModel implements TabModel { + + protected SimExplorerTab tab; + + protected ListApplicationBean listLocal; + protected ListApplicationBean listRemote; + + private static final long serialVersionUID = -3623331875470531459L; + + public String getName() { + return tab.name(); + } + + public SimExplorerTab getTab() { + return tab; + } + + public ListApplicationBean getListLocal() { + return listLocal; + } + + public ListApplicationBean getListRemote() { + return listRemote; + } + + public void setName(String name) { + this.tab = SimExplorerTab.valueOf(name); + } + + public void setListLocal(ListApplicationBean listLocal) { + this.listLocal = listLocal; + } + + public void setListRemote(ListApplicationBean listRemote) { + this.listRemote = listRemote; + } +} \ No newline at end of file
participants (1)
-
tchemit@users.labs.libre-entreprise.org