1 33 34 package com.icesoft.faces.component.ext; 35 36 import javax.faces.context.FacesContext; 37 import javax.faces.el.ValueBinding; 38 39 41 public class UIColumn extends javax.faces.component.UIColumn { 42 public static final String COMPONENT_TYPE = "com.icesoft.faces.Column"; 43 44 45 48 public String getFamily() { 49 return "javax.faces.Column"; 50 } 51 52 private String binding = null; 54 55 public String getBinding() { 56 return this.binding; 57 } 58 59 public void setBinding(String binding) { 60 this.binding = binding; 61 } 62 63 private String id = null; 65 66 public String getId() { 67 return this.id; 68 } 69 70 public void setId(String id) { 71 this.id = id; 72 } 73 74 private String rendered = null; 76 77 public String getRendered() { 78 if (this.rendered != null) { 79 return this.rendered; 80 } 81 ValueBinding _vb = getValueBinding("rendered"); 82 if (_vb != null) { 83 return (String ) _vb.getValue(getFacesContext()); 84 } 85 return null; 86 } 87 88 public void setRendered(String rendered) { 89 this.rendered = rendered; 90 } 91 92 95 public void restoreState(FacesContext _context, Object _state) { 96 Object _values[] = (Object []) _state; 97 super.restoreState(_context, _values[0]); 98 this.binding = (String ) _values[1]; 99 this.id = (String ) _values[2]; 100 this.rendered = (String ) _values[3]; 101 } 102 103 106 public Object saveState(FacesContext _context) { 107 Object _values[] = new Object [4]; 108 _values[0] = super.saveState(_context); 109 _values[1] = this.binding; 110 _values[2] = this.id; 111 _values[3] = this.rendered; 112 return _values; 113 } 114 115 116 } 117 | Popular Tags |