KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > component > UITextArea


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.faces.core.component;
6
7 /**
8  * Wed, Dec 22, 2003 @ 23:14
9  * @author: Tuan Nguyen
10  * @email: tuan08@users.sourceforge.net
11  * @version: $Id: UITextArea.java,v 1.8 2004/07/02 02:35:21 tuan08 Exp $
12  */

13 public class UITextArea extends UIStringInput {
14
15   public static String JavaDoc COMPONENT_FAMILY = "org.exoplatform.faces.core.component.UITextArea";
16   public static String JavaDoc TEXTAREA_RENDERER = "TextAreaRenderer";
17     
18   private String JavaDoc cols_ = "40";
19   private String JavaDoc rows_ = "20";
20   
21   public UITextArea(String JavaDoc name, String JavaDoc text) {
22     super(name, text) ;
23     setRendererType(TEXTAREA_RENDERER);
24   }
25   
26   /*
27    * @see javax.faces.component.UIComponent#getFamily()
28    */

29   public String JavaDoc getFamily() {
30       return COMPONENT_FAMILY;
31   }
32   
33   public String JavaDoc getCols() {
34       return cols_;
35   }
36   
37   public UITextArea setCols(String JavaDoc cols) {
38       cols_ = cols;
39       return this;
40   }
41   
42   public String JavaDoc getRows() {
43       return rows_;
44   }
45   
46   public UITextArea setRows(String JavaDoc rows) {
47       rows_ = rows;
48       return this;
49   }
50 }
51
Popular Tags