All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.asg.generator.view.jsp.MenuJspGenerator Maven / Gradle / Ivy

package net.anotheria.asg.generator.view.jsp;

import net.anotheria.asg.generator.Context;
import net.anotheria.asg.generator.FileEntry;
import net.anotheria.asg.generator.GeneratedJSPFile;
import net.anotheria.asg.generator.GeneratorDataRegistry;
import net.anotheria.asg.generator.meta.MetaModule;
import net.anotheria.asg.generator.view.CMSMappingsConfiguratorGenerator.SharedAction;
import net.anotheria.asg.generator.view.meta.MetaView;

import java.util.List;

/**
 * 

MenuJspGenerator class.

* * @author another * @version $Id: $Id */ public class MenuJspGenerator extends AbstractJSPGenerator { /** *

generate.

* * @param views a {@link java.util.List} object. * @param context a {@link net.anotheria.asg.generator.Context} object. * @return a {@link net.anotheria.asg.generator.FileEntry} object. */ public FileEntry generate(List views , Context context) { FileEntry menu = new FileEntry(generateMenu(views, context)); return menu; } /** *

getMenuName.

* * @return a {@link java.lang.String} object. */ public static final String getMenuName(){ return "MenuMaf"; } /** *

getMenuPageName.

* * @return a {@link java.lang.String} object. */ public static final String getMenuPageName(){ return getMenuName()+".jsp"; } private GeneratedJSPFile generateMenu(List views, Context context){ GeneratedJSPFile jsp = new GeneratedJSPFile(); startNewJob(jsp); jsp.setName(getMenuName()); jsp.setPackage(context.getPackageName(MetaModule.SHARED)+".jsp"); append(getBaseJSPHeader()); appendString(""); appendString(""); appendString("
"); increaseIdent(); appendString("
"); increaseIdent(); appendString("\"CMS"); appendString(""); increaseIdent(); appendString("
App: ${currentApplication}
"); decreaseIdent(); appendString("
"); appendString("
Environment: ${currentSystem eq 'PROD' ? 'PROD' : currentSystem}
"); appendString(""); appendString("
"); increaseIdent(); appendString(""); appendString("Advanced search"); appendString("
"); appendString("
"); increaseIdent(); appendString("
"); increaseIdent(); appendString("
"); decreaseIdent(); appendString("
"); appendString("
"); increaseIdent(); appendString("Search"); appendString("
    "); increaseIdent(); appendString("
  • CHECKED name=\"searchArea\"/>
  • "); appendString("
  • CHECKED name=\"searchArea\"/>
  • "); decreaseIdent(); appendString("
"); appendString("\" name=\"module\"/>"); appendString("\" name=\"document\"/>"); appendString("Search"); decreaseIdent(); appendString("
"); appendString("
"); appendString("
"); appendString("
"); decreaseIdent(); appendString("
"); decreaseIdent(); appendString("
"); appendString("Languages"); appendString("
"); appendString("
"); appendString("
"); increaseIdent(); appendString("
"); increaseIdent(); appendString("
"); decreaseIdent(); appendString("
"); appendString("
"); appendString(""); appendString("
"); appendString("
    "); increaseIdent(); for (String sl : GeneratorDataRegistry.getInstance().getContext().getLanguages()){ appendString("
  • "); appendString(""); appendString("
  • "); } decreaseIdent(); appendString("
"); appendString("Apply"); appendString("
"); appendString("
"); appendString("
"); appendIncreasedString("
"); appendString("
"); decreaseIdent(); appendString("
"); appendString("
    "); increaseIdent(); appendString(""); increaseIdent(); appendString(""); increaseIdent(); appendString("
  • "); increaseIdent(); appendString(""); decreaseIdent(); appendString("
  • "); decreaseIdent(); appendString("
    "); appendString(""); appendString("
  • \">
  • "); appendString("
    "); decreaseIdent(); appendString("
    "); decreaseIdent(); appendString("
"); appendString("changePass\" class=\"change_pass\">Change password"); appendString("logout\" class=\"logout\">Logout"); appendString("
"); appendString("\"\"/"); decreaseIdent(); appendString("
"); decreaseIdent(); appendString("
"); appendString(""); appendString(""); return jsp; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy