Java 类org.springframework.web.servlet.view.freemarker.FreeMarkerView 实例源码

项目:move2alf    文件:RootMap.java   
RootMap () throws Exception {
    if ( servletContext == null ) {
        servletContext = createServletContext();
        request = new MockHttpServletRequest("GET", "");
        response = new MockHttpServletResponse();
    }

    rootMap = new HashMap<String, Object>();
    RequestContext requestContext = new RequestContext(request, response, servletContext, rootMap);
    rootMap.put(FreeMarkerView.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE, requestContext);

    initDummyValues();
}
项目:music-for-all-application    文件:WebAppConfig.java   
@Bean
public FreeMarkerViewResolver viewResolver() {
    final FreeMarkerViewResolver resolver = new FreeMarkerViewResolver();
    resolver.setCache(true);
    resolver.setPrefix("");
    resolver.setSuffix(".ftl");
    resolver.setViewClass(FreeMarkerView.class);
    resolver.setContentType("text/html; charset=utf-8");
    resolver.setExposeSpringMacroHelpers(true);
    return resolver;
}
项目:mev    文件:FreeMarkerViewBuilder.java   
public FreeMarkerView build () {
  FreeMarkerView view = new FreeMarkerView ();
  initialize (view);
  if (encoding != null)
    view.setEncoding (encoding);
  if (configuration != null)
    view.setConfiguration (configuration);
  view.addStaticAttribute ("enums", BeansWrapper.getDefaultInstance().getEnumModels());
  return view;
}
项目:mev    文件:Views.java   
@Bean
public FreeMarkerView home (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/home.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean
public FreeMarkerView index (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/ui/stealmain.html").build ();
}
项目:mev    文件:Views.java   
@Bean
public FreeMarkerView api (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/api.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/heatmapSettingsModalBody")
public FreeMarkerView elementHeatmapSettingsModalBody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/heatmapSettingsModalBody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/anovaModalBody")
public FreeMarkerView elementAnovaModalBody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/anovaModalBody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/tTestModalBody")
public FreeMarkerView elementTTestModalBody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/tTestModalBody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/heatmapNavigation")
public FreeMarkerView elementHeatmapNavigation (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/heatmapNavigation.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/analysisMenuBar")
public FreeMarkerView elementAnalysisMenuBar (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/analysisMenuBar.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/sideNavigationBar")
public FreeMarkerView elementSideNavigationBar (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/sideNavigationBar.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/expressionPanel")
public FreeMarkerView elementExpressionPanel (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/expressionPanel.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/hierarchicalbody")
public FreeMarkerView elementHierarchicalbody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/hierarchicalbody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/kMeansBody")
public FreeMarkerView elementKMeansBody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/kMeansBody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/limmaBody")
public FreeMarkerView elementLimmaBody (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/limmaBody.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/modal")
public FreeMarkerView elementModal (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/modal.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/limmaAccordionList")
public FreeMarkerView elementLimmaAccordionList (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/limmaAccordionList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/limmaAccordion")
public FreeMarkerView elementLimmaAccordion (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/limmaAccordion.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/tTestAccordionList")
public FreeMarkerView elementTTestAccordionList (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/tTestAccordionList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/tTestAccordion")
public FreeMarkerView elementTTestAccordion (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/tTestAccordion.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/anovaAccordionList")
public FreeMarkerView elementAnovaAccordionList (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/anovaAccordionList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/anovaAccordion")
public FreeMarkerView elementAnovaAccordion (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/anovaAccordion.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/hclAccordionList")
public FreeMarkerView elementHclAccordionList (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/hclAccordionList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/kmeansAccordionList")
public FreeMarkerView elementKmeansAccordionList (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/kmeansAccordionList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/kmeansAccordion")
public FreeMarkerView elementKmeansAccordion (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/kmeansAccordion.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/table")
public FreeMarkerView elementTable (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/table.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/mainNavigation")
public FreeMarkerView elementMainNavigation (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/mainNavigation.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/heatmapPanels")
public FreeMarkerView elementHeatmapPanels (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/heatmapPanels.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/visHeatmap")
public FreeMarkerView elementVisHeatmap (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/visHeatmap.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/uploadDragAndDrop")
public FreeMarkerView elementUploadDragAndDrop (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/uploadDragAndDrop.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/datasetSummary")
public FreeMarkerView elementDatasetSummary (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/datasetSummary.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/hierarchicalAccordion")
public FreeMarkerView elementHierarchicalAccordion (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/hierarchicalAccordion.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "elements/uploadsTable")
public FreeMarkerView elementUploadsTable (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/uploadsTable.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name="elements/setmanager/selectionSetManager")
public FreeMarkerView selectionSetManager(FreeMarkerViewBuilder builder){    
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/setmanager/selectionSetManager.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name="elements/setmanager/selectionSetList")
public FreeMarkerView selection(FreeMarkerViewBuilder builder){    
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/setmanager/selectionSetList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name="elements/setmanager/selectionSetEditForm")
public FreeMarkerView selectionSetEditForm(FreeMarkerViewBuilder builder){    
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/setmanager/selectionSetEditForm.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name="elements/mainpanel/MainPanel")
public FreeMarkerView mainPanel(FreeMarkerViewBuilder builder){    
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/mainpanel/MainPanel.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean(name="elements/presets/presetList")
public FreeMarkerView presetList(FreeMarkerViewBuilder builder){
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/elements/presets/presetList.ftl").build ();
}
项目:mev    文件:Views.java   
@Bean (name = "partials/partial1")
public FreeMarkerView partial1 (FreeMarkerViewBuilder builder) {
  return builder.setUrl ("/edu/dfci/cccb/mev/web/views/partials/partial1.ftl").build ();
}