01: package simpleorm.simplewebapp.requestlet;
02:
03: import simpleorm.simplewebapp.core.WPage;
04:
05: abstract public class WPageRenderer extends WRequestlet {
06: WPage page;
07:
08: public @Override
09: void onGetPost() throws Throwable {
10: doPage();
11: }
12:
13: abstract protected void doPage() throws Exception;
14:
15: /////////////////////
16:
17: public WPage getPage() {
18: return page;
19: }
20:
21: public WPageRenderer setPage(WPage page) {
22: this.page = page;
23: return this;
24: }
25: }
|