KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlets > wsrp > component > UIProducerInfo


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  */

5
6 package org.exoplatform.portlets.wsrp.component;
7
8 import org.exoplatform.faces.core.component.UIExoComponentBase;
9 import org.exoplatform.portlets.wsrp.component.model.ProducerData;
10
11 /**
12  * Created y the eXo platform team
13  * User: Benjamin Mestrallet
14  * Date: 7 juin 2004
15  */

16 public class UIProducerInfo extends UIExoComponentBase {
17
18     private ProducerData producerData ;
19
20   public UIProducerInfo() {
21     setRendererType("ProducerInfoRenderer");
22     }
23
24   public String JavaDoc getFamily() {
25     return "org.exoplatform.portlets.wsrp.component.UIProducerInfo";
26   }
27
28   public ProducerData getProducerData() {
29     if(producerData == null)
30       return (ProducerData) ((UIProducerMenu)((UIExoComponentBase)getParent()).
31           getChildComponentOfType(UIProducerMenu.class)).getProducers().iterator().next();
32     return producerData;
33   }
34
35   public void setProducerData(ProducerData producerData) {
36     this.producerData = producerData;
37   }
38
39 }
40
Popular Tags