View Javadoc
1   package org.argeo.people.web.parts;
2   
3   import javax.jcr.Node;
4   import javax.jcr.RepositoryException;
5   
6   import org.argeo.cms.ui.CmsUiProvider;
7   import org.argeo.people.PeopleService;
8   import org.eclipse.swt.widgets.Composite;
9   import org.eclipse.swt.widgets.Control;
10  
11  /** Part that display a list of activities for a people:contactable node */
12  public class ActivitiesPart implements CmsUiProvider {
13  
14  	private PeopleService peopleService;
15  
16  	public ActivitiesPart() {
17  	}
18  
19  	public ActivitiesPart(PeopleService peopleService) {
20  		this.peopleService = peopleService;
21  	}
22  
23  	@Override
24  	public Control createUi(Composite parent, Node context) throws RepositoryException {
25  		// createContactPanel(parent, context);
26  		return parent;
27  	}
28  
29  	// protected void createContactPanel(Composite parent, Node context)
30  	// throws RepositoryException {
31  	// parent.setLayout(new GridLayout());
32  	//
33  	// if (context.hasNode(PeopleNames.PEOPLE_CONTACTS)) {
34  	// NodeIterator nit = context.getNode(PeopleNames.PEOPLE_CONTACTS)
35  	// .getNodes();
36  	// while (nit.hasNext()) {
37  	// Composite contactCmp = new Composite(parent, SWT.NO_FOCUS);
38  	// contactCmp.setLayoutData(PeopleWebUtils.horizontalFillData());
39  	// singleContactPart.createUi(contactCmp, nit.nextNode());
40  	// }
41  	// }
42  	//
43  	// }
44  
45  }