package e4s.tutorial; import e4s.util.E4ID; import e4s.html.HTML; import e4s.html.E4Method; import e4s.html.editing.E4EditingDataDescriptor; import e4s.html.editing.E4EditingFrameset; import e4s.servlet.E4ModuleImplementation; import e4s.servlet.E4ServletImplementation_Intf; /** * Demonstrates the usage of table-style objects that can be used for data retrieving * out of database tables and generalized data editing. * * {@tutorial Example_Editing_02} */ public class Example_Editing_02 extends E4ModuleImplementation { public static E4Method start = null; public void start(HTML html) throws Exception { E4EditingFrameset eFrameset = new E4EditingFrameset("EDITING_EXAMPLE_02",getServlet()); eFrameset.setFormatter(new Example_Editing_MyFormatter()); T_TUTORIAL_ARTICLES_Sel T_TUTORIAL_ARTICLES = new T_TUTORIAL_ARTICLES_Sel(); T_TUTORIAL_ARTICLES.sort_ARTNO(); eFrameset.setEditingSelection(T_TUTORIAL_ARTICLES); eFrameset.setCaptionText("Articles"); E4EditingDataDescriptor descriptor = eFrameset.createDataDescriptor(); descriptor.defineIndexField(T_TUTORIAL_ARTICLES_Sel.COL_ARTNO); html.addElement(eFrameset); } }