1 16 package org.apache.myfaces.custom.collapsiblepanel; 17 18 import org.apache.myfaces.taglib.html.ext.HtmlPanelGroupTag; 19 20 import javax.faces.component.UIComponent; 21 22 26 public class HtmlCollapsiblePanelTag 27 extends HtmlPanelGroupTag 28 { 29 31 public String getComponentType() 32 { 33 return HtmlCollapsiblePanel.COMPONENT_TYPE; 34 } 35 36 public String getRendererType() 37 { 38 return "org.apache.myfaces.CollapsiblePanel"; 39 } 40 41 private String _collapsed; 42 private String _value; 43 45 public void release() { 46 super.release(); 47 _collapsed=null; 48 _value=null; 49 } 50 51 protected void setProperties(UIComponent component) 52 { 53 super.setProperties(component); 54 55 setBooleanProperty(component, "collapsed", _collapsed); 56 setStringProperty(component, "value", _value); 57 58 } 59 60 61 public void setCollapsed(String collapsed) 62 { 63 _collapsed = collapsed; 64 } 65 66 public void setValue(String value) 67 { 68 _value = value; 69 } 70 } 71 | Popular Tags |