## ============================================================================ ## Filename : WebJSPScreenTemplate.vm ## Note(s) : This template is used to generate a JSPScreen Java class. ## ## Note: The generated code is dependent on the ThinkUI framework. ## Please refer to the SQL Client documentation for details. ## ## Copyright (c) 2007 ThinkUI Software Inc. All rights reserved. ## ============================================================================ ## ## **************************************************************************** ## The following variables are available in this template. For more ## information on any of the following variable, please refer to the user guide. ## **************************************************************************** ## $projectName ## $authorName ## $headerText ## $tableName ## $className ## $objectName ## $objectVar ## $packageName ## $prjPkgName ## $prjClassPrefix ## $superClassName ## $screenType ## $date ## $codeGen ## #if ($packageName) package $packageName; #end #parse( "ClassHeaderInclude.vm" ) import thinkui.web.JSPScreen; import thinkui.web.NavigationPath; /** * Implements a JSPScreen to ${screenType.toLowerCase()} ${objectName} data object. */ public class ${className} extends ${superClassName} { #if ( $screenType ) private static final String URL = "WEB-INF/jsp/${objectVar}/${screenType.toLowerCase()}.jsp"; private static final String TITLE = "${codeGen.toClassName($screenType)} ${objectName}"; #else private static final String URL = "WEB-INF/jsp/${objectVar}.jsp"; private static final String TITLE = "${objectName}"; #end private static final String DESCRIPTION = null; private static final String CODE = null; private static final String HELP_URL = null; /** * ${className} constructor. */ public ${className}() { super(URL); setTitle(TITLE); setDescription(DESCRIPTION); setCode(CODE); setHelpURL(HELP_URL); } public final NavigationPath getNavigationPath() { String[] actionNames = new String[] { "home", getTitle() }; NavigationPath path = new NavigationPath(actionNames); return path; } }