|
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.E4BoxRoundCorners
public class E4BoxRoundCorners
Draw a box with rounded corners. The rounded corners are defined
as GIF images with a transparent section and a white section. The
transparent section is in foreground of the getBorderColor().
This results, that this component cannot be used on other rather
than white backgrounds.
E4Box,
Example_BoxRoundCorners.java
| Field Summary | |
|---|---|
static int |
IMG_HEIGHT
Default image height for the corner images. |
static int |
IMG_HEIGHT_SPACER
Default image height for the left/right spacer images. |
static int |
IMG_WIDTH
Default image width for the corner images. |
static IMG |
LEFT_BOTTOM
Default image for the left-bottom corner. |
static IMG |
LEFT_MIDDLE
Default image for the left-middle corner. |
static IMG |
LEFT_TOP
Default image for the left-top corner. |
static IMG |
LEFT_TOP_FILLED
Default image for the left-border corner. |
static IMG |
RIGHT_BOTTOM
Default image for the right-bottom corner. |
static IMG |
RIGHT_MIDDLE
Default image for the right-middle corner. |
static IMG |
RIGHT_TOP
Default image for the right-top corner. |
static IMG |
RIGHT_TOP_FILLED
Default image for the right-bottom corner. |
| 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 | |
|---|---|
E4BoxRoundCorners()
Construct a box with rounded corners but no caption. |
|
E4BoxRoundCorners(E4HtmlElement_Intf caption)
Construct a box with rounded corners and a caption. |
|
E4BoxRoundCorners(E4Label_Intf caption)
Construct a box with rounded corners and a caption. |
|
E4BoxRoundCorners(java.lang.String caption)
Construct a box with rounded corners and a caption. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
Get a vector of used scripts from all subelements. |
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 |
E4Color |
getBgColor()
Get the background color. |
E4Color |
getBorderColor()
Get the color for the border. |
E4Label_Intf |
getCaption()
Get the caption. |
java.lang.String |
getHeight()
Get the height. |
java.lang.String |
getWidth()
Get the width. |
void |
setBgColor(E4Color color)
Set the color for the background - this requires custom images with this color to be defined using setImages(e4s.html.IMG, e4s.html.IMG, e4s.html.IMG, e4s.html.IMG). |
void |
setBorderColor(E4Color color)
Set the color for the border. |
void |
setCaption(E4HtmlElement_Intf caption)
Set the caption. |
void |
setCaption(E4Label_Intf caption)
Set the caption. |
void |
setCaption(FONT font,
boolean bold,
E4Label_Intf caption)
Set the caption. |
void |
setCaption(FONT font,
boolean bold,
java.lang.String caption)
Set the caption. |
void |
setCaption(java.lang.String caption)
Set the caption. |
void |
setHeight(int height)
Set the inner height of the table in pixels. |
void |
setHeight(java.lang.String height)
Set the inner height of the table. |
void |
setHeightMax()
Set the inner height of the table to the maximum. |
void |
setImages(IMG left_top,
IMG right_top,
IMG right_bottom,
IMG left_bottom)
Set the images for the rounded corners. |
void |
setSmallLineAfterCaption(boolean mode)
Add a small, 2px hight line after the caption but before the content. |
void |
setWidth(int width)
Set the inner width of the table in pixels. |
void |
setWidth(java.lang.String width)
Set the inner width of the table. |
void |
setWidthMax()
Set the inner width of the table to the maximum. |
static void |
toHtml_BottomRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
IMG left_bottom,
IMG right_bottom)
|
static void |
toHtml_CaptionRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
E4HtmlElement_Intf caption,
FONT font,
boolean bold,
boolean small_line_after_caption)
|
static TD[] |
toHtml_DataRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol)
|
static void |
toHtml_SpacerRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
java.lang.String height,
IMG left_spacer,
IMG right_spacer)
|
static void |
toHtml_TopRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
E4HtmlElement_Intf caption,
IMG left_top,
IMG right_top)
|
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Render this component. |
| 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, 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, 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 IMG LEFT_TOP
public static final IMG RIGHT_TOP
public static final IMG LEFT_MIDDLE
public static final IMG RIGHT_MIDDLE
public static final IMG LEFT_BOTTOM
public static final IMG RIGHT_BOTTOM
public static final IMG LEFT_TOP_FILLED
public static final IMG RIGHT_TOP_FILLED
public static final int IMG_WIDTH
public static final int IMG_HEIGHT
public static final int IMG_HEIGHT_SPACER
| Constructor Detail |
|---|
public E4BoxRoundCorners()
E4BoxRoundCorners(String),
E4BoxRoundCorners(e4s.translate.E4Label_Intf)public E4BoxRoundCorners(E4Label_Intf caption)
caption - the captionE4BoxRoundCorners(),
E4BoxRoundCorners(String),
setCaption(e4s.translate.E4Label_Intf)public E4BoxRoundCorners(E4HtmlElement_Intf caption)
caption - the captionE4BoxRoundCorners(),
E4BoxRoundCorners(String),
setCaption(e4s.translate.E4Label_Intf)public E4BoxRoundCorners(java.lang.String caption)
caption - the captionE4BoxRoundCorners(),
E4BoxRoundCorners(e4s.translate.E4Label_Intf),
setCaption(String)| Method Detail |
|---|
public void setSmallLineAfterCaption(boolean mode)
mode - true (default) add this small linepublic void setWidth(int width)
IMG_WIDTH.
width - the inner width in pixels.setWidthMax(),
getWidth()public void setHeight(int height)
IMG_WIDTH.
width - the inner width in pixels.setWidthMax(),
getWidth()public void setWidth(java.lang.String width)
setWidth(int),
getWidth()public void setHeight(java.lang.String height)
setHeight(int),
getHeight()public void setWidthMax()
setWidth(int),
getWidth()public void setHeightMax()
setHeight(int),
getHeight()public java.lang.String getWidth()
setWidthMax(),
setWidth(int)public java.lang.String getHeight()
setHeightMax(),
setHeight(int)
public void setCaption(FONT font,
boolean bold,
E4Label_Intf caption)
getBgColor().
font - the font to be used for the caption (the default is ARIAL)bold - make the caption in bold letters (default)caption - the text to be displayed, a value of null turns off the caption displaygetCaption(),
setCaption(e4s.translate.E4Label_Intf),
setCaption(String),
setCaption(e4s.html.FONT,boolean,String)public void setCaption(java.lang.String caption)
getBorderColor().
caption - the text to be displayed, a value of null turns off the caption displaygetCaption(),
setCaption(e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,String)public void setCaption(E4Label_Intf caption)
getBgColor().
caption - the text to be displayed, a value of null turns off the caption displaygetCaption(),
setCaption(String),
setCaption(e4s.html.FONT,boolean,e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,String)public void setCaption(E4HtmlElement_Intf caption)
getBgColor().
caption - the text to be displayed, a value of null turns off the caption displaygetCaption(),
setCaption(String),
setCaption(e4s.html.FONT,boolean,e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,String)
public void setCaption(FONT font,
boolean bold,
java.lang.String caption)
getBgColor().
font - the font to be used for the caption (the default is ARIAL)bold - make the caption in bold letters (default)caption - the text to be displayed, a value of null turns off the caption displaygetCaption(),
setCaption(e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,e4s.translate.E4Label_Intf),
setCaption(String)public E4Label_Intf getCaption()
getBgColor().
By default, there will be no caption.
setCaption(e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,e4s.translate.E4Label_Intf),
setCaption(e4s.html.FONT,boolean,String),
setCaption(String)public void setBgColor(E4Color color)
setImages(e4s.html.IMG, e4s.html.IMG, e4s.html.IMG, e4s.html.IMG).
color - the background color, a value of null indicates no background color.getBgColor(),
setImages(e4s.html.IMG, e4s.html.IMG, e4s.html.IMG, e4s.html.IMG)public E4Color getBgColor()
setBgColor(e4s.html.E4Color)public void setBorderColor(E4Color color)
color - (if null, the default color E4Color.GRAY
will be used.getBorderColor()public E4Color getBorderColor()
setBgColor(e4s.html.E4Color)
public void setImages(IMG left_top,
IMG right_top,
IMG right_bottom,
IMG left_bottom)
IMG_WIDTH and the height shall be IMG_HEIGHT.
left_top - left-top image, default is LEFT_TOP or LEFT_TOP_FILLED in the case of a caption defined.right_top - right-top image, default is RIGHT_TOP or RIGHT_TOP_FILLED in the case of a caption defined.right_bottom - right-bottom image, default is RIGHT_BOTTOMleft_bottom - left-bottom image, default is LEFT_BOTTOM
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
toHtml in interface E4HtmlElement_IntftoHtml in class E4HtmlElementGeneralservlet - a valid server context.
java.lang.Exception
public static TD[] toHtml_DataRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol)
public static void toHtml_BottomRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
IMG left_bottom,
IMG right_bottom)
throws java.lang.Exception
java.lang.Exception
public static void toHtml_CaptionRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
E4HtmlElement_Intf caption,
FONT font,
boolean bold,
boolean small_line_after_caption)
throws java.lang.Exception
java.lang.Exception
public static void toHtml_TopRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
E4HtmlElement_Intf caption,
IMG left_top,
IMG right_top)
throws java.lang.Exception
java.lang.Exception
public static void toHtml_SpacerRow(TABLE table,
int colspan_data,
E4Color col,
E4Color bgcol,
java.lang.String width,
java.lang.String height,
IMG left_spacer,
IMG right_spacer)
throws java.lang.Exception
java.lang.Exception
public void collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
collectStylesForEditing in interface E4HtmlElement_IntfcollectStylesForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collectedservlet - the servlet contextE4ServletImplementation_Intf.sessionCanEditStyles(),
#collectStylesForEditing(e4s.html.style.E4StylesHash, STYLE_Name, boolean)
public void collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneral
collectScripts in interface E4HtmlElement_IntfcollectScripts in class E4HtmlElementGeneralv - collect the names of all scriptsservlet - the servlet contextE4JavaScript
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 servlet contextE4Label_Intfpublic 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 | ||||||||