View Javadoc
1   package org.argeo.people.ui.composites;
2   
3   import javax.jcr.Node;
4   
5   import org.argeo.connect.resources.ResourcesService;
6   import org.argeo.connect.ui.ConnectEditor;
7   import org.argeo.connect.ui.SystemWorkbenchService;
8   import org.argeo.connect.ui.parts.TagLikeListPart;
9   import org.argeo.people.PeopleNames;
10  import org.eclipse.swt.widgets.Composite;
11  
12  /** Extend {@code TagLikeListPart} to provide specific label */
13  public class MailingListListPart extends TagLikeListPart {
14  	private static final long serialVersionUID = 6569267624309620699L;
15  
16  	public MailingListListPart(ConnectEditor editor, Composite parent, int style, ResourcesService resourceService,
17  			SystemWorkbenchService systemWorkbenchService, String tagId, Node taggable, String taggablePropName,
18  			String newTagMsg) {
19  		super(editor, parent, style, resourceService, systemWorkbenchService, tagId, taggable, taggablePropName,
20  				newTagMsg);
21  	}
22  
23  	protected String getLinkText(String taggablePropName, String value) {
24  		if (taggablePropName.equals(PeopleNames.PEOPLE_MAILING_LISTS))
25  			return " @<a>" + value + "</a>";
26  		else
27  			return super.getLinkText(taggablePropName, value);
28  	}
29  }