View Javadoc

1   package org.whatsitcalled.webflange.webapp;
2   
3   import org.apache.wicket.Page;
4   import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
5   import org.apache.wicket.markup.html.WebPage;
6   import org.apache.wicket.markup.html.basic.Label;
7   import org.whatsitcalled.webflange.ResourceFactory;
8   import org.whatsitcalled.webflange.model.Script;
9   
10  public class ScriptViewPage extends WebPage {
11  	public ScriptViewPage(Script script, ModalWindow window) {
12  		String code = ResourceFactory.getFileManager()
13  				.getScriptFileContent(script);
14  		add(new Label("script", code));
15  	}
16  }