package e4s.tutorial;
import e4s.html.*;
import e4s.servlet.E4ModuleImplementation;
/**
* Info-Box example. A Box element can be found in the E4S framework,
* containing possibilities for rounded corners or normal corners. It is
* just a table, but very simple to use without any unneccesary behavior.
*
* {@tutorial Example_Box}
*/
public class Example_Box extends E4ModuleImplementation
{
public static E4Method start = null;
public void start( HTML html )
{
html.Message("Info-Box Example");
html.P();
E4Box boxRed = html.Box("Alert");
boxRed.setColorCaption(E4Color.RED);
boxRed.setColorBorder(E4Color.DARK_RED);
boxRed.setWidth(200);
boxRed.setHeight(100);
TABLE table = boxRed.TABLE();
table.setFONT(FONT.ARIAL_smaller);
TR tr1 = table.TR();
tr1.TD().print(new java.util.Date());
tr1.TD().print("Stock falling");
TR tr2 = table.TR();
tr2.TD().print(new java.util.Date());
tr2.TD().print("Sellings in N.Y.");
html.P();
E4Box boxDefault = html.Box("Beware");
boxDefault.I().println("Beware, dont't worry, be happy");
}
}