1 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 16 public class UIProducerInfo extends UIExoComponentBase { 17 18 private ProducerData producerData ; 19 20 public UIProducerInfo() { 21 setRendererType("ProducerInfoRenderer"); 22 } 23 24 public String 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 |