/* * [NoJava.java] * * Summary: expand the NoJava macro. Generates text to display when Java is not installed. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.8 2009-02-06 include go package in ZIP bundle. */ package com.mindprod.htmlmacros.macro; import com.mindprod.fastcat.FastCat; import com.mindprod.htmlmacros.support.BuildImage; import com.mindprod.prices.AppCat; import static com.mindprod.htmlmacros.macro.Global.configuration; import static java.lang.System.*; /** * expand the NoJava macro. Generates text to display when Java is not installed. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2009 */ public final class NoJava extends Macro { /** * generic error message for any syntax error */ /** * how to use the macro */ private static final String USAGE = "\nNoJava macro needs (Applet/JWS)"; /** * What to show user if they don't have Java installed. * * @param appCat application category e.g. Applet JWS * * @return expanded HTML to display if user has no Java to run this program */ private String expand( AppCat appCat ) { final String br = configuration.getBr(); final FastCat sb = new FastCat( 8 ); sb.append( "