1 17 package org.alfresco.web.ui.common.component; 18 19 import javax.faces.component.UIInput; 20 import javax.faces.context.FacesContext; 21 22 import org.apache.commons.logging.Log; 23 import org.apache.commons.logging.LogFactory; 24 25 30 public class UIImagePicker extends UIInput 31 { 32 private static Log logger = LogFactory.getLog(UIImagePicker.class); 33 34 37 public UIImagePicker() 38 { 39 setRendererType("org.alfresco.faces.Radio"); 41 } 42 43 46 public String getFamily() 47 { 48 return "org.alfresco.faces.ImagePicker"; 49 } 50 51 54 public void restoreState(FacesContext context, Object state) 55 { 56 Object values[] = (Object [])state; 57 super.restoreState(context, values[0]); 59 } 60 61 64 public Object saveState(FacesContext context) 65 { 66 Object values[] = new Object [1]; 67 values[0] = super.saveState(context); 69 return (values); 70 } 71 } 72 | Popular Tags |