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/DynObjectModel.java

View differences:

DynObjectModel.java
53 53
public interface DynObjectModel {
54 54

  
55 55
    /**
56
     * Creates a new {@link DynFieldModel} with the given <b>group</b> and
57
     * <b>fieldName</b>.
56
     * Creates a new {@link DynFieldModel} within the default "General"
57
     * <b>group</b>, but with the given <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>.
65 62
     * @param fieldName
66 63
     *            the id name of the associated {@link DynField}.
67 64
     * @return
68 65
     *         the newly created {@link DynFieldModel} added to the list.
69 66
     */
70
    public DynFieldModel add(String group, String fieldName);
67
    public DynFieldModel add(String fieldName);
71 68

  
72 69
    /**
73
     * Creates a new {@link DynFieldModel} within the default "General"
74
     * <b>group</b>, but with the given <b>fieldName</b>.
70
     * Creates a new {@link DynFieldModel} with the given <b>group</b> and
71
     * <b>fieldName</b>.
75 72
     * This {@link DynFieldModel} is then added to the list of
76 73
     * {@link DynFieldModel}s of this DynObjectModel
77 74
     * and then returned.
78 75
     * 
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 fieldName);
84
    public DynFieldModel add(String group, String fieldName);
85 85

  
86 86
    /**
87 87
     * Adds a group name to the {@link DynFieldModel}.

Also available in: Unified diff