package e4s.tutorial; import java.io.*; import java.util.*; import java.text.*; import java.net.*; import java.sql.*; import e4s.html.*; import e4s.servlet.*; /** * A simple class, that demonstrates the use of the image tag within an * E4S application. * * {@tutorial Example_Image} * * @see e4s.html.IMG */ public class Example_Image extends E4ModuleImplementation { public static E4Method imageExample = null; public static E4Method imageInTable = null; public void imageExample( HTML html ) { html.IMG("images/tutorial/Example_Image/test01.gif"); // when clicked, branch to another function A href = html.A(imageInTable); IMG img02 = href.IMG("images/tutorial/Example_Image/test02.jpg"); img02.setAlign(Align.RIGHT); } public void imageInTable( HTML html ) { TABLE table = html.TABLE(); TR row1 = table.TR(); row1.TD().IMG("images/tutorial/Example_Image/test01.gif"); row1.TD().IMG("images/tutorial/Example_Image/test02.jpg"); TR row2 = table.TR(); row2.TD().print("This is Paula"); row2.TD().print("This also is Paula"); } }