www.element4solution.com

Package e4s.html

The html package contains several basic HTML tags (such as <B>, <BODY>, <CENTER>, ..) which can be assembled one into the other to build up the main HTML output.

See:
          Description

Interface Summary
E4EventHandler_Intf Event handler Interface
E4FieldsetLayout_Intf Interface for input field collection (E4Fieldset).
E4HtmlElement_Intf Common interface declaration for HTML elements.
E4JavaScript_Intf Interface for E4JavaScript contant that will be included in the HTML output.
E4Method_Intf Interface for the E4Method, which is the basic injection mechanism in E4S.
IMG.Area_Intf Interface for IMAP areas (rectangle, circle or polygon).
 

Class Summary
A Main class for building anchor tags.
A_Email Build an <A;gt-Tag to send an e-Mail.
A_FORM An Anchor TAG that can be placed within a FORM or E4Fieldset element, acting as normal A-Tag but can include input fields contained within the form.
A_Multiple A multiple >A<-tag enables to change two or more frame contents.
A_Name A local reference-name within an HTML file.
A_Popup Popup a dynamic window with information when the mouse get's over the <A>-Tag.
A_Reference A local reference (anchor-tag) within an HTML file.
A_ReturnValue This anchor tag stands only at the end of selection mechanisms.
Align Main class for defining vertical or horizontal alignments.
B Bold <B>-tag representation..
BIG Big text, <BIG>-tag representation.
BLOCKQUOTE Blockquote, <NOBR>-tag representation..
BODY Main <BODY>-Element of a webpage.
BUTTON BUTTON html element.
CENTER Center, <CENTER>-tag representation.
DEL <DEL>-tag representation..
DIV <DIV>-Tag.
E4AjaxElement  
E4BlockMenu Deprecated.  
E4BlockMenuElement Deprecated.  
E4Box Display a small box with a caption and some content.
E4BoxRoundCorners Draw a box with rounded corners.
E4CgiParams Handling of parameters between CGI calls.
E4Color Color definition class.
E4DateElement Element for writing out a date value using the associated formatting.
E4DivFader Create a DIV element.
E4DocumentBase Definition for Document-Base.
E4Draggable A DIV element that can be dragged using the mouse.
E4EventHandler  
E4EventHandlerA Event handler for the <A>-tag for E4JavaScript based functions.
E4EventHandlerBODY Event handler for the <BODY>-tag for E4JavaScript based functions.
E4EventHandlerBUTTON Event handler for the <BUTTON>-tag for E4JavaScript based functions.
E4EventHandlerDIV Event handler for the <A>-tag for E4JavaScript based functions.
E4EventHandlerFORM Event handler for the <BUTTON>-tag for E4JavaScript based functions.
E4EventHandlerFRAMESET Event handler for the <FRAMESET>-tag for E4JavaScript based functions.
E4EventHandlerTR  
E4FrameName Representing a frame's name.
E4Hint Hint field with a checkbox to confirm reading.
E4HtmlContent Base content of HTML elements, not defined or structured in HTML tags, just pure text.
E4HtmlContentElement The "content"-element is the main class where most other html classes are inheritaed from.
E4HtmlContentElementPersistant An extension to E4HtmlContentElement to prevent objects inheritated from this class to be optionally not to be removed.
E4HtmlElement Base class for HTML elements which can hold sub elements.
E4HtmlElementGeneral General class for HTML elements.
E4HtmlElementGeneralPersistant An extension to E4HtmlContentElement to prevent objects inheritated from this class to be optionally not to be removed.
E4HtmlElementPersistant An extension to E4HtmlElement to prevent objects inheritated from this class to be optionally not to be removed.
E4HtmlObject Provide an E4ID for an object, typical a HTML related object.
E4JavaScript Java-Script handling.
E4JavaScript.JSBODY Body part of the E4JavaScript (between the function declaration and the closing bracket, but excluding the opening bracket).
E4JavaScript.JSIF  
E4JavaScript.JSIFNOELSE  
E4JavaScript.JSRETURN  
E4JavaScript.JSTRY  
E4JavaScript.JSVAR  
E4JavaScriptIncludes Base implementation for E4JavaScript and E4JavaScriptReference
E4JavaScriptReference A reference file for a E4JavaScript.
E4Message Display a message (text surrounded by a box).
E4Method Stands as placeholder for function within the application that are called via the CGI interface.
E4Method.E4MethodStatistics Statistical information about E4Method calls.
E4MethodInlineElement This class is a wrapper, that holds a E4Method to be included inline within another element.
E4MethodPickup This is a definition for a method that is used as pickup.
E4MethodSilent Similar to a E4Method object, but all additional output generated by the E4S framework is supressed.
E4NoScript Display a documentation link in the case that Java-Script is disabled.
E4SimpleTag Any simple HTML tag.
E4SystemError Display an Error.
E4TabbedMenu Provides a tab-layouted menu.
E4TabbedMenuElement Defines the single elements for a tabbed style menu.
E4TableColGroup  
FONT Implementatio for the <FONT>-tag.
FORM Input forms (<FORM>-tag).
FORM_Button A combination of an image with a button for a form.
FORM_Reset Reset (Clear) Button for a form
FORM_Submit Submit button for a form
FRAME HTML: Creates a <FRAME>-tag.
FRAMESET HTML: Creates a <FRAMESET>-tag.
HR  
HTML HTML: The very beginning of your output: creates a <HTML>-tag.
HTML.E4HtmlMetaTags Meta Tags (included in HTML) see http://www.webmarketingnow.com/tips/meta-tags-uncovered.html
Hx H1..H7, <Hx>-tag representation..
I Italic <I>-tag representation..
IFRAME IFRAME tag.
IMG Display an image (<IMG>-tag)..
IMG.Area Abstract class for areas used in Image-Maps (IMAP).
IMG.AreaCircle Circle-Area for Image MAP
IMG.AreaPolygon Rectangle-Area for Image MAP
IMG.AreaRectangle Rectangle-Area for Image MAP
IMG.IMAP Image MAP
INS <INS>-tag representation..
NOBR No-Break <NOBR>-tag representation..
P Pre-Formatted <P>-tag representation.
PRE Pre-Formatted <PRE>-tag representation.
SMALL Small text, <SMALL>-tag representation.
SPAN  
STRIKE Deprecated. <STRIKE>-tag representation..
TABLE <TABLE>-tag representation.
TABLE.E4TableElement Abstract class for TFOOT, THEAD or TBODY
TABLE.TBODY Table Body
TABLE.TFOOT Table Foot
TABLE.THEAD Table Header
TD a <TD>-tag representation.
TR a <TR>-tag representation.
UL Unsorted List
UL.LI Unsorted ListEntry (LI)
VAlign Vertical Aligmnent.
 

Exception Summary
E4CgiParamsException Exception, indicating that a CGI parameter was expected but is not available.
E4JavaScript.E4JavaScriptException  
 

Package e4s.html Description

The html package contains several basic HTML tags (such as <B>, <BODY>, <CENTER>, ..) which can be assembled one into the other to build up the main HTML output. It also contains elements which are not HTML standard and provide more functionality, such as Trees, Menus, ..

Structure and nesting of HTML output:

The e4s covers most of the HTML tags as classes within this package.

This might be an example for an output you want to create:
The HTML content to be created looks like:
<HTML>
 <TITLE>e4s Example</TITLE>
 <BODY>
  <TABLE BORDER=1>
        <TR><TD>Hello</TD></TR>
        <TR><TD>World</TD></TR>
  </TABLE>
 </BODY>
</HTML>
  
The program code to do this output looks like:

The classes provided in this package can be nested, to create an instance of an class within another class, this class provides a function using the name of the class to be instanciated.

public void HelloWorld( HTML html )
{
        html.setTitle("e4s Example"); 

        TABLE table = html.BODY().TABLE();
        table.setBorder();

        table.TR().TD().print("Hello");
        table.TR().TD().print("World");
}
  
The structure of the nested objects looks like:
An example can be found in the tutorial: e4s.tutorial.Example_HelloWorld.html.


www.element4solution.com