package com.gallatinsystems.framework.gwt.util.client;

import java.util.TreeMap;
import java.util.logging.Logger;

import com.gallatinsystems.common.util.ClassAttributeUtil;
import com.gallatinsystems.framework.domain.BaseDomain;

public class DetailPanelConfiguration<T extends BaseDomain> {
	private Class<T> concreteClass;
	protected Logger log;

	public DetailPanelConfiguration(Class<T> e) {
		setDomainClass(e);

	}

	public void setDomainClass(Class<T> e) {
		this.concreteClass = e;
		log = Logger.getLogger(this.getClass().getName());
	}

	public void setAnnotationsMap(TreeMap<String, String> annotationsMap) {
		if (annotationsMap == null) {
			annotationsMap=ClassAttributeUtil.listObjectAttributes(concreteClass.getName());
		}
		this.annotationsMap = annotationsMap;
	}

	public TreeMap<String, String> getAnnotationsMap() {
		return annotationsMap;
	}

	private TreeMap<String, String> annotationsMap = null;

}

@@ -325,30 +325,8 @@
 s;%0A%09
-protected Logger log;%0A
 %0A%09pu
@@ -467,61 +467,8 @@
  e;%0A
-%09%09log = Logger.getLogger(this.getClass().getName());%0A
 %09%7D%0A%0A

remove log variable since gwt