Source code: com/xpn/xwiki/objects/meta/TextAreaMetaClass.java
1 /**
2 * ===================================================================
3 *
4 * Copyright (c) 2003 Ludovic Dubost, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details, published at
15 * http://www.gnu.org/copyleft/gpl.html or in gpl.txt in the
16 * root folder of this distribution.
17
18 * Created by
19 * User: Ludovic Dubost
20 * Date: 24 janv. 2004
21 * Time: 10:29:55
22 */
23 package com.xpn.xwiki.objects.meta;
24
25 import com.xpn.xwiki.objects.BaseCollection;
26 import com.xpn.xwiki.objects.classes.NumberClass;
27 import com.xpn.xwiki.objects.classes.TextAreaClass;
28
29 public class TextAreaMetaClass extends StringMetaClass {
30
31 public TextAreaMetaClass() {
32 super();
33 // setType("textareametaclass");
34 setPrettyName("TextArea Class");
35 setName(TextAreaClass.class.getName());
36
37 NumberClass rows_class = new NumberClass(this);
38 rows_class.setName("rows");
39 rows_class.setPrettyName("Rows");
40 rows_class.setSize(5);
41 rows_class.setNumberType("integer");
42 safeput("rows", rows_class);
43 }
44
45
46 public BaseCollection newObject() {
47 return new TextAreaClass();
48 }
49 }