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
12   * details.
13   *
14   * You should have received a copy of the GNU General Public License along with
15   * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16   * Place, Suite 330, Boston, MA 02111-1307 USA.
17   *
18   */
19  
20  package org.bejug.javacareers.common.view.jsf.comment;
21  
22  import javax.faces.component.UIInput;
23  import javax.faces.context.FacesContext;
24  
25  /***
26   *
27   * @author  psong09 (Last modified by $Author: bme_jcs $)
28   * @version $Revision: 1.5 $ - $Date: 2005/08/05 08:27:55 $
29   */
30  public class UIComment extends UIInput {
31  
32      /***
33       * Default constructor
34       */
35      public UIComment() {
36          setRendererType("org.bejug.CommentRenderer");
37      }
38  
39  
40      /***
41       * {@inheritDoc}
42       */
43      //TODO implement methods
44       public Object saveState(FacesContext context) {
45          Object values[] = new Object[1];
46              values[0]=super.saveState(context);
47           return values;
48  }
49      /***
50       * {@inheritDoc}
51       */
52      public void restoreState(FacesContext context, Object state) {
53            Object values[] = (Object[])state;
54             super.restoreState(context, values[0]);
55  
56      }
57  
58  }
59  /***
60   * $Log: UIComment.java,v $
61   * Revision 1.5  2005/08/05 08:27:55  bme_jcs
62   * resolved checkstyle errors
63   *
64   * Revision 1.4  2005/07/05 15:28:55  psong09
65   * added styleClasses, modified validation
66   *
67   * Revision 1.3  2005/06/23 15:12:40  psong09
68   * comment component updated
69   *
70   * Revision 1.2  2005/06/21 17:00:00  stephan_janssen
71   * Corrected CVS tags.
72   *
73   */