KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > renderer > html > SimpleFormButtonRenderer


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.faces.core.renderer.html;
6
7
8 public class SimpleFormButtonRenderer extends SimpleFormRenderer {
9   
10   protected String JavaDoc formatText(String JavaDoc text) {
11     StringBuffer JavaDoc b = new StringBuffer JavaDoc() ;
12     b.append("<span class='br'>");
13     b.append("<span class='tl'>");
14     b.append("<span class='outer'>");
15     b.append("<span class='inner'>");
16     b.append(text);
17     b.append("</span>");
18     b.append("</span>");
19     b.append("</span>");
20     b.append("</span>");
21     return b.toString() ;
22   }
23   
24   protected String JavaDoc getDefaultClass() { return "ic3-button" ; }
25 }
Popular Tags