package e4s.tutorial; import e4s.html.*; import e4s.servlet.E4ModuleImplementation; import e4s.translate.E4LabelApp; /** * Draw a box with rounded corners. * * {@tutorial Example_BoxRoundCorners} */ public class Example_BoxRoundCorners extends E4ModuleImplementation { public static E4Method start = null; public void start(HTML html) { html.Message(E4Message.CAPTION,"Box with rounded corners example"); html.P(); E4BoxRoundCorners boxA = html.BoxRoundCorners("Current Date"); boxA.setBorderColor(E4Color.ORANGE); boxA.FONT(FONT.ARIAL_smaller).print(new E4LabelApp("Today is #",getDateFormat().format(new java.util.Date()))); html.P(); E4BoxRoundCorners boxB = html.BoxRoundCorners(); boxB.setBorderColor(new E4Color(0xA0,0x00,0x00)); boxB.setWidthMax(); boxB.FONT(FONT.ARIAL_smaller).A("http://www.d2s.at").IMG("images/e4s_logo_75.gif"); } }