package e4s.tutorial; import e4s.html.A; import e4s.html.BODY; import e4s.html.HTML; import e4s.html.E4Method; import e4s.servlet.E4ModuleImplementation; import e4s.servlet.E4ServletImplementation_Intf; /** * How to open a window and how to use the <TITLE> tag. * * {@tutorial Example_openWindow} */ public class Example_openWindow extends E4ModuleImplementation { public static E4Method openWindow = null; public static E4Method windowOutput = null; /** * This method openes a window. */ public void windowOutput( HTML html ) { html.setTitle("Welcome!"); BODY body = html.BODY(); body.B().println("This text is shown in the window's body"); } /** * This method openes a window. */ public void openWindow(HTML html) { A href = html.A(windowOutput); href.openInNewWindow(); href.print("Click here to open a new window"); } }