|
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.E4HtmlElementPersistant
e4s.html.TABLE
public class TABLE
<TABLE>-tag representation. The TABLE element is intended to display data layouted in HTML tables. It has nothing to do with a database table. Each table consists of rows (<TR;gt;) and each row consists of cells (<TD;gt;).
| Example_Table.java |
TR,
TD,
E4TableColGroup,
Align| Nested Class Summary | |
|---|---|
static class |
TABLE.E4TableElement
Abstract class for TFOOT, THEAD or TBODY |
static class |
TABLE.TBODY
Table Body |
static class |
TABLE.TFOOT
Table Foot |
static class |
TABLE.THEAD
Table Header |
| Field Summary | |
|---|---|
static STYLE_Name |
DEFAULTSTYLE
|
static java.lang.String |
HTML_TAG
|
| 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 | |
|---|---|
TABLE()
|
|
TABLE(E4ID parent_id)
|
|
TABLE(E4ID parent_id,
STYLE_Name parent_style)
|
|
TABLE(E4ID parent_id,
TABLE template)
Create a TABLE object using the parameters from the given table object template. |
|
TABLE(STYLE_Name parent_style)
|
|
TABLE(TABLE template)
Create a TABLE object using the parameters from the given table object template. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
addElement(E4HtmlElement_Intf element)
Adds an element to the internal Vector. |
static TABLE |
E4S_DEFAULT_TABLE()
Get a default table layout which contains a small gray border and font ARIAL. |
E4Color |
getBgColor()
|
IMG |
getBgImage()
|
boolean |
getBorder()
|
E4Color |
getBorderColor()
|
E4Color |
getCellBgColor()
Get the background color for the cell (not the table). |
FONT |
getFONT()
|
void |
Header(E4Label_Intf[] header)
Make a header row containing the specified labels, using E4Color.LIGHT_GRAY for the background color. |
void |
Header(E4Label_Intf[] header,
CLASS_Name classname)
Make a header row containing the specified labels. |
void |
Header(E4Label_Intf[] header,
E4Color bgcolor)
Make a header row containing the specified labels. |
void |
Header(E4Label_Intf[] header,
E4Color bgcolor,
CLASS_Name classname)
Make a header row containing the specified labels untranslated. |
void |
Header(E4LabelsVec header)
Make a header row containing the specified labels, using E4Color.LIGHT_GREY for the background color. |
void |
Header(E4LabelsVec header,
CLASS_Name classname)
Make a header row containing the specified labels. |
void |
Header(E4LabelsVec header,
E4Color bgcolor)
Make a header row containing the specified labels. |
void |
Header(E4LabelsVec header,
E4Color bgcolor,
CLASS_Name classname)
Make a header row containing the specified labels untranslated. |
void |
Header(java.lang.String[] header)
Make a header row containing the specified labels untranslated. |
void |
Header(java.lang.String[] header,
CLASS_Name classname)
Make a header row containing the specified labels untranslated. |
void |
Header(java.lang.String[] header,
E4Color bgcolor)
Make a header row containing the specified labels untranslated. |
void |
Header(java.lang.String[] header,
E4Color bgcolor,
CLASS_Name classname)
Make a header row containing the specified labels untranslated. |
void |
Header(java.util.Vector vHeader,
CLASS_Name classname)
Make a header row containing the specified labels untranslated. |
void |
insertRow(TR tr,
int n)
Insert the TR element within the elements vector at the specified position, works only in the TBODY section. |
void |
removeElements()
Remove all elements. |
void |
removeElements(java.lang.Class clazz)
Remove all elements after and including a specified class. |
void |
reorderColumns(int[] idx)
|
void |
setBgColor(E4Color color)
|
void |
setBgImage(IMG image)
|
void |
setBorder()
|
void |
setBorderColor(E4Color color)
|
void |
setBorderColor(int red,
int green,
int blue)
Set the color for the border. |
void |
setCellBgColor(E4Color color)
Set the background color for the cell (not the table). |
void |
setCellpadding(int cellpadding)
|
void |
setCellspacing(int cellspacing)
|
void |
setCellspacing(int cellspacing,
int cellpadding)
|
void |
setColGroup(E4TableColGroup[] colgroup)
|
void |
setFONT(FONT font)
|
void |
setHeight(float height)
Set the table height in pixel. |
void |
setHeight(int height)
Set the table height in pixel. |
void |
setHeightMax()
|
void |
setHeightMaximum()
Deprecated. |
void |
setHeightPercentage(int percentage)
Deprecated. |
void |
setHeightPixel(int pixels)
Deprecated. |
void |
setId(java.lang.String id)
Define an ID for the table tag. |
void |
setSTYLE(CLASS_Name class_name)
|
void |
setWidth(float width)
Set the table width in pixel. |
void |
setWidth(int width)
Set the table width in pixel. |
void |
setWidthMax()
|
void |
setWidthMaximum()
Deprecated. |
void |
setWidthPercentage(int percentage)
Deprecated. |
void |
setWidthPixel(int pixels)
Deprecated. |
void |
swapColumns(int a,
int b)
Changes two elements within all TR in this table. |
TABLE.TBODY |
TBODY()
|
TD[] |
TD(int cols)
Add a TR and add a 1-dimensional array of TD elements. |
TD[][] |
TD(int rows,
int cols)
Create a 2-dimensional array of TD elements. |
TABLE.TFOOT |
TFOOT()
|
TABLE.THEAD |
THEAD()
|
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
TR |
TR()
Adds a TR element to the TBODY-section of that table. |
void |
twoColumns(E4Label_Intf c1,
int c2)
Create a TD including two columns. |
void |
twoColumns(E4Label_Intf c1,
java.lang.String c2)
Create a TD including two columns. |
void |
twoColumns(java.lang.String c1,
int c2)
Create a TD including two columns. |
void |
twoColumns(java.lang.String c1,
java.lang.String c2)
Create a TD including two columns. |
| Methods inherited from class e4s.html.E4HtmlElementPersistant |
|---|
preventFromRemoving, preventFromRemoving, removeAll |
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
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, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Field Detail |
|---|
public static final java.lang.String HTML_TAG
public static final STYLE_Name DEFAULTSTYLE
| Constructor Detail |
|---|
public TABLE(E4ID parent_id,
STYLE_Name parent_style)
public TABLE(STYLE_Name parent_style)
public TABLE(E4ID parent_id)
public TABLE()
public TABLE(E4ID parent_id,
TABLE template)
parent_id - the ID of the parent object.template - a defined TABLE object, it might be empty or not. Any data will not be
copied to the new created instance of TABLE, except definition parameters.public TABLE(TABLE template)
template - a defined TABLE object, it might be empty or not. Any data will not be
copied to the new created instance of TABLE, except definition parameters.| Method Detail |
|---|
public void removeElements(java.lang.Class clazz)
E4HtmlElementGeneral
removeElements in interface E4HtmlElement_IntfremoveElements in class E4HtmlElementGeneralclazz - the class to be removedE4HtmlElementGeneral.removeElements()public void removeElements()
E4HtmlElementGeneral
removeElements in class E4HtmlElementGeneralpublic void setSTYLE(CLASS_Name class_name)
public void setFONT(FONT font)
public FONT getFONT()
public void setBgImage(IMG image)
public IMG getBgImage()
public void setBorder()
public boolean getBorder()
public void setCellspacing(int cellspacing,
int cellpadding)
public void setCellspacing(int cellspacing)
public void setCellpadding(int cellpadding)
public void setBgColor(E4Color color)
public E4Color getBgColor()
public void setCellBgColor(E4Color color)
TR.setBgColor(e4s.html.E4Color),
getCellBgColor(),
setBgColor(e4s.html.E4Color),
setBorderColor(e4s.html.E4Color)public E4Color getCellBgColor()
TR.getBgColor(),
setCellBgColor(e4s.html.E4Color),
getBgColor(),
getBorderColor()public void setBorderColor(E4Color color)
public E4Color getBorderColor()
public void setWidthPercentage(int percentage)
setWidth(float)public void setWidthMax()
public void setWidthMaximum()
setWidthMax()public void setWidthPixel(int pixels)
setWidth(int)public void setWidth(int width)
width - a value for the width in pixelsetWidthMax(),
setWidth(float),
setHeight(int)public void setWidth(float width)
width - a value for the width in percent, between 0.0f and 1.0fsetWidthMax(),
setWidth(float)public void setHeightPercentage(int percentage)
public void setHeightMaximum()
setHeightMax()public void setHeightMax()
public void setHeight(int height)
height - a value for the height in pixelsetWidthMax(),
setHeight(float),
setWidth(int)public void setHeight(float height)
height - a value for the height in percent, between 0.0f and 1.0fsetWidthMax(),
setHeight(float)public void setHeightPixel(int pixels)
public void setBorderColor(int red,
int green,
int blue)
red - 0 <= red <= 0xFFgreen - 0 <= green <= 0xFFblue - 0 <= blue <= 0xFFpublic void setColGroup(E4TableColGroup[] colgroup)
public TR TR()
TR element to the TBODY-section of that table. To force other sections, you might
use THEAD() or TFOOT().
public void addElement(E4HtmlElement_Intf element)
E4HtmlElement
addElement in class E4HtmlElementelement - the element to be added
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 twoColumns(java.lang.String c1,
java.lang.String c2)
TD including two columns. This function is useful for common table outputs that
require a label on the left side and a value for the right side.
c1 - is printed into the first columnc2 - is printed into the second column
public void twoColumns(E4Label_Intf c1,
java.lang.String c2)
TD including two columns. This function is useful for common table outputs that
require a label on the left side and a value for the right side.
c1 - is printed into the first columnc2 - is printed into the second column
public void twoColumns(java.lang.String c1,
int c2)
TD including two columns. This function is useful for common table outputs that
require a label on the left side and a value for the right side.
c1 - is printed into the first columnc2 - is printed into the second column
public void twoColumns(E4Label_Intf c1,
int c2)
TD including two columns. This function is useful for common table outputs that
require a label on the left side and a value for the right side.
c1 - is printed into the first columnc2 - is printed into the second columnpublic static TABLE E4S_DEFAULT_TABLE()
BODY.TABLE(E2S_DEFAULT_TABLE());
public void Header(java.lang.String[] header,
CLASS_Name classname)
header - an array of header labelsclassname - a E4CSS class for the header (might be null)Header(java.lang.String[], e4s.html.style.CLASS_Name)
public void Header(java.lang.String[] header,
E4Color bgcolor)
header - an array of header labelsbgcolor - a color for the header (might be null)Header(java.lang.String[], e4s.html.style.CLASS_Name)public void Header(java.lang.String[] header)
E4Color.LIGHT_GREY as color and no css-style.
header - an array of header labelsHeader(java.lang.String[], e4s.html.style.CLASS_Name)
public void Header(java.lang.String[] header,
E4Color bgcolor,
CLASS_Name classname)
header - an array of header labelsbgcolor - a color for the header (might be null)classname - a E4CSS class for the header (might be null)Header(java.lang.String[], e4s.html.style.CLASS_Name)
public void Header(java.util.Vector vHeader,
CLASS_Name classname)
vHeader - a vector of header labels (objects of type String, E4Label_Intf or
E4String)classname - a E4CSS class for the header (might be null)
public void Header(E4Label_Intf[] header,
CLASS_Name classname)
header - an array of header labelsclassname - a E4CSS class for the header (might be null)Header( e4s.translate.E4LabelsVec, e4s.html.style.CLASS_Name )
public void Header(E4LabelsVec header,
CLASS_Name classname)
header - a vector of header labelsclassname - a E4CSS class for the header (might be null)Header( e4s.translate.E4Label_Intf[], e4s.html.style.CLASS_Name )
public void Header(E4Label_Intf[] header,
E4Color bgcolor)
header - an array of header labelsbgcolor - a color for the header (might be null)Header( e4s.translate.E4LabelsVec, e4s.html.E4Color )
public void Header(E4LabelsVec header,
E4Color bgcolor)
header - an array of header labelsbgcolor - a color for the header (might be null)Header( e4s.translate.E4Label_Intf[], e4s.html.E4Color )public void Header(E4LabelsVec header)
E4Color.LIGHT_GREY for the background color.
header - a vector of header labelsHeader( e4s.translate.E4Label_Intf[] )public void Header(E4Label_Intf[] header)
E4Color.LIGHT_GRAY for the background color.
header - an array of header labelsHeader( e4s.translate.E4LabelsVec )
public void Header(E4Label_Intf[] header,
E4Color bgcolor,
CLASS_Name classname)
header - an array of header labelsbgcolor - a color for the header (might be null)classname - a E4CSS class for the header (might be null)
public void Header(E4LabelsVec header,
E4Color bgcolor,
CLASS_Name classname)
header - a vector of header labelsbgcolor - a color for the header (might be null)classname - a E4CSS class for the header (might be null)
public TD[][] TD(int rows,
int cols)
TD elements. To access an element,
use row for first index, cols for second.
rows - the number of rowscols - the number of columns
TR(),
TR.TD()public TD[] TD(int cols)
TD elements. To access an element,
use index for the column.
cols - the number of columns
TD(int,int),
TR(),
TR.TD(int)
public void insertRow(TR tr,
int n)
tr - the TR element to be insertedn - the index (starting at 0)E4ElementsVec.insertElementAt(e4s.html.E4HtmlElement_Intf, int)public void setId(java.lang.String id)
public TABLE.THEAD THEAD()
public TABLE.TFOOT TFOOT()
public TABLE.TBODY TBODY()
public void reorderColumns(int[] idx)
public void swapColumns(int a,
int b)
TR in this table.
a - index of the fist elementb - index of the second elementTR.swapColumns(int,int)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 | ||||||||