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;

public class MenuJspGenerator extends AbstractJSPGenerator {

	public FileEntry generate(List views , Context context) {
		
		FileEntry menu = new FileEntry(generateMenu(views, context));
		return menu;
		
	}
	
	public static final String getMenuName(){
		return "MenuMaf";
	}
	
	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(""); 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 - 2025 Weber Informatics LLC | Privacy Policy