Add view item.

This commit is contained in:
Christian P. MOMON 2013-07-14 02:30:52 +02:00
parent db09c5a330
commit 4ded3a78df

View file

@ -0,0 +1,55 @@
package fr.devinsy.xidyn.views;
import fr.devinsy.xidyn.presenters.Presenter;
/**
*
*/
public class View
{
/**
*
*/
public StringBuffer getHtml() throws Exception
{
StringBuffer result;
result = null;
//
return (result);
}
/**
*
*/
public StringBuffer getHtmlBody() throws Exception
{
StringBuffer result;
StringBuffer html = this.getHtml();
if (html == null)
{
result = new StringBuffer();
}
else
{
String body = Presenter.extractBodyContent(html);
if (body == null)
{
result = new StringBuffer();
}
else
{
result = new StringBuffer(body);
}
}
//
return (result);
}
}
// ////////////////////////////////////////////////////////////////////////