/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2012 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */
package org.geomajas.widget.featureinfo.configuration.client;

import java.util.ArrayList;
import java.util.List;

import org.geomajas.configuration.Parameter;
import org.geomajas.configuration.client.ClientWidgetInfo;

/**
 * Configuration properties for custom widgets.
 * 
 * @author Kristof Heirwegh
 */
public class WidgetBuilderInfo implements ClientWidgetInfo {

	private static final long serialVersionUID = 180L;

	/**
	 * Use this identifier in your configuration files (beans).
	 */
	public static final String IDENTIFIER = "WidgetBuilderInfo";

	/**
	 * The name (key) of a builder for the custom Widget. (the type will depend
	 * on the face, eg. a Canvas builder when using GWT)
	 * <p>
	 * Do not forget to add your builder to the widgetfactory (in
	 * EntryPoint.onModuleLoad).
	 * </p>
	 */
	private String builderName;

	private List<Parameter> parameters = new ArrayList<Parameter>();

	public List<Parameter> getParameters() {
		return parameters;
	}

	public void setParameters(List<Parameter> parameters) {
		this.parameters = parameters;
	}

	public String getBuilderName() {
		return builderName;
	}

	public void setBuilderName(String builderName) {
		this.builderName = builderName;
	}
}

@@ -829,17 +829,17 @@
 nUID = 1
-8
+0
 0L;%0A%0A%09/*
@@ -1111,16 +1111,18 @@
 )%0A%09 * %3Cp
+ /
 %3E%0A%09 * Do
@@ -1166,16 +1166,17 @@
 e widget
+ 
 factory 
@@ -1178,20 +1178,16 @@
 tory (in
-%0A%09 *
  EntryPo
@@ -1209,17 +1209,8 @@
 d).%0A
-%09 * %3C/p%3E%0A
 %09 */
@@ -1307,16 +1307,80 @@
 er%3E();%0A%0A
+%09/**%0A%09 * Get widget parameters.%0A%09 *%0A%09 * @return parameters%0A%09 */%0A
 %09public 
@@ -1430,32 +1430,106 @@
 parameters;%0A%09%7D%0A%0A
+%09/**%0A%09 * Set widget parameters.%0A%09 *%0A%09 * @param parameters parameters%0A%09 */%0A
 %09public void set
@@ -1610,66 +1610,317 @@
 %7D%0A%0A%09
-public String getBuilderName() %7B%0A%09%09return builderName;%0A%09%7D%0A
+/**%0A%09 * Get builder name, this needs to be registered in the WidgetFactory class.%0A%09 *%0A%09 * @return name of builder%0A%09 */%0A%09public String getBuilderName() %7B%0A%09%09return builderName;%0A%09%7D%0A%0A%09/**%0A%09 * Set builder name, this needs to be registered in the WidgetFactory class.%0A%09 *%0A%09 * @param builderName name of builder%0A%09 */
 %0A%09pu

add javadoc