1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.ochafik.swing;
20
21 import java.awt.Component;
22
23 public final class FormElement {
24 public String name, title, toolTip, propertyName;
25 public boolean largeComponent;
26 public Component editorComponent;
27 public FormElement(String name, Component editorComponent) {
28 this.name=name;
29 this.editorComponent=editorComponent;
30 }
31 public FormElement(String name, String propertyName) {
32 this(name,propertyName,false);
33 }
34 public FormElement(String name, String propertyName,boolean largeComponent) {
35 this(name,null,null,propertyName,largeComponent);
36 }
37 public FormElement(String name, String title, String toolTip, String propertyName,boolean largeComponent) {
38 this.name=name;
39 this.title=title;
40 this.toolTip=toolTip;
41 this.propertyName=propertyName;
42 this.largeComponent=largeComponent;
43 }
44 }