added sidebox view, prep for sysadmin menu stuff

This commit is contained in:
Eric J. Bowersox
2003-05-24 09:40:17 +00:00
parent f933e4f88c
commit 0c7f518f3e
19 changed files with 805 additions and 34 deletions

View File

@@ -18,26 +18,60 @@ importPackage(java.util);
importClass(Packages.com.silverwrist.dynamo.Namespaces);
importPackage(Packages.com.silverwrist.dynamo.iface);
importPackage(Packages.com.silverwrist.dynamo.util);
importClass(Packages.com.silverwrist.venice.VeniceNamespaces);
importPackage(Packages.com.silverwrist.venice.content);
importPackage(Packages.com.silverwrist.venice.frame);
req = bsf.lookupBean("request");
req_help = bsf.lookupBean("request_help");
user = vlib.getUser(req);
globals = vcast.getGlobalPropertiesStore(req);
// N.B. THIS IS ALL TEMPORARY
// Create the page content.
// BEGIN TEMPORARY STUFF
// Find the standard content supplier.
tmp = req_help.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"venice-content");
scs = vcast.queryContentBlockProvider(tmp);
scs = vcast.queryContentBlockProvider(req_help.getRequestObject(Namespaces.DYNAMO_OBJECT_NAMESPACE,"venice-content"));
// Get an instance of the content block representing the page title.
cblk = scs.getContentBlock("content.header");
cblk.setContentParameter("title","Content Title");
cblk.setContentParameter("subtitle","Content Subtitle");
// Put together a list of objects to render in order.
rc = new ArrayList();
rc.add(cblk);
rc.add("Temporary second return value");
lipsum = "<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore "
+ "et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
+ "aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum "
+ "dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui "
+ "officia deserunt mollit anim id est laborum.</p>";
// We're outta here.
dynamo.scriptReturn(new TempFramedContent(rc));
// Put together a list of objects to render in order.
page_content = new ArrayList();
page_content.add(cblk);
page_content.add(lipsum);
// END TEMPORARY STUFF
// Create the sidebox list.
// BEGIN TEMPORARY STUFF
sidebox_list = new ArrayList();
tmp = new StringSidebox("The quick brown fox jumped over the lazy dog.","Number One");
sidebox_list.add(tmp);
tmp = new StringSidebox("<ul><li>First</li><li>Second</li><li>Third</li></ul>","List Test");
sidebox_list.add(tmp);
// END TEMPORARY STUFF
// Create the master view and return it.
rc = new SideboxView(page_content,sidebox_list);
//rc.menuSelector = "top";
rc.pageTitle = globals.getObject(VeniceNamespaces.FRAME_LAF_NAMESPACE,"frontpage.title").toString();
rc.pageQID = "top";
if (!(user.isAnonymous()))
{ // they only get to configure if they're logged in
rc.configureURL = "TODO";
rc.configureURLType = "ABSOLUTE";
} // end if
dynamo.scriptOutput(rc);