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.view.display;
09:
10: //base classes
11:
12: //project specific classes
13: import org.jfolder.common.function.WebPageTagInstanceViewContextInfo;
14: import org.jfolder.common.function.WebPageTagPreferences;
15: import org.jfolder.common.tagging.ConceptTag;
16: import org.jfolder.common.tagging.ConceptTagConstraint;
17: import org.jfolder.common.tagging.ConceptTagConstraintHolder;
18: import org.jfolder.common.tagging.ConceptTagPreferences;
19: import org.jfolder.common.tagging.StudioConceptTagUsabilityContext;
20: import org.jfolder.common.web.template.ConsoleTemplateContext;
21: import org.jfolder.common.web.template.ConsoleTemplateSession;
22: import org.jfolder.console.view.base.PopUpViewHolder;
23:
24: //other classes
25:
26: public class PopUpViewCreator {
27:
28: //
29: private PopUpViewCreator() {
30: }
31:
32: //
33: public final static String generateView(
34: WebPageTagInstanceViewContextInfo inWptivci,
35: //ConsolePageContext inCpc,
36: ConsoleTemplateSession inCts, ConsoleTemplateContext inCtc,
37: ConceptTagPreferences inCtp,
38: StudioConceptTagUsabilityContext inSctuc,
39: int inHandleHeaderLength, WebPageTagPreferences inWptp,
40: ConceptTagConstraintHolder inCtconh,
41: ConceptTagConstraint inCtcon, Integer inStaticIndex,
42: boolean inTemplateInUse, String inCopyStatic,
43: ConceptTag inCopyDynamic) {
44: //
45: StringBuffer outValue = new StringBuffer();
46:
47: //
48: outValue.append("<!-- GUI START -->");
49: //
50: //ConsolePageSession localCps = inCpc.getConsolePageSession();
51: //
52: PopUpViewHolder puvh = PopUpViewHolder
53: .newInstance(
54: inWptivci,
55: outValue,
56: inCts,
57: inCtc,
58: inCtp,
59: inSctuc,
60: inWptp,
61: inCts
62: .getToggleLinkSubSectionAsList(inHandleHeaderLength),
63: inCtconh, inCtcon, inStaticIndex,
64: inTemplateInUse, inCopyStatic, inCopyDynamic);
65: //
66: PopUpViewSelector.chooseHtmlView(puvh, inWptivci);
67: //
68: outValue.append("<!-- GUI END -->");
69:
70: return outValue.toString();
71: }
72: }
|