/**
* Copyright (C) 2008-2010, Squale Project - http://www.squale.org
*
* This file is part of Squale.
*
* Squale is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or any later version.
*
* Squale is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Squale. If not, see <http://www.gnu.org/licenses/>.
*/
package org.squale.welcom.taglib.formulaire.impl;
import org.squale.welcom.outils.TrimStringBuffer;
import org.squale.welcom.outils.Util;
import org.squale.welcom.taglib.button.ButtonBarTag;
import org.squale.welcom.taglib.formulaire.IFormulaireBottomRenderer;
/**
* @author M327837 Pour changer le mod�le de ce commentaire de type g�n�r�, allez � :
* Fen�tre>Pr�f�rences>Java>G�n�ration de code>Code et commentaires
*/
public class FormulaireBottomRendererV3001
implements IFormulaireBottomRenderer
{
/**
* @see org.squale.welcom.taglib.formulaire.IFormulaireBottomRenderer#drawTable(java.lang.String)
*/
public String drawTable( String bottomvalue )
{
final TrimStringBuffer buf = new TrimStringBuffer();
// buf.append("<!-- G�n�ration de la barre de boutons -->\n");
buf.append( "\t<table class=\"formulaire\">\n" );
buf.append( "<tfoot><tr><td>" );
if ( Util.isTrimNonVide( ButtonBarTag.purgeBodyHidden( bottomvalue ) ) )
{
buf.append( bottomvalue );
}
buf.append( "</td></tr></tfoot>" );
// buf.append("<!-- Fin de la G�n�ration de la barre de boutons -->\n");
buf.append( "\t</table>\n" );
return buf.toString();
}
}