View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.seasar.tuigwaa.view;
17  
18  public class FormElement {
19  
20  	private String attrName;
21  	
22  	private String name;
23  
24  	private String label;
25  
26  	private String element;
27  
28  	private boolean required;
29  
30  	private String description;
31  
32  	/*
33  	public FormElement(String displayAttrName, String attrName, String name, String label, String element) {
34  		this.attrName = attrName;
35  		this.name = name;
36  		this.label = label;
37  		this.element = element;
38  	}
39  	*/
40  	
41  	public FormElement(String attrName, String name, String label, String element,
42  			boolean required, String description) {
43  		this.attrName = attrName;
44  		this.name = name;
45  		this.label = label;
46  		this.element = element;
47  		this.required = required;
48  		this.description = description;
49  	}
50  
51  	public void setAttrName(String attrName) {
52  		this.attrName = attrName;
53  	}
54  	
55  	public String getAttrName() {
56  		return attrName;
57  	}
58  	
59  	public String getElement() {
60  		return element;
61  	}
62  
63  	public void setElement(String element) {
64  		this.element = element;
65  	}
66  
67  	public String getDescription() {
68  		return description;
69  	}
70  
71  	public void setDescription(String description) {
72  		this.description = description;
73  	}
74  
75  	public String getLabel() {
76  		return label;
77  	}
78  
79  	public void setLabel(String label) {
80  		this.label = label;
81  	}
82  
83  	public String getName() {
84  		return name;
85  	}
86  
87  	public void setName(String name) {
88  		this.name = name;
89  	}
90  
91  	public boolean isRequired() {
92  		return required;
93  	}
94  
95  	public void setRequired(boolean required) {
96  		this.required = required;
97  	}
98  }