Revision 298 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.api/src/main/java/org/gvsig/tools/swing/api/dynobject/dynfield/ValueField.java
ValueField.java | ||
---|---|---|
34 | 34 |
package org.gvsig.tools.swing.api.dynobject.dynfield; |
35 | 35 |
|
36 | 36 |
import org.gvsig.tools.dynobject.DynField; |
37 |
import org.gvsig.tools.dynobject.DynObject; |
|
37 | 38 |
|
38 | 39 |
/** |
39 | 40 |
* |
40 |
* Minimal interface to start interacting with both the value of a {@link DynObject} and its default value of its {@link DynField}. |
|
41 |
* It also provides information about the readOnly property of the {@link DynField} object. |
|
41 |
* Minimal interface to start interacting with both the value of a |
|
42 |
* {@link DynObject} and its default value of its {@link DynField}. |
|
43 |
* It also provides information about the readOnly property of the |
|
44 |
* {@link DynField} object. |
|
42 | 45 |
* |
43 | 46 |
* @author 2010 - <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG Team |
44 | 47 |
* @author 2010 - <a href="mailto:reinhold@uji.es">Cristian Mart?n </a> - |
... | ... | |
49 | 52 |
public interface ValueField { |
50 | 53 |
|
51 | 54 |
/** |
52 |
* Returns the value by default that this ValueField has. It must correspond to the default |
|
53 |
* value of the {@link DynField} object. |
|
55 |
* Returns the value by default that this ValueField has. It must correspond |
|
56 |
* to the default |
|
57 |
* value of the {@link DynField} object. |
|
54 | 58 |
* |
55 | 59 |
* @return the default value. |
56 | 60 |
*/ |
57 | 61 |
public Object getDefaultFieldValue(); |
58 | 62 |
|
59 | 63 |
/** |
60 |
* Returns the current value of this ValueField.It must correspond to the given |
|
61 |
* value of the {@link DynObject} object. |
|
64 |
* Returns the current DynField. |
|
62 | 65 |
* |
63 |
* @return the default value. |
|
66 |
* @return |
|
67 |
* the current DynField. |
|
64 | 68 |
*/ |
65 |
public Object getFieldValue();
|
|
69 |
public DynField getDynField();
|
|
66 | 70 |
|
67 | 71 |
/** |
68 |
* Modifies the current value of the ValueField. It must correspond to the setValue |
|
69 |
* function of the {@link DynObject} object. |
|
72 |
* Returns the current value of this ValueField.It must correspond to the |
|
73 |
* given |
|
74 |
* value of the {@link DynObject} object. |
|
70 | 75 |
* |
71 | 76 |
* @return the default value. |
72 | 77 |
*/ |
73 |
public void setFieldValue(Object value);
|
|
78 |
public Object getFieldValue();
|
|
74 | 79 |
|
75 | 80 |
/** |
76 |
* Returns the current DynField. |
|
81 |
* Modifies the current value of the ValueField. It must correspond to the |
|
82 |
* setValue |
|
83 |
* function of the {@link DynObject} object. |
|
77 | 84 |
* |
78 |
* @return |
|
79 |
* the current DynField. |
|
85 |
* @return the default value. |
|
80 | 86 |
*/ |
81 |
public DynField getDynField(); |
|
82 |
|
|
87 |
public void setFieldValue(Object value); |
|
83 | 88 |
|
84 | 89 |
/** |
85 | 90 |
* Sets the current value to the DynObject element. |
86 | 91 |
* |
87 | 92 |
* @param value |
88 |
* the value to be set.
|
|
93 |
* the value to be set.
|
|
89 | 94 |
*/ |
90 | 95 |
public void setValue(Object value); |
91 | 96 |
|
Also available in: Unified diff