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.common.function;
09:
10: //base classes
11: import javax.servlet.jsp.PageContext;
12:
13: //project specific classes
14: import org.jfolder.common.UnexpectedSystemException;
15: import org.jfolder.common.tagging.BaseDetermineValueAndClassConceptTagContext;
16: import org.jfolder.common.tagging.ConceptTag;
17: import org.jfolder.common.tagging.ConceptTagFlagsHelper;
18: import org.jfolder.common.utils.web.WebComponentHolder;
19:
20: //other classes
21:
22: public class ReturnValueAndClassForWebPageTagContext extends
23: BaseDetermineValueAndClassConceptTagContext {
24:
25: private WebPageTagPreferences wptp = null;
26: //private PageContext pc = null;
27: private boolean forwardInvoked = false;
28:
29: //private ComponentsForReturnableWebPageTag cfrwt = null;
30:
31: protected ReturnValueAndClassForWebPageTagContext(
32: WebPageTagPreferences inWptp, PageContext inPc) {
33: //
34: super (null, null);
35: //TO DO: is below necessary?
36: this .wptp = inWptp;
37: //this.pc = inPc;
38: //this.cfrwt = new ComponentsForReturnableWebPageTag(this);
39: if (inPc != null) {
40:
41: ConceptTagFlagsHelper.setWebComponentHolder(this ,
42: WebComponentHolder.newInstance(inPc));
43: }
44: }
45:
46: private ReturnValueAndClassForWebPageTagContext(
47: WebPageTagPreferences inWptp, WebComponentHolder inWch) {
48: //
49: super (null, null);
50: //TO DO: is below necessary?
51: this .wptp = inWptp;
52: //this.pc = inPc;
53: //this.cfrwt = new ComponentsForReturnableWebPageTag(this);
54: if (inWch != null) {
55:
56: ConceptTagFlagsHelper.setWebComponentHolder(this , inWch);
57: }
58: }
59:
60: public final static ReturnValueAndClassForWebPageTagContext newInstance(
61: WebPageTagPreferences inWptp, WebComponentHolder inWch) {
62: //
63: ReturnValueAndClassForWebPageTagContext outValue = null;
64:
65: outValue = new ReturnValueAndClassForWebPageTagContext(inWptp,
66: inWch);
67:
68: return outValue;
69: }
70:
71: protected WebPageTagPreferences getWebTagPreferences() {
72: return this .wptp;
73: }
74:
75: protected PageContext getPageContext() {
76: throw UnexpectedSystemException.notImplemented();
77: //return this.pc;
78: }
79:
80: public void setForwardInvoked(boolean inInvoked) {
81: this .forwardInvoked = inInvoked;
82: }
83:
84: public boolean isForwardInvoked() {
85: return this .forwardInvoked;
86: }
87:
88: //protected ComponentsForReturnableWebPageTag
89: // getComponentsForReturnableWebPageTag() {
90: //
91: // ComponentsForReturnableWebPageTag outValue = null;
92: //
93: // outValue = this.cfrwt;
94: //
95: // return outValue;
96: //}
97: }
|