1 5 package org.exoplatform.faces.core.renderer.html; 6 7 import java.io.IOException ; 8 import javax.faces.context.ResponseWriter; 9 import org.exoplatform.faces.core.component.UIExoComponent; 10 import org.exoplatform.faces.core.component.model.Parameter; 11 16 public class ThreeImagePatternButton extends ButtonRenderer { 17 private String buttonClass_ ; 18 private String selectButtonClass_ ; 19 20 public ThreeImagePatternButton(String buttonClass, String selectButtonClass) { 21 buttonClass_ = buttonClass ; 22 selectButtonClass_ = selectButtonClass ; 23 } 24 25 public void renderSelect(ResponseWriter w, UIExoComponent component, 26 String text, Parameter[] params) throws IOException { 27 render(w, component, text, selectButtonClass_, params, null) ; 28 } 29 30 public void render(ResponseWriter w, UIExoComponent component, 31 String text, Parameter[] params) throws IOException { 32 render(w, component, text, buttonClass_, params, null) ; 33 } 34 35 protected void writeText(ResponseWriter w, String text) throws IOException { 36 w.write("<span class='left'/> </span>"); 37 w.write("<span class='middle'>"); 38 w.write(text); 39 w.write("</span>"); 40 w.write("<span class='right'/> </span>"); 41 } 42 } | Popular Tags |