public final class HTMLRow extends HTMLContainer
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX| Constructor and Description |
|---|
HTMLRow() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellEvent(HTMLEvent event,
int col) |
void |
addEvent(HTMLEvent event,
java.lang.String script) |
void |
cancelSingleClickBubbleForAnchors(boolean flag)
at compile time scan for HTMLAnchors and cancel the bubble.
|
protected void |
compile(ClientBrowser browser)
I'll make the table a square.
|
java.awt.Color |
getBackGround() |
java.awt.Color |
getCellBackGroundColor(int col) |
int |
getCellRowSpan(int col)
Return the rowspan of the cell
|
java.lang.Object |
getCellTag(int col) |
int |
getColumns() |
java.awt.Color |
getHighlightColor()
Gets the color when the mouse over the row.
|
java.lang.String |
getId()
get the ID of this component
|
java.lang.String |
getRowHeight() |
java.lang.String |
getToolTip() |
protected void |
iGenerate(ClientBrowser browser,
java.lang.StringBuilder buffer)
generate the raw HTML for this component.
|
protected void |
iGenerateComponent(HTMLComponent theItem,
ClientBrowser browser,
int col,
java.lang.StringBuilder buffer) |
void |
insertCell(HTMLComponent cell,
int col)
Inserts a new cell into a row forcing all existing cells after specified col to
be moved one position to the right
|
protected void |
makeListOfEvents(java.util.List list) |
void |
setBackGround(java.awt.Color color) |
void |
setCell(HTMLComponent cell,
int col)
Replaces the cell at the specified position.
|
void |
setCellAlignment(java.lang.String alignment,
int col) |
void |
setCellBackGroundColor(java.awt.Color bgcolor,
int col) |
void |
setCellBackGroundImage(java.lang.String url,
int col) |
void |
setCellColSpan(int span,
int col) |
void |
setCellHeight(java.lang.String height,
int col) |
void |
setCellID(java.lang.String ID,
int col)
Sets the ID for a particular cell.
|
void |
setCellNoWrap(boolean noWrap,
int col) |
void |
setCellRowSpan(int span,
int col) |
void |
setCellStyle(HTMLStyleSheet ss,
int col) |
void |
setCellStyleProperty(java.lang.String type,
java.lang.String value,
int col) |
void |
setCellTag(java.lang.Object data,
int col)
Stores data of any type against the cell.
|
void |
setCellToolTip(java.lang.String tip,
int col) |
void |
setCellVerticalAlignment(java.lang.String alignment,
int col) |
void |
setCellWidth(java.lang.String width,
int col) |
void |
setCursor(java.lang.String cursor)
Change the cursor when mouse over this row
|
void |
setHeaderRow(boolean headerRow) |
void |
setHighlightColor(java.awt.Color color)
Sets the color when the mouse over the row.
|
void |
setHighlightColor(int color)
Sets the color when the mouse over the row.
|
void |
setId(java.lang.String id)
set the ID of this component.
|
void |
setParent(HTMLComponent parent)
Set the parent of this component internally called by
addComponent
|
void |
setRowHeight(java.lang.String height) |
void |
setStyleProperty(java.lang.String type,
java.lang.String value)
Set the internal style of this component.
if this method is used for a component, this component will be appended a class attribute. If this method is used, iGenerateAttributes() method must be used to generate the CSS. |
void |
setToolTip(java.lang.String toolTip) |
java.lang.String |
toString() |
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponentaddJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setTabIndex, touchpublic void setHeaderRow(boolean headerRow)
headerRow - if true then <TH> will be generatedpublic java.awt.Color getHighlightColor()
public void setHighlightColor(int color)
color - the highlight colorpublic void setHighlightColor(java.awt.Color color)
color - the highlight colorpublic void setCursor(java.lang.String cursor)
cursor - public void cancelSingleClickBubbleForAnchors(boolean flag)
flag - TRUE to cancel the bubble.public int getColumns()
public java.lang.String getToolTip()
public void setToolTip(java.lang.String toolTip)
toolTip - public void setParent(HTMLComponent parent)
HTMLComponentsetParent in class HTMLComponentparent - public void setBackGround(java.awt.Color color)
color - public java.awt.Color getBackGround()
public void setCellAlignment(java.lang.String alignment,
@Nonnegative
int col)
alignment - col - the columnpublic void setCellStyle(HTMLStyleSheet ss, int col)
ss - col - the columnpublic void setCellHeight(java.lang.String height,
int col)
height - col - the columnpublic void setCellNoWrap(boolean noWrap,
int col)
noWrap - col - the columnpublic void setCellStyleProperty(java.lang.String type,
java.lang.String value,
int col)
type - the typevalue - the valuecol - the columnpublic void setCellBackGroundColor(java.awt.Color bgcolor,
int col)
bgcolor - col - the columnpublic java.awt.Color getCellBackGroundColor(int col)
col - the columnpublic void setCellBackGroundImage(java.lang.String url,
int col)
url - col - the columnpublic void setCellColSpan(int span,
int col)
span - col - the columnpublic void setCellWidth(java.lang.String width,
int col)
width - col - the columnpublic void setCellVerticalAlignment(java.lang.String alignment,
int col)
alignment - col - the columnpublic java.lang.String getRowHeight()
public void setRowHeight(java.lang.String height)
height - public void setCellRowSpan(int span,
int col)
span - col - the columnpublic int getCellRowSpan(int col)
col - columnpublic void setCellToolTip(java.lang.String tip,
int col)
tip - col - the columnpublic void setCellID(java.lang.String ID,
int col)
ID - col - the columnpublic void setCellTag(java.lang.Object data,
int col)
data - col - the columnpublic java.lang.Object getCellTag(int col)
col - the columnpublic void addEvent(HTMLEvent event, java.lang.String script)
event - the eventscript - public void addCellEvent(@Nonnull
HTMLEvent event,
int col)
event - the eventcol - the columnprotected void makeListOfEvents(@Nonnull
java.util.List list)
makeListOfEvents in class HTMLComponentlist - public void setCell(HTMLComponent cell, int col)
cell - col - the columnpublic void insertCell(HTMLComponent cell, int col)
cell - col - the column@CheckReturnValue @Nullable public java.lang.String getId()
getId in class HTMLComponentpublic void setId(java.lang.String id)
id - The id of the component@CheckReturnValue @Nonnull public java.lang.String toString()
toString in class java.lang.Objectpublic void setStyleProperty(java.lang.String type,
java.lang.String value)
HTMLComponentsetStyleProperty in class HTMLComponenttype - the typevalue - the valueprotected void compile(ClientBrowser browser)
compile in class HTMLComponentbrowser - protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate in class HTMLComponentbrowser - The target browserbuffer - The generate HTMLprotected void iGenerateComponent(HTMLComponent theItem, ClientBrowser browser, int col, java.lang.StringBuilder buffer)
iGenerateComponent in class HTMLComponenttheItem - browser - col - the columnbuffer - stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.