Revision 842 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dynobject/impl/DefaultDynField.java

View differences:

DefaultDynField.java
71 71
	private boolean validateElements;
72 72
	private boolean isReadOnly;
73 73
	private Class theClassOfItems = null;
74
	private String label = null;
74 75

  
75 76
	public void check() throws ListBaseException {
76 77
		ListBaseException exceptions = null;
......
189 190
	}
190 191

  
191 192
	public String getDescription() {
192
		return (description == null) ? getName() : description;
193
		return (description == null) ? getLabel() : description;
193 194
	}
194 195

  
196
	public DynField setLabel(String label) {
197
		this.label = label;
198
		return this;
199
	}
200

  
201
	public String getLabel() {
202
		return (label == null) ? getName() : label;
203
	}
204
	
195 205
	public DynField setType(int dataType) {
196 206
		DataTypesManager datamanager = ToolsLocator.getDataTypesManager();
197 207
		return setType(datamanager.get(dataType));

Also available in: Unified diff