From 4ded3a78dfb3ef024b3a91c6b7ed9881ef5b803f Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 14 Jul 2013 02:30:52 +0200 Subject: [PATCH] Add view item. --- src/fr/devinsy/xidyn/views/View.java | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/fr/devinsy/xidyn/views/View.java diff --git a/src/fr/devinsy/xidyn/views/View.java b/src/fr/devinsy/xidyn/views/View.java new file mode 100644 index 0000000..61cc283 --- /dev/null +++ b/src/fr/devinsy/xidyn/views/View.java @@ -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); + } +} + +// //////////////////////////////////////////////////////////////////////// \ No newline at end of file