diff options
author | Eike Stepper | 2009-09-22 17:57:21 +0000 |
---|---|---|
committer | Eike Stepper | 2009-09-22 17:57:21 +0000 |
commit | 1b527b5759ef827b4d08bb536e615ab39bddb035 (patch) | |
tree | 0a6f4506b3604c44867b5ea0318adc270042157a /plugins/org.gastro.server.web | |
parent | 2a7d2666175d1de37574dd522be83db064aeef0e (diff) | |
download | cdo-1b527b5759ef827b4d08bb536e615ab39bddb035.tar.gz cdo-1b527b5759ef827b4d08bb536e615ab39bddb035.tar.xz cdo-1b527b5759ef827b4d08bb536e615ab39bddb035.zip |
regen
Diffstat (limited to 'plugins/org.gastro.server.web')
-rw-r--r-- | plugins/org.gastro.server.web/src-gen/templates/MenuCardTemplate.java | 58 |
1 files changed, 19 insertions, 39 deletions
diff --git a/plugins/org.gastro.server.web/src-gen/templates/MenuCardTemplate.java b/plugins/org.gastro.server.web/src-gen/templates/MenuCardTemplate.java index 1c16836d9f..fe177342ee 100644 --- a/plugins/org.gastro.server.web/src-gen/templates/MenuCardTemplate.java +++ b/plugins/org.gastro.server.web/src-gen/templates/MenuCardTemplate.java @@ -1,14 +1,11 @@ package templates; -import org.gastro.inventory.MenuCard; -import org.gastro.inventory.Offering; -import org.gastro.inventory.Section; -import org.gastro.server.internal.web.GastroServlet; +import org.gastro.inventory.*; +import org.gastro.server.internal.web.*; public class MenuCardTemplate { protected static String nl; - public static synchronized MenuCardTemplate create(String lineSeparator) { nl = lineSeparator; @@ -18,62 +15,45 @@ public class MenuCardTemplate } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = "\t"; - protected final String TEXT_2 = NL + NL + "<html>" + NL + " <header>" + NL + "\t <title>" + NL + "\t\t\t"; - - protected final String TEXT_3 = NL + "\t </title>" + NL - + "\t\t<link media=\"screen\" href=\"gastro.css\" type=\"text/css\" rel=\"stylesheet\">" + NL + "\t<header>" + NL - + "<body>" + NL + "<h1>"; - + protected final String TEXT_3 = NL + "\t </title>" + NL + "\t\t<link media=\"screen\" href=\"gastro.css\" type=\"text/css\" rel=\"stylesheet\">" + NL + "\t<header>" + NL + "<body>" + NL + "<h1>"; protected final String TEXT_4 = "</h1>" + NL + "<table border=\"0\" width=\"400\">"; - protected final String TEXT_5 = NL + "\t<tr><td colspan=\"3\"><h2>"; - protected final String TEXT_6 = "</h2></td></tr>" + NL + "\t<tr><td colspan=\"3\"><h4>"; - protected final String TEXT_7 = "</h4></td></tr>" + NL + "\t"; - protected final String TEXT_8 = NL + "\t\t<tr><td> </td><td colspan=\"2\"><h3>"; - protected final String TEXT_9 = "</h3></td></tr>" + NL + "\t\t<tr><td> </td><td>"; - protected final String TEXT_10 = "</td>" + NL + "\t\t\t\t\t<td align=\"right\" valign=\"bottom\" width=\"80\">"; - protected final String TEXT_11 = " </td></tr>" + NL + "\t"; - protected final String TEXT_12 = NL + "</table>" + NL + "</body>" + NL + "</html>"; - protected final String TEXT_13 = NL; public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append(TEXT_1); - MenuCard menuCard = (MenuCard)argument; + MenuCard menuCard = (MenuCard)argument; stringBuffer.append(TEXT_2); stringBuffer.append(GastroServlet.html(menuCard.getTitle())); stringBuffer.append(TEXT_3); stringBuffer.append(GastroServlet.html(menuCard.getTitle())); stringBuffer.append(TEXT_4); - for (Section section : menuCard.getSections()) - { - stringBuffer.append(TEXT_5); - stringBuffer.append(GastroServlet.html(section.getTitle())); - stringBuffer.append(TEXT_6); - stringBuffer.append(GastroServlet.html(section.getText())); - stringBuffer.append(TEXT_7); - for (Offering offering : section.getOfferings()) - { - stringBuffer.append(TEXT_8); - stringBuffer.append(GastroServlet.html(offering.getName())); - stringBuffer.append(TEXT_9); - stringBuffer.append(GastroServlet.html(offering.getDescription())); - stringBuffer.append(TEXT_10); - stringBuffer.append(GastroServlet.html(offering.getPrice())); - stringBuffer.append(TEXT_11); - } + for (Section section : menuCard.getSections()) { + stringBuffer.append(TEXT_5); + stringBuffer.append(GastroServlet.html(section.getTitle())); + stringBuffer.append(TEXT_6); + stringBuffer.append(GastroServlet.html(section.getText())); + stringBuffer.append(TEXT_7); + for (Offering offering : section.getOfferings()) { + stringBuffer.append(TEXT_8); + stringBuffer.append(GastroServlet.html(offering.getName())); + stringBuffer.append(TEXT_9); + stringBuffer.append(GastroServlet.html(offering.getDescription())); + stringBuffer.append(TEXT_10); + stringBuffer.append(GastroServlet.html(offering.getPrice())); + stringBuffer.append(TEXT_11); + } } stringBuffer.append(TEXT_12); stringBuffer.append(TEXT_13); |