View Javadoc

1   /***
2   Copyright (C) 2005 The Java Community
3   
4   This program is free software; you can redistribute it and/or modify  it under
5   the terms of the GNU General Public License as published by  the Free Software
6   Foundation; either version 2 of the License, or  (at your option) any later
7   version.
8   
9   This program is distributed in the hope that it will be useful,  but WITHOUT
10  ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS
11  FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.
12  
13  You should have received a copy of the GNU General Public License  along with
14  this program; if not, write to the Free Software  Foundation, Inc., 59 Temple
15  Place, Suite 330, Boston, MA 02111-1307 USA.
16  */
17  
18  package org.bejug.javacareers.jobs.view.jsf.action;
19  
20  import javax.faces.component.UIData;
21  
22  import org.bejug.javacareers.common.view.jsf.constants.JSFConstants;
23  import org.bejug.javacareers.jobs.model.JobOffer;
24  import org.bejug.javacareers.jobs.view.jsf.util.Utils;
25  
26  /***
27   * @author kva (last modified by $Author: schauwvliege $)
28   * @version $Revision: 1.16 $ - $Date: 2005/09/13 08:11:06 $
29   */
30  
31  public class ShowJobOfferAction extends BaseAction {
32  
33      /***
34       * The table listing job offers.
35       */
36      private UIData jobOfferTable;
37  
38  
39      /***
40       * Store the job requested to be displayed on session scope so it can be
41       * picked up by the next page.
42       *
43       * @return next page to display.
44       */
45      public String showJobOffer() {
46          JobOffer job = (JobOffer) jobOfferTable.getRowData();
47          Utils.createValueBinding(job);
48          return JSFConstants.GO_JOB_DETAILS;
49      }
50  
51      /***
52       * @param jobTable The jobOfferTable to set.
53       */
54      public void setJobOfferTable(UIData jobTable) {
55          this.jobOfferTable = jobTable;
56      }
57      /***
58       * @return Returns the jobOfferTable.
59       */
60      public UIData getJobOfferTable() {
61          return jobOfferTable;
62      }
63  
64  
65  }
66  
67  /***
68   * $Log: ShowJobOfferAction.java,v $
69   * Revision 1.16  2005/09/13 08:11:06  schauwvliege
70   * organize imports
71   *
72   * Revision 1.15  2005/09/06 13:22:50  schauwvliege
73   * Intro of interview
74   *
75   * Revision 1.14  2005/08/30 13:07:47  psong09
76   * renamed author: psong09
77   *
78   * Revision 1.13  2005/08/29 11:02:51  psong09
79   * moved javacareers item related methods to itemAction
80   *
81   * Revision 1.12  2005/08/25 14:22:55  psong09
82   * Split spinner into StringSpinner and NumberSpinner
83   *
84   * Revision 1.11  2005/08/24 12:32:12  psong09
85   * Added spinner component and renamed commentAction
86   *
87   * Revision 1.10  2005/08/19 13:13:53  psong09
88   * introduced synchroniser token
89   *
90   * Revision 1.9  2005/08/10 09:04:49  bavo_jcs
91   * Optimized imports according to checkstyle
92   *
93   * Revision 1.8  2005/08/09 12:59:56  bavo_jcs
94   * Optimized imports
95   *
96   * Revision 1.7  2005/08/08 09:38:22  bme_jcs
97   * resolved checkstyle errors
98   *
99   * Revision 1.6  2005/08/04 14:46:36  psong09
100  * Extraced valuebinding method to javacareers.Utils
101  *
102  * Revision 1.5  2005/06/17 09:01:43  schauwvliege
103  * CheckStyle
104  *
105  * Revision 1.4  2005/06/14 13:12:38  psong09
106  * restored modified file
107  *
108  * Revision 1.2  2005/06/09 08:18:53  bejug_cc
109  * Fix initial import
110  *
111  * Revision 1.3  2005/06/04 17:42:04  sja
112  * Added fix for sessionScope issue.
113  *
114  * Revision 1.2  2005/06/02 15:48:36  PSONG09
115  * added searchcriteria
116  *
117  * Revision 1.1  2005/05/19 11:30:38  kva
118  * added form displaying job details
119  *
120  */