/***************************************** * Hlib.java * From http://home.att.net/~gobruen * * Called by the HTMLGen.java * takes the JText input from the main program * and generates HTML content and returns it * to the main where is it made into a file * ******************************************/ public class Hlib { public static String makePage(String title, String meta, String bgcolor, String textcolor, String textfont, String genLink, String genLinkN, String img, String paragArr[]){ /******************************************************** * Tag Library * each String tag is decribe in the * comment next to it * ********************************************************/ String fileContent; //The end product file String HHTMLtagOp =""; //start the html page String HheadTit1 = "
tags * ******************************/ public static String getAllParags(String paragArr[]){ String pContent = ""; String Po = "
"; String Pc = "
"; /* * Go through paragraph array and make * individual sections for paragraphs * that were entered */ for(int i =0; i < paragArr.length; i++){ if(paragArr[i]!=null){ pContent = pContent + Po + paragArr[i] + Pc + "\n"; } } return pContent; }//end getAllParags /*************************************************** * * Generates links * Combine the tags, link and link * name into one string and return it ***************************************************/ public static String makeAlink(String aLink, String aName){ return ""+aName+""; }//end makeAlink }//end Hlib.java