|
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.TR
public class TR
a <TR>-tag representation. The TR element is intended to hold and display data for a single <TR> row. Each table consists of rows (<TR;gt;) and each row consists of cells (<TD;gt;).
| Example_Table.java |
TD,
TABLE.TR()| 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 | |
|---|---|
TR()
|
|
TR(E4ID parent_id)
|
|
TR(E4ID parent_id,
STYLE_Name parent_style)
|
|
TR(STYLE_Name parent_style)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
addElement(TD td)
|
E4Color |
getBgColor()
Get the color for the whole row by setting the <TD BGCOLOR=".." |
int |
getColCount()
Count the <TD> elements within this >TR<. |
FONT |
getFONT()
|
E4Color |
getHighlightColor()
Get the color for highlighting a tablerow on mouse-over effects. |
void |
reorderColumns(int[] idx)
|
void |
setBgColor(E4Color color)
Sets the color for the whole row by setting the <TD BGCOLOR=".." |
void |
setEventHandler(E4EventHandlerTR handler)
Set an event handler. |
void |
setFONT(FONT font)
Set the font for all TD elements that are added later to this TR using TD(). |
void |
setHighlightColor(E4Color color)
Set the color for highlighting a tablerow on mouse-over effects. |
void |
setId(java.lang.String id)
Define an ID for the TR tag. |
void |
setSTYLE(CLASS_Name class_name)
|
void |
Spacer(int len)
Create a 'spacer' <TF> tag. |
void |
swapColumns(int a,
int b)
Changes two elements (propably this will be TD elements. |
TD |
TD()
Create a TD element, associated with this TR element. |
TD |
TD(Align align)
|
TD |
TD(Align align,
VAlign valign)
|
TD[] |
TD(int columns)
Create an array of TD elements. |
TD[] |
TD(int columns,
Align align,
VAlign valign)
Create a number of TD elements. |
TD |
TD(VAlign valign)
|
TD |
TD(VAlign valign,
Align align)
|
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
| 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, collectScripts, collectStylesForEditing, collectTranslationsForEditing, 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 HTML_TAG
public static final STYLE_Name DEFAULTSTYLE
| Constructor Detail |
|---|
public TR(E4ID parent_id,
STYLE_Name parent_style)
public TR(STYLE_Name parent_style)
public TR()
public TR(E4ID parent_id)
| Method Detail |
|---|
public void setSTYLE(CLASS_Name class_name)
public TD TD()
public TD[] TD(int columns,
Align align,
VAlign valign)
columns - the size of the TD array (= number of columns), number must be > 0align - horizontal alignmentvalign - vertical alignment
public TD[] TD(int columns)
columns - the size of the TD array (= number of columns), number must be > 0
public TD TD(Align align)
public TD TD(VAlign valign)
public TD TD(VAlign valign,
Align align)
public TD TD(Align align,
VAlign valign)
public void setBgColor(E4Color color)
color - the color to be set or null to remove any previous specified color.TD.setBgColor(e4s.html.E4Color)public E4Color getBgColor()
color - the color to be set or null to remove any previous specified color.setBgColor(e4s.html.E4Color),
TD.getBgColor()public void setHighlightColor(E4Color color)
color - the color for the highlight effect, or null to turn off highlightingsetBgColor( e4s.html.E4Color ),
getHighlightColor()public E4Color getHighlightColor()
getBgColor(),
setHighlightColor( e4s.html.E4Color )
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.Exceptionpublic int getColCount()
public void setFONT(FONT font)
TD elements that are added later to this TR using TD().
Note that this function must be called before any TD are added.
font - the font or null to remove any previous specified font definitiongetFONT(),
TD.setFONT(e4s.html.FONT)public FONT getFONT()
public void Spacer(int len)
len - width of the spacer in pixel, a value of -1 indicates 100%public void addElement(TD td)
public void setId(java.lang.String id)
public void swapColumns(int a,
int b)
TD elements.
a - index of the fist elementb - index of the second elementTABLE.swapColumns(int,int)public void reorderColumns(int[] idx)
public void setEventHandler(E4EventHandlerTR handler)
E4JavaScript to execute some action defined in the handler
due to a specified event in the handler (e.g. On-Click, On-Mouse-Over, ..).
Note that there can be more than one event handler defined.
handler - the event-handlepublic 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 | ||||||||