1 16 package org.apache.myfaces.custom.newspaper; 17 18 import javax.faces.component.UIComponent; 19 import org.apache.myfaces.taglib.html.HtmlDataTableTagBase; 20 21 26 public class HtmlNewspaperTableTag 27 extends HtmlDataTableTagBase 28 { 29 30 private String newspaperColumns = null; 31 32 public void release() { 33 super.release(); 34 newspaperColumns = null; 35 } 36 37 public String getComponentType() { 38 return HtmlNewspaperTable.COMPONENT_TYPE; 39 } 40 41 public String getRendererType() { 42 return HtmlNewspaperTable.RENDERER_TYPE; 43 } 44 45 public void setNewspaperColumns(String newspaperColumns) { 46 this.newspaperColumns = newspaperColumns; 47 } 48 49 52 protected void setProperties(UIComponent component) { 53 super.setProperties(component); 54 55 setIntegerProperty(component, HtmlNewspaperTable.NEWSPAPER_COLUMNS_PROPERTY, newspaperColumns); 56 } 57 } | Popular Tags |