Project

General

Profile

« Previous | Next » 

Revision b0ce5b17

Added by Patrick Plitzner over 10 years ago

merged trunk into branch

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/user/UserDetailSection.java
1 1
/**
2
 * 
2
 *
3 3
 */
4 4
package eu.etaxonomy.taxeditor.ui.section.user;
5 5

  
......
12 12
import eu.etaxonomy.cdm.model.common.User;
13 13
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
14 14
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
15
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
16 16
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
17 17

  
18 18
/**
......
37 37
	}
38 38

  
39 39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
40
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
41 41
	 */
42 42
	@Override
43
	protected DetailType getDetailType() {
44
		return DetailType.USER;
43
	public String getHeading() {
44
		return "User " + (getEntity() != null ? getEntity().getUsername() : "");
45 45
	}
46 46

  
47 47
	/* (non-Javadoc)
48
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
48
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
49 49
	 */
50 50
	@Override
51
	public String getHeading() {
52
		return "User " + (getEntity() != null ? getEntity().getUsername() : "");
51
	protected AbstractCdmDetailElement<User> createCdmDetailElement(AbstractCdmDetailSection<User> parentElement, int style) {
52
	    return formFactory.createUserDetailElement(parentElement);
53 53
	}
54

  
55 54
}

Also available in: Unified diff