Revision 846 org.gvsig.tools/library/trunk/org.gvsig.tools/dynform/src/org/gvsig/tools/dynform/impl/dynformfield/text/JDynFormFieldText.java

View differences:

JDynFormFieldText.java
9 9

  
10 10
public class JDynFormFieldText extends AbstractJDynFormField  implements JDynFormField {
11 11
	
12
	private String value  = null;
12
	private String assignedValue  = null;
13 13
	
14 14
	public JDynFormFieldText(DynObject parameters,
15 15
			ServiceManager serviceManager) {
16 16
		super(parameters, serviceManager);
17
		this.value = this.getParameterValue().toString();
17
		this.assignedValue = this.getParameterValue().toString();
18 18
	}
19 19

  
20
	public Object getAssignedValue() {
21
		return this.assignedValue;
22
	}
23

  
20 24
	private JTextArea getJTextArea() {
21 25
		return (JTextArea) this.contents;
22 26
	}
......
24 28
	public void initComponent() {
25 29
		this.contents = new JTextArea();
26 30
		this.getJTextArea().setRows(3);
27
		this.setValue(this.value);
31
		this.setValue(this.assignedValue);
28 32
	}
29 33
	
30 34
	public void setValue(Object value) {
......
43 47
	}
44 48
	
45 49
	public Object getValue() {
50
		Object value = null;
46 51
		String s = this.getJTextArea().getText();
47 52
		if( s.trim().length()==0 ) {
48 53
			value = (String) this.getDefinition().getDefaultValue();

Also available in: Unified diff