View Javadoc

1   /*
2    * Copyright 2004 Jeff Johnston
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, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.extremecomponents.table.bean;
17  
18  import org.extremecomponents.table.InputAttributes;
19  import org.extremecomponents.table.model.TableModel;
20  
21  
22  /***
23   * @author jeff johnston
24   */
25  public class Input implements InputAttributes
26  {
27  	public final static String HIDDEN = "hidden";
28  	public final static String BUTTON = "button";
29  	public final static String SUBMIT = "submit";
30  	
31  	private TableModel model;
32  	
33  	private String type;
34  	private String name;
35  	private String value;
36  	private String onclick;
37  	
38  	public Input(TableModel model)
39  	{
40  		this.model = model;
41  	}
42  
43  	public String getType()
44  	{
45  		return type;
46  	}
47  
48  	public void setType(String type)
49  	{
50  		this.type = type;
51  	}
52  
53  	public String getName()
54  	{
55  		return name;
56  	}
57  
58  	public void setName(String name)
59  	{
60  		this.name = name;
61  	}
62  
63  	public String getValue()
64  	{
65  		return value;
66  	}
67  
68  	public void setValue(String value)
69  	{
70  		this.value = value;
71  	}
72  
73  	public String getOnclick()
74  	{
75  		return onclick;
76  	}
77  
78  	public void setOnclick(String onclick)
79  	{
80  		this.onclick = onclick;
81  	}
82  }