1 64 65 package com.jcorporate.expresso.services.html; 66 67 72 73 import java.io.PrintWriter ; 74 75 76 82 public class Break 83 extends HtmlElement { 84 private static final String thisClass = Break.class.getName() + "."; 85 86 89 public Break() 90 throws HtmlException { 91 super(); 92 } 93 94 99 public void add(HtmlElement e) 100 throws HtmlException { 101 String myName = (thisClass + "add(HtmlElement)"); 102 throw new HtmlException(myName + ":You cannot add anything to a " + 103 "'Break'"); 104 } 105 106 107 113 protected void display(PrintWriter out, int depth) 114 throws HtmlException { 115 padWithTabs(out, depth); 116 out.println("<br />"); 117 setDisplayed(); 118 } 119 120 121 } 122 123 | Popular Tags |