|
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.E4Box
public class E4Box
Display a small box with a caption and some content. You will find these small, useful elements in many web pages. They are all similar: there is a small border around, a caption ahead and they include a small portion of content.
e4s.html.E4HtmlContentElement#InfoBox,
E4Message,
E4BoxRoundCorners| Field Summary | |
|---|---|
static int |
CAPTION_HEIGHT
|
| 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 | |
|---|---|
E4Box()
Construct a E4Box object, using no caption. |
|
E4Box(E4Box source)
Construct a E4Box object, using a predefined source object whereas all settings and layouts will be copied. |
|
E4Box(E4HtmlElement_Intf caption)
Construct a E4Box object using a caption. |
|
E4Box(E4Label_Intf caption)
Construct a E4Box object using a caption. |
|
E4Box(java.lang.String caption)
Construct a E4Box object using a caption that will be translated in E4LabelApp-mode. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
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 text definitions used so far during display of this page for translations |
FORM |
FORM()
|
FORM |
FORM(E4Method mref)
|
FORM |
FORM(java.lang.String name)
|
E4Label_Intf |
getCaption()
Get the caption of the E4Box. |
int |
getCellpadding()
|
void |
setAlign(Align align)
Define the horizontal Align, which is used for the caption as well as for the content area. |
void |
setAlign(VAlign align)
Define the vertical Align, which is used for the caption as well as for the content area. |
void |
setBackground(IMG background)
Define an image for the background of the content area only. |
void |
setCaption(E4Label_Intf caption)
Define the caption for the E4Box. |
void |
setCaption(java.lang.String caption)
Define the caption for the E4Box using a caption that will be translated in E4LabelApp-mode. |
void |
setCellpadding(int padding)
|
void |
setClass_Caption(CLASS_Name classname)
Define a E4CSS class for the caption area (<TD>-Tag). |
void |
setClass_Table(CLASS_Name classname)
Define a E4CSS class for <TABLE>-Tag around the E4Box. |
void |
setClass(CLASS_Name classname)
Define a E4CSS class for the content area (<TD>-Tag). |
void |
setColorBackground(E4Color color)
Define a color for the content area background. |
void |
setColorBorder(E4Color color)
Define a color for the border. |
void |
setColorCaption(E4Color color)
Define a color for the caption area background. |
void |
setFont(FONT font)
Define the FONT, which is used for the caption as well as for
the content area. |
void |
setHeight(float height)
Set height of the E4Box to the specified relative percentage value. |
void |
setHeight(int height)
Set height of the E4Box to the specified absolut value. |
void |
setHeightMax()
Set height of the E4Box to the maximum (100%). |
void |
setHeightMaximum()
Deprecated. |
void |
setVAlign(VAlign align)
Set the vertical alignment (same as setAlign(e4s.html.VAlign)). |
void |
setWidth(float width)
Set width of the E4Box to the specified relative percentage value. |
void |
setWidth(int width)
Set width of the E4Box to the specified absolut value. |
void |
setWidthMax()
Set width of the E4Box to the maximum (100%). |
void |
setWidthMaximum()
Deprecated. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
| 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, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Field Detail |
|---|
public static int CAPTION_HEIGHT
| Constructor Detail |
|---|
public E4Box()
#constructor( String )public E4Box(E4Box source)
source - the source E4Box to copy data frompublic E4Box(java.lang.String caption)
E4LabelApp-mode.
caption - the caption for the E4Box#constructor(E4Label_Intf),
setCaption(java.lang.String)public E4Box(E4Label_Intf caption)
caption - the caption for the E4Box#constructor(String),
setCaption(java.lang.String)public E4Box(E4HtmlElement_Intf caption)
caption - the caption for the E4Box#constructor(String),
setCaption(java.lang.String)| Method Detail |
|---|
public void setCaption(java.lang.String caption)
E4LabelApp-mode.
caption - the caption for the E4BoxgetCaption(),
setCaption(E4Label_Intf)public void setCaption(E4Label_Intf caption)
caption - the caption for the E4BoxgetCaption(),
setCaption(String)public E4Label_Intf getCaption()
setCaption(java.lang.String)public void setFont(FONT font)
FONT, which is used for the caption as well as for
the content area. But changing the font of the content area is easy, just use the
E4HtmlContentElement.FONT() function.
font - the font to be setpublic void setAlign(Align align)
align - the alignmentpublic void setAlign(VAlign align)
align - the alignmentpublic void setVAlign(VAlign align)
setAlign(e4s.html.VAlign)).
align - the alignmentpublic void setBackground(IMG background)
background - the image to be used in the content areapublic void setColorBackground(E4Color color)
color - the colorsetColorCaption(e4s.html.E4Color),
setColorBorder(e4s.html.E4Color)public void setColorCaption(E4Color color)
color - the colorsetColorBorder(e4s.html.E4Color),
setColorBackground(e4s.html.E4Color)public void setColorBorder(E4Color color)
color - the colorsetColorCaption(e4s.html.E4Color),
setColorBackground(e4s.html.E4Color)public void setClass(CLASS_Name classname)
classname - the name of the E4CSS class.setClass_Caption(e4s.html.style.CLASS_Name),
setClass_Table(e4s.html.style.CLASS_Name)public void setClass_Caption(CLASS_Name classname)
classname - the name of the E4CSS class.setClass(e4s.html.style.CLASS_Name),
setClass_Table(e4s.html.style.CLASS_Name)public void setClass_Table(CLASS_Name classname)
classname - the name of the E4CSS class.setClass(e4s.html.style.CLASS_Name),
setClass_Caption(e4s.html.style.CLASS_Name)public void setWidthMax()
setWidth(int)public void setWidthMaximum()
setWidthMax()public void setWidth(int width)
width - with in pixelsetWidth(float),
setWidthMax()public void setWidth(float width)
width - with in percentage, must be a value between 0.0f and 1.0fsetWidth(int),
setWidthMax()public void setHeightMax()
setHeight(int)public void setHeightMaximum()
setHeightMax()public void setHeight(int height)
height - with in pixelsetHeight(float),
setHeightMax()public void setHeight(float height)
height - with in percentage, must be a value between 0.0f and 1.0fsetHeight(int),
setHeightMax()
public void collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
collectTranslationsForEditing in interface E4HtmlElement_IntfcollectTranslationsForEditing in class E4HtmlElementGeneralv - the Vector where the translations will be collectedservlet - the current servlet instanceE4ServletImplementation_Intf.sessionCanEditTranslations()
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, STYLE_Name, boolean)
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 - is the servlet context which can be retrieved using the E4ModuleImplementation.getServlet().
java.lang.Exception#toHtml(E4ServletImplementation_Intf, boolean)public FORM FORM()
public FORM FORM(java.lang.String name)
public FORM FORM(E4Method mref)
public void setCellpadding(int padding)
public int getCellpadding()
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 | ||||||||