|
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.E4Message
public class E4Message
Display a message (text surrounded by a box).
| Example_BoxRoundCorners.java |
e4s.html.E4HtmlContentElement#E4Message(int,String),
e4s.html.E4HtmlContentElement#E4Message(int,e4s.translate.E4Label_Intf),
E4Box,
e4s.html.BoxRc| Field Summary | |
|---|---|
static int |
CAPTION
Display a box, without any image. |
static int |
ERROR
Display a box, use a "stop-sign" image. |
static int |
INFO
Display a box, use a "info-sign" image. |
static E4Color |
m_E4Color_CAPTION
|
static E4Color |
m_E4Color_ERROR
|
static E4Color |
m_E4Color_INFO
|
static E4Color |
m_E4Color_PERMISSION
|
static E4Color |
m_E4Color_QUESTION
|
static E4Color |
m_E4Color_WAIT
|
static E4Color |
m_E4Color_WARNING
|
static int |
PERMISSION
Display a box, use a "restricted" image. |
static int |
QUESTION
Display a box, use a "questionmark-sign" image. |
static int |
WAIT
Display a hour-glass symbol image. |
static int |
WARNING
Display a box, use a "i-sign" image. |
| 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 | |
|---|---|
E4Message(E4Label_Intf msg)
Construct a message, use the CAPTION mode for display. |
|
E4Message(int state,
E4Label_Intf msg)
Construct a message, use the CAPTION mode for display. |
|
E4Message(int state,
java.lang.String msg)
Construct a message, use the CAPTION mode for display. |
|
E4Message(java.lang.String msg)
Construct a message, use the CAPTION mode for display. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
|
void |
collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with style definitions used so far during display of this page. |
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
static void |
setColor_CAPTION(E4Color color)
Set the default color for E4Messages of style QUESTION. |
static void |
setColor_ERROR(E4Color color)
Set the default color for E4Messages of style ERROR. |
static void |
setColor_INFO(E4Color color)
Set the default color for E4Messages of style INFO. |
static void |
setColor_QUESTION(E4Color color)
Set the default color for E4Messages of style QUESTION. |
static void |
setColor_WARNING(E4Color color)
Set the default color for E4Messages of style WARNING. |
static void |
setDefaultSTYLE(CLASS_Name classname_box,
CLASS_Name classname_content)
Set the E4CSS Style for all message (static), valid unless you overwrite the style for a particular message using setSTYLE(e4s.html.style.CLASS_Name, e4s.html.style.CLASS_Name)). |
void |
setSTYLE_Box(CLASS_Name classname_box)
Set the E4CSS Style for this particular message (surrounding box only). |
void |
setSTYLE(CLASS_Name classname_content)
Set the E4CSS Style for this particular message (inner content table only). |
void |
setSTYLE(CLASS_Name classname_box,
CLASS_Name classname_content)
Set the E4CSS Style for this particular message. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
void |
useAbsolutePathForImages(boolean mode)
|
| 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, toDebug, 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, 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 int CAPTION
public static final int ERROR
E4Images.msg_error,
Constant Field Valuespublic static final int WARNING
E4Images.msg_warning,
Constant Field Valuespublic static final int INFO
E4Images.msg_info,
Constant Field Valuespublic static final int PERMISSION
E4Images.msg_question,
Constant Field Valuespublic static final int QUESTION
E4Images.msg_question,
Constant Field Valuespublic static final int WAIT
E4Images.msg_wait,
Constant Field Valuespublic static E4Color m_E4Color_ERROR
public static E4Color m_E4Color_PERMISSION
public static E4Color m_E4Color_WARNING
public static E4Color m_E4Color_INFO
public static E4Color m_E4Color_WAIT
public static E4Color m_E4Color_QUESTION
public static E4Color m_E4Color_CAPTION
| Constructor Detail |
|---|
public E4Message(java.lang.String msg)
CAPTION mode for display.
msg - the message to be displayedpublic E4Message(E4Label_Intf msg)
CAPTION mode for display.
msg - the message to be displayed
public E4Message(int state,
java.lang.String msg)
CAPTION mode for display.
state - the display-state for this message (CAPTION which is the default,
ERROR, INFO).msg - the message to be displayed
public E4Message(int state,
E4Label_Intf msg)
CAPTION mode for display.
state - the display-state for this message (CAPTION which is the default,
ERROR, INFO).msg - the message to be displayed| Method Detail |
|---|
public void setSTYLE(CLASS_Name classname_box,
CLASS_Name classname_content)
classname_box - the name of a E4CSS class for the surrounding boxclassname_content - the name of a E4CSS class for the content tablepublic void setSTYLE_Box(CLASS_Name classname_box)
classname_box - the name of a E4CSS class for the surrounding boxpublic void setSTYLE(CLASS_Name classname_content)
classname_content - the name of a E4CSS class for the content table
public static void setDefaultSTYLE(CLASS_Name classname_box,
CLASS_Name classname_content)
setSTYLE(e4s.html.style.CLASS_Name, e4s.html.style.CLASS_Name)).
classname_box - the name of a E4CSS class for the surrounding boxclassname_content - the name of a E4CSS class for the inner text
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 E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exception
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_Intf
public void collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
E4StyleUsage.
collectStylesForEditing in interface E4HtmlElement_IntfcollectStylesForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the servlet contextE4ServletImplementation_Intf.sessionCanEditStyles(),
#collectStylesForEditing(e4s.html.style.E4StylesHash, e4s.html.style.STYLE_Name, boolean)public static void setColor_ERROR(E4Color color)
ERROR.
color - the color to be usedERROR,
setColor_INFO(e4s.html.E4Color),
setColor_WARNING(e4s.html.E4Color),
setColor_QUESTION(e4s.html.E4Color)public static void setColor_WARNING(E4Color color)
WARNING.
color - the color to be usedWARNING,
setColor_ERROR(e4s.html.E4Color),
setColor_INFO(e4s.html.E4Color),
setColor_QUESTION(e4s.html.E4Color),
setColor_CAPTION(e4s.html.E4Color)public static void setColor_INFO(E4Color color)
INFO.
color - the color to be usedINFO,
setColor_ERROR(e4s.html.E4Color),
setColor_WARNING(e4s.html.E4Color),
setColor_QUESTION(e4s.html.E4Color),
setColor_CAPTION(e4s.html.E4Color)public static void setColor_QUESTION(E4Color color)
QUESTION.
color - the color to be usedQUESTION,
setColor_ERROR(e4s.html.E4Color),
setColor_INFO(e4s.html.E4Color),
setColor_WARNING(e4s.html.E4Color),
setColor_CAPTION(e4s.html.E4Color)public static void setColor_CAPTION(E4Color color)
QUESTION.
color - the color to be usedCAPTION,
setColor_ERROR(e4s.html.E4Color),
setColor_INFO(e4s.html.E4Color),
setColor_WARNING(e4s.html.E4Color),
setColor_QUESTION(e4s.html.E4Color)public void useAbsolutePathForImages(boolean mode)
public static java.lang.String _getSVNVersionString()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||