|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.E4HtmlElement
e4s.html.E4HtmlContentElement
e4s.html.E4HtmlContentElementPersistant
e4s.html.BODY
e4s.html.HTML
public class HTML
HTML: The very beginning of your output: creates a <HTML>-tag.
The idea of the E4S environment is, to cover CGI calls by Java function, the method references
or E4Method classes. Each E4Method represents a Java
function by the same name, and one or two parameters.
The first of those parameters to the function is a object of this HTML class, the other might be
a E4CgiParams. You write your own modules and functions, and you can make use of the
html parameter to print out structured HTML content. For example, you might begin like this:
| Example_HelloWorld.java |
For most of the classes in package e4s.html you will find a function by the same name
as the class which creates the class, and holds it as an internal object in the HTML object.
After finishing of your function, control is returned to the E4S environment, and contents are written
out to the page displayed in the browser. From there, this game can start again.
BODY,
FRAMESET,
E4Method,
E4CgiParams| Nested Class Summary | |
|---|---|
static class |
HTML.E4HtmlMetaTags
Meta Tags (included in HTML) see http://www.webmarketingnow.com/tips/meta-tags-uncovered.html |
| Field Summary | |
|---|---|
static java.lang.String |
JS_SERVLET_PRESERVED_REQUEST
|
static java.lang.String |
JS_SERVLET_REQUEST
|
| Fields inherited from class e4s.html.BODY |
|---|
DEFAULTSTYLE, HTML_TAG |
| Fields inherited from class e4s.html.E4HtmlContentElement |
|---|
BOOL_STR_FALSE, BOOL_STR_TRUE |
| Fields inherited from class e4s.html.E4HtmlElementGeneral |
|---|
m_elements, m_needed_scripts |
| Fields inherited from class e4s.html.E4HtmlObject |
|---|
m_parent_e4sID |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
HTML()
|
|
HTML(E4ID parent_id)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
BODY |
BODY()
Defines a <BODY> tag. |
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
BODY |
displayWaitAndForward(E4Method mref,
E4ServletImplementation_Intf servlet)
Displays the message "This function might take some time - please be patient" in a new created BODY tag, and forwards execution to the method specified. |
E4SubEditingBODY |
E4SubEditingBODY(E4Method mrefSave,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
Defines a <BODY> tag for editing within E4EditingElement. |
E4SubEditingBODY |
E4SubEditingBODY(E4Method mrefSave,
E4Method mrefCancel,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
Defines a <BODY> tag for editing within E4EditingElement. |
static void |
enableUTF8(boolean mode)
Enable UTF output as default for all HTML outputs. |
E4FieldsetTabbed |
FieldsetTabbed()
Construct a tabbed input form element, and add it to the internal collection. |
FRAMESET |
FRAMESET(boolean rows)
Defines a <FRAMESET> tag. |
FRAMESET |
FRAMESET(boolean rows,
java.lang.String size)
Defines a <FRAMESET> tag. |
java.lang.String |
getIcon()
Get the icon. |
java.lang.String |
getLocalCSS()
Get the local defined E4CSS. |
HTML.E4HtmlMetaTags |
getMetaTags()
|
E4Label_Intf |
getTitle()
Get the title, which was either specified particular using setTitle(java.lang.String) or generally
using setDefaultTitle(java.lang.String). |
static boolean |
isUTF8enabled()
Determine, if UTF8 is enabled. |
E4MenuFrameset |
MenuFrameset(int layout,
E4ServletImplementation_Intf servlet)
Add a frameset that contains a menu to the BODY context. |
E4MenuFrameset |
MenuFrameset(java.lang.String persistantObjId,
int layout,
E4ServletImplementation_Intf servlet)
Add a frameset that contains a menu to the BODY context. |
void |
preventStyleEditing()
Prevent from editing E4CSS at runtime. |
void |
preventTranslationEditing()
Prevent from editing Translations at runtime. |
static void |
setDefaultIcon(java.lang.String url)
Defines a general <LINK REL="SHORTCUT ICON" .. |
static void |
setDefaultTitle(E4Label_Intf title)
Set's the default title of the HTML page. |
static void |
setDefaultTitle(E4String title)
Set's the default title of the HTML page. |
static void |
setDefaultTitle(java.lang.String title)
Set's the default title of the HTML page. |
void |
setIcon(java.lang.String url)
Defines a <LINK REL="SHORTCUT ICON" .. |
void |
setLocalCSS(java.lang.String filename)
Define the name of the style sheet to be included. |
void |
setMetaTag(java.lang.String tag,
java.lang.String value)
Add a meta tag to be included in the HEAD section of your HTML output. |
void |
setStrict()
Set the output to strict - this includes <! |
void |
setTitle(E4Label_Intf title)
Set's the title of the HTML page. |
void |
setTitle(E4String title)
Set's the title of the HTML page. |
void |
setTitle(java.lang.String title)
Set's the title of the HTML page. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
boolean inline)
|
| Methods inherited from class e4s.html.E4HtmlContentElementPersistant |
|---|
preventFromRemoving, preventFromRemoving, removeAll, toDebug |
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
addElement, addElement, addElement, copyElements, print |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, E4ID, set_e4sID |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, collectScripts, collectStylesForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Field Detail |
|---|
public static final java.lang.String JS_SERVLET_REQUEST
public static final java.lang.String JS_SERVLET_PRESERVED_REQUEST
| Constructor Detail |
|---|
public HTML(E4ID parent_id)
public HTML()
| Method Detail |
|---|
public void setTitle(java.lang.String title)
| Example_openWindow.java |
title - null : no title, any other value will be displayed within the <TITLE> tag.getTitle(),
setDefaultTitle(java.lang.String)public void setTitle(E4String title)
| Example_openWindow.java |
title - null : no title, any other value will be displayed within the <TITLE> tag.getTitle(),
setDefaultTitle(java.lang.String)public void setTitle(E4Label_Intf title)
| Example_openWindow.java |
title - null : no title, any other value will be displayed within the <TITLE> tag.getTitle(),
setDefaultTitle(java.lang.String)public static void setDefaultTitle(java.lang.String title)
setTitle(java.lang.String).
title - null : no title, any other value will be displayed within the <TITLE> tag.setTitle(java.lang.String),
getTitle()public static void setDefaultTitle(E4String title)
setTitle(java.lang.String).
title - null : no title, any other value will be displayed within the <TITLE> tag.setTitle(java.lang.String),
getTitle()public static void setDefaultTitle(E4Label_Intf title)
setTitle(java.lang.String).
title - null : no title, any other value will be displayed within the <TITLE> tag.setTitle(java.lang.String),
getTitle()public E4Label_Intf getTitle()
setTitle(java.lang.String) or generally
using setDefaultTitle(java.lang.String).
setTitle(java.lang.String),
setDefaultTitle(java.lang.String)public void setIcon(java.lang.String url)
setDefaultIcon(String).
This enables you to load an icon into the browser's URL address section.
url - a ful qualified URL to an icon (*.ico file).setDefaultIcon(String),
getIcon()public static void setDefaultIcon(java.lang.String url)
setIcon(String).
This enables you to load an icon into the browser's URL address section.
url - a ful qualified URL to an icon (*.ico file).setIcon(String),
getIcon()public java.lang.String getIcon()
setIcon(java.lang.String) or it
was generally defined using setDefaultIcon(java.lang.String).
setIcon(String),
setDefaultIcon(String)public FRAMESET FRAMESET(boolean rows)
rows - true: <FRAMESET ROWS="..">, false: <FRAMESET COLS="..">
FRAMESET or FRAME objects.
public FRAMESET FRAMESET(boolean rows,
java.lang.String size)
FRAMESET or FRAME objects.public E4FieldsetTabbed FieldsetTabbed()
FieldsetTabbed in class BODYpublic BODY BODY()
| Example_openWindow.java |
public E4SubEditingBODY E4SubEditingBODY(E4Method mrefSave,
E4Method mrefCancel,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4EditingElement.
Note that this is a special case, and make familar with editing first. A E4JavaScript will be
added and one or two buttons are added for closing the sub frame in conjunction with E4ModuleEditingHandling02.
mrefSave - can be null if no save is required, or the method for saving.mrefCancel - can be null if default cancel shall be involved or the method for cancel.params - the current E4CgiParams, containing at least E4ModuleEditingHandlingSettings.PARAM_EDITING_OBJservlet - the servlet environment (E4ModuleImplementation.getServlet()
java.lang.Exception
public E4SubEditingBODY E4SubEditingBODY(E4Method mrefSave,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4EditingElement.
Note that this is a special case, and make familar with editing first. A E4JavaScript will be
added and one or two buttons are added for closing the sub frame in conjunction with E4ModuleEditingHandling02.
Uses the default cancel function E4ModuleEditingHandling02.cancelRecord, which is recommended.
mrefSave - can be null if no save is required, or the method for saving.params - the current E4CgiParams, containing at least E4ModuleEditingHandlingSettings.PARAM_EDITING_OBJservlet - the servlet environment (E4ModuleImplementation.getServlet()
java.lang.Exception
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those
objects which becomes appended. Normally, there is no need to call this function anyway,
and this also might result in side effects of too-early relasing of objects in some cases.
This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement)
on the top level HTML element (common this is a HTML
or BODY element) and branches down to all child elements.
toHtml in interface E4HtmlElement_IntftoHtml in class BODYservlet - is the servlet context which can be retrieved using the E4ModuleImplementation.getServlet().
java.lang.Exception#toHtml(E4ServletImplementation_Intf, boolean)
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
boolean inline)
throws java.lang.Exception
servlet - is the servlet context which can be retrieved using the E4ModuleImplementation.getServlet().inline - false (= default) does not write the >HTML< tag. Usage of this parameter with a value
of false will cause inproper display under normal circumstances.
java.lang.Exception#toHtml(E4ServletImplementation_Intf)public void preventStyleEditing()
E4ServletImplementation_Intf.sessionCanEditStyles() returns true,
a small grafic is displayed enabling the editing of the E4CSS style sheets. By calling this function,
this will be prevented.
public void preventTranslationEditing()
E4ServletImplementation_Intf.sessionCanEditTranslations() returns true,
a small grafic is displayed enabling the editing of the translations. By calling this function,
this will be prevented.
public void collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneralE4Label.
collectTranslationsForEditing in interface E4HtmlElement_IntfcollectTranslationsForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the current servlet instanceE4Label_Intfpublic void setLocalCSS(java.lang.String filename)
E4StyleSettings.getStyleUrl() + default/e4s.css
and e4s.servlet.E4ServletImplementation_Intf#getCSS() will be included in this
order.
filename - the full or relative specified path and filename of an .css file, a value of
null to include no file (default)getLocalCSS(),
e4s.servlet.E4ServletImplementation_Intf#getCSS(),
E4StyleSettings.getStyleUrl()public java.lang.String getLocalCSS()
setLocalCSS(String)public static boolean isUTF8enabled()
E4DBSelect.isUnicodeEnabled(),
E4DBSelect.enableUnicode(boolean),
#enableUTF8()public static void enableUTF8(boolean mode)
mode - true to enable UTF8E4DBSelect.isUnicodeEnabled(),
E4DBSelect.enableUnicode(boolean),
isUTF8enabled()
public void setMetaTag(java.lang.String tag,
java.lang.String value)
tag - the tag name, e.g.value -
public BODY displayWaitAndForward(E4Method mref,
E4ServletImplementation_Intf servlet)
mref - the method to be executedservlet - an actual servlet context
public HTML.E4HtmlMetaTags getMetaTags()
public void setStrict()
public E4MenuFrameset MenuFrameset(int layout,
E4ServletImplementation_Intf servlet)
layout - a menu layout, E4Menuservlet - the current servlet context
public E4MenuFrameset MenuFrameset(java.lang.String persistantObjId,
int layout,
E4ServletImplementation_Intf servlet)
persistantObjId - the ID of the menu element for session persistancelayout - a menu layout, E4Menuservlet - the current servlet context
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||