1 33 34 package com.icesoft.faces.component.style; 35 36 import javax.faces.component.UIComponentBase; 37 import javax.faces.el.ValueBinding; 38 39 45 public class OutputStyle extends UIComponentBase { 46 47 public static final String COMPONENT_TYPE = 48 "com.icesoft.faces.OutputStyleComp"; 49 public static final String COMPONENT_FAMILY = 50 "com.icesoft.faces.OutputStyle"; 51 public static final String DEFAULT_RENDERER_TYPE = 52 "com.icesoft.faces.style.OutputStyleRenderer"; 53 54 63 private String href; 64 private String userAgent; 65 66 public OutputStyle() { 67 super(); 68 } 69 70 public String getFamily() { 71 return COMPONENT_FAMILY; 72 } 73 74 public String getRendererType() { 75 return DEFAULT_RENDERER_TYPE; 76 } 77 78 81 public String getHref() { 82 if (href != null) { 83 return href; 84 } 85 ValueBinding vb = getValueBinding("href"); 86 if (vb != null) { 87 return (String ) vb.getValue(getFacesContext()); 88 } 89 return null; 90 } 91 92 public String getUserAgent() { 93 return userAgent; 94 } 95 96 public void setUserAgent(String userAgent) { 97 this.userAgent = userAgent; 98 } 99 100 111 public void setHref(String href) { 112 this.href = href; 113 } 114 115 116 } 117 | Popular Tags |