package e4s.tutorial; import e4s.application.sysmodule.E4ModuleSystem; import e4s.html.*; import e4s.servlet.E4ModuleImplementation; /** * Creating and using frames with the "Smooth-Resize" capability. * * {@tutorial Example_Frames_SmoothResize} * * @see e4s.html.FRAMESET#SmoothResize(int) */ public class Example_Frames_SmoothResize extends E4ModuleImplementation { public static E4Method start = null; public static E4Method output = null; public void start( HTML html ) throws Exception { FRAMESET framesetHorizontal = html.FRAMESET(FRAMESET.ROWS); FRAME fA = framesetHorizontal.FRAME(E4FrameName.ANY(),150); fA.setUrl(E4ModuleSystem.blankPage); framesetHorizontal.SmoothResize(150,50,250,"E4S.TUTORIAL.FRAME.TEST"); FRAME fB = framesetHorizontal.FRAME(E4FrameName.ANY(),"*"); fB.setUrl("http://www.yahoo.com"); } /*public void start( HTML html ) throws Exception { FRAMESET framesetVertical = html.FRAMESET(FRAMESET._FRAMESET_COLS); FRAMESET framesetHorizontal = framesetVertical.FRAMESET(FRAMESET._FRAMESET_ROWS,333); FRAME fA1 = framesetHorizontal.FRAME(E4FrameName.ANY(),200); fA1.setUrl(output); framesetHorizontal.SmoothResize(); FRAME fA2 = framesetHorizontal.FRAME(E4FrameName.ANY(),"*"); fA2.setUrl(moduleSystem.blankPage); framesetVertical.SmoothResize(); FRAME fB = framesetVertical.FRAME(E4FrameName.ANY(),"*"); fB.setUrl("http://www.yahoo.com"); } */ public void output(HTML html) { html.I().print("\"Can't you see, when one door is closed another is open\""); html.BR(); html.SMALL().print("Bob Marley"); } }