01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.console.base;
09:
10: //base classes
11: import java.io.IOException;
12:
13: //project specific classes
14: import org.jfolder.common.web.template.ConsoleParameterContext;
15: import org.jfolder.common.web.template.SubmitActionContext;
16: import org.jfolder.common.web.template.SubmitActionParameters;
17: import org.jfolder.console.base.ConsolePageContext;
18: import org.jfolder.console.base.ConsolePageParameters;
19: import org.jfolder.console.base.ConsolePageSession;
20:
21: //other classes
22:
23: public class ContinueSessionConsolePageContext extends
24: ConsolePageContext {
25:
26: private ContinueSessionConsolePageContext(ConsolePageSession inCps) {
27: super (inCps);
28: }
29:
30: public final static ContinueSessionConsolePageContext newInstance(
31: ConsolePageSession inCps) {
32:
33: ContinueSessionConsolePageContext outValue = null;
34:
35: outValue = new ContinueSessionConsolePageContext(inCps);
36:
37: return outValue;
38: }
39:
40: public String getFromPage() {
41: //
42: //
43: return ConsolePageParameters.SERVLET_CONSOLE;
44: }
45:
46: public String getHandleExtension() {
47: return NULL_HANDLE;
48: }
49:
50: //ConsoleScreenHelper
51: protected void renderConsolePage() throws IOException {
52:
53: startCommonPage();
54:
55: ConsolePageSession cs = getConsolePageSession();
56:
57: //
58: startEnclosingTableAndRowAndCell(alignCenter(null));
59: startAndEndStretchTableAndRowAndCell("<hr/>");
60: //
61: startTable(4);
62: startRow();
63: startCell(4, alignCenter(getFontStyle(16, ARIAL, BLACK)));
64: simpleAndPrint("You Have Recently Logged In");
65: endCell();
66: endRow();
67: endTable();
68:
69: startAndEndStretchTableAndRowAndCell("<hr/>");
70:
71: //
72: SubmitActionContext sacContinue = SubmitActionContext
73: .newInstance(this );
74: sacContinue.addAction(ConsoleParameterContext.FIRST_INPUT,
75: singleQuotes(SubmitActionParameters.DO_NOTHING));
76: sacContinue.setGoToPage(cs.getCurrentConsolePage());
77: //
78: startTable(4);
79: startRow();
80: startCell(4, alignCenter(getFontStyle(16, ARIAL, BLACK)));
81: createButton(null, "Click Here To Continue", 300,
82: submitActionCall(sacContinue), null, null, null, null);
83: endCell();
84: endRow();
85: endTable();
86:
87: startAndEndStretchTableAndRowAndCell("<hr/>");
88: //
89: endEnclosingTableAndRowAndCell();
90:
91: endCommonPage();
92: }
93:
94: }
|