Revision 302
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/DynObjectModel.java | ||
---|---|---|
53 | 53 |
public interface DynObjectModel { |
54 | 54 |
|
55 | 55 |
/** |
56 |
* Creates a new {@link DynFieldModel} within the default "General"
|
|
57 |
* <b>group</b>, but with the given <b>fieldName</b>.
|
|
56 |
* Creates a new {@link DynFieldModel} with the given <b>group</b> and
|
|
57 |
* <b>fieldName</b>. |
|
58 | 58 |
* This {@link DynFieldModel} is then added to the list of |
59 | 59 |
* {@link DynFieldModel}s of this DynObjectModel |
60 | 60 |
* and then returned. |
61 | 61 |
* |
62 |
* @param group |
|
63 |
* the group name of the associated {@link DynField}. If null, |
|
64 |
* the group name will be set to <b>"General"</b>. |
|
62 | 65 |
* @param fieldName |
63 | 66 |
* the id name of the associated {@link DynField}. |
64 | 67 |
* @return |
65 | 68 |
* the newly created {@link DynFieldModel} added to the list. |
66 | 69 |
*/ |
67 |
public DynFieldModel add(String fieldName); |
|
70 |
public DynFieldModel add(String group, String fieldName);
|
|
68 | 71 |
|
69 | 72 |
/** |
70 |
* Creates a new {@link DynFieldModel} with the given <b>group</b> and
|
|
71 |
* <b>fieldName</b>. |
|
73 |
* Creates a new {@link DynFieldModel} within the default "General"
|
|
74 |
* <b>group</b>, but with the given <b>fieldName</b>.
|
|
72 | 75 |
* This {@link DynFieldModel} is then added to the list of |
73 | 76 |
* {@link DynFieldModel}s of this DynObjectModel |
74 | 77 |
* and then returned. |
75 | 78 |
* |
76 |
* @param group |
|
77 |
* the group name of the associated {@link DynField}. If null, |
|
78 |
* the group name will be set to <b>"General"</b>. |
|
79 | 79 |
* @param fieldName |
80 | 80 |
* the id name of the associated {@link DynField}. |
81 | 81 |
* @return |
82 | 82 |
* the newly created {@link DynFieldModel} added to the list. |
83 | 83 |
*/ |
84 |
public DynFieldModel add(String group, String fieldName);
|
|
84 |
public DynFieldModel add(String fieldName); |
|
85 | 85 |
|
86 | 86 |
/** |
87 | 87 |
* Adds a group name to the {@link DynFieldModel}. |
... | ... | |
99 | 99 |
* @return |
100 | 100 |
* the list of {@link DynFieldModel}s. |
101 | 101 |
*/ |
102 |
public List getGroupElements(String group);
|
|
102 |
public List<DynFieldModel> getGroupElements(String group);
|
|
103 | 103 |
|
104 | 104 |
/** |
105 | 105 |
* Return an array of group names available for this {@link DynFieldModel}. |
Also available in: Unified diff