Add view item.
This commit is contained in:
parent
db09c5a330
commit
4ded3a78df
1 changed files with 55 additions and 0 deletions
55
src/fr/devinsy/xidyn/views/View.java
Normal file
55
src/fr/devinsy/xidyn/views/View.java
Normal 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);
|
||||
}
|
||||
}
|
||||
|
||||
// ////////////////////////////////////////////////////////////////////////
|
Loading…
Reference in a new issue