KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > containers > ContainerEditViewField


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
//
15
//
16
//
17
// 28.07.2002 NK
18

19
20 package org.jahia.data.containers;
21
22 import java.io.Serializable JavaDoc;
23
24
25
26 /**
27  * Holds information about a Field used to build the Container Edition Popup.
28  *
29  * @author Khue Nguyen <a HREF="mailto:khue@jahia.org">khue@jahia.org</a>
30  */

31
32 public class ContainerEditViewField implements Serializable JavaDoc {
33
34     private static final String JavaDoc CLASS_NAME = ContainerEditViewField.class.getName();
35
36     private String JavaDoc name;
37     private String JavaDoc descr = "";
38
39
40     //--------------------------------------------------------------------------
41
/**
42      * Constructor
43      *
44      * @param String name, the field name
45      */

46     public ContainerEditViewField(String JavaDoc name)
47     {
48         if ( name != null || !name.trim().equals("") ){
49             this.name = name;
50         }
51     }
52
53     //--------------------------------------------------------------------------
54
/**
55      * Constructor
56      *
57      * @param String name, the field name
58      * @param String descr, the description
59      */

60     public ContainerEditViewField(String JavaDoc name, String JavaDoc descr)
61     {
62         if ( name != null || !name.trim().equals("") ){
63             this.name = name;
64         }
65         if ( descr != null ){
66             this.descr = descr;
67         }
68     }
69
70     //--------------------------------------------------------------------------
71
/**
72      * Return the name, can be null
73      *
74      */

75     public String JavaDoc getName(){
76         return this.name;
77     }
78
79     //--------------------------------------------------------------------------
80
/**
81      * Return the descr, can be null
82      *
83      */

84     public String JavaDoc getDescr(){
85         return this.descr;
86     }
87
88 }
89
Popular Tags