|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsRow
public class LyStrutsRow
This class implements the Row object (as described in the dtd) for struts viewer.
ROW: Row
A row of a list is a set of non-empty cells (or input fields). It is possible to indicate if the
row is selected, if an image is assigned to it and if a tooltip is associated to it.
LyRow
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static boolean |
USE_COLUMN_INDEX_FOR_DOUBLE_CLICK
Indicates if column index must be sent to server for double-clicks |
static boolean |
USE_CONTEXT_MENU
Indicates if context menu must be used on row. |
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsRow(LyRow row)
Class constructor of a Row object for the Struts target. |
Method Summary | |
---|---|
void |
addComponent(LyComponent component,
int pos)
Inserts a sub-component components at given position. |
java.lang.String |
getAdditionalStyle()
Computes an additional style for a row. |
java.lang.String |
getAlignment()
Gets the alignment of the row. |
java.lang.String |
getBackgroundColorStyle()
Gets the HTML CSS style piece of tag for the background color of the row. |
java.lang.String |
getCellEditionScript(LyWebPageWriter pw,
int rowIndex,
int columnIndex)
Gets the Javascript code used when double-clicking on an editable cell. |
java.lang.String |
getClickScript(LyWebPageWriter pw,
int rowIndex)
Gets the Javascript code used when clicking on the row. |
java.lang.String |
getContextMenuScript(LyWebPageWriter pw,
int rowIndex,
java.lang.String selectColor)
Gets the Javascript code used when a context menu is performed. |
java.lang.String |
getDoubleClickScript(LyWebPageWriter pw,
int rowIndex,
int columnIndex)
Gets the Javascript code used when double-clicking on the row. |
java.lang.String |
getExpandRowScript(LyWebPageWriter pw)
Gets the expand row action and writes associated javascript function for this table. |
LyHeader.Align |
getHeaderAlignment()
Gets the header alignment of the row. |
java.lang.String |
getLinesAdditionalStyle()
Computes an additional style for row lines. |
java.lang.String |
getMouseOverScript(LyWebPageWriter pw,
int rowIndex,
java.lang.String color)
Gets the Javascript code used when mouse is over the row. |
java.lang.String |
getRowStyle(int rowIndex)
Gets the row style. |
java.lang.String |
getStatusScript(LyWebPageWriter pw)
Gets the Javascript code used when clicking on the status of the row. |
boolean |
hasComponents(boolean testToolbar)
Indicates if current row contains at least one component (field, editable cell or toolbar). |
void |
initialize()
Initialization method. |
void |
removeComponent(LyComponent components)
Removes a sub-component components. |
void |
setBorderColor(java.lang.String color)
Updates attribute borderColor to the given value. |
void |
setBorderHeight(int height)
Updates attribute borderHeight to the given value. |
void |
setColor(java.lang.String key)
Updates attribute color to the given value. |
void |
setHidden(boolean hidden)
Updates attribute hidden to the given value. |
void |
setImage(java.lang.String key)
Updates attribute image to the given value. |
void |
setIndex(java.lang.String index)
Updates attribute index to the given value. |
void |
setLabel(java.lang.String label)
Updates attribute label to the given value. |
void |
setOpen(boolean open)
Updates attribute open to the given value. |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
void |
writeHtml(LyWebPageWriter pw,
int rowIndex)
Writes HTML description corresponding to this row. |
void |
writeHtml(LyWebPageWriter pw,
int rowIndex,
int rowIndexInParent)
Writes HTML description corresponding to this row. |
Methods inherited from class leon.view.web.LyWebObject |
---|
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
public static boolean USE_COLUMN_INDEX_FOR_DOUBLE_CLICK
public static boolean USE_CONTEXT_MENU
Constructor Detail |
---|
public LyStrutsRow(LyRow row)
row
- the generic Row defined for every type of view targets.Method Detail |
---|
public void writeHtml(LyWebPageWriter pw, int rowIndex)
pw
- the page writerrowIndex
- the index of this rowLyWebComponent.writeHtml(LyWebPageWriter)
public void writeHtml(LyWebPageWriter pw, int rowIndex, int rowIndexInParent)
pw
- the page writerrowIndex
- the index of this rowrowIndexInParent
- the index of this row in this parent rowsLyWebComponent.writeHtml(LyWebPageWriter)
public java.lang.String getMouseOverScript(LyWebPageWriter pw, int rowIndex, java.lang.String color)
pw
- the page writerrowIndex
- the index of this rowcolor
- the color to be passed to the Javascript function
public java.lang.String getClickScript(LyWebPageWriter pw, int rowIndex)
pw
- the page writerrowIndex
- the index of this row
public java.lang.String getDoubleClickScript(LyWebPageWriter pw, int rowIndex, int columnIndex)
pw
- the page writerrowIndex
- the index of this rowcolumnIndex
- the index of the column
public java.lang.String getStatusScript(LyWebPageWriter pw)
pw
- the page writer
public java.lang.String getExpandRowScript(LyWebPageWriter pw)
pw
- the page writer
public java.lang.String getContextMenuScript(LyWebPageWriter pw, int rowIndex, java.lang.String selectColor)
pw
- the page writerrowIndex
- the index of this rowselectColor
- the color to be passed to the Javascript function
public java.lang.String getCellEditionScript(LyWebPageWriter pw, int rowIndex, int columnIndex)
pw
- the page writerrowIndex
- the index of this rowcolumnIndex
- the index of the cell column
public void setColor(java.lang.String key)
LyGraphicalRow
setColor
in interface LyGraphicalRow
setColor
in interface LySetColorInterface
key
- New value of color.public void initialize()
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic boolean hasComponents(boolean testToolbar)
testToolbar
- indicates if we must test the presence of a toolbar
public java.lang.String getAdditionalStyle()
public java.lang.String getLinesAdditionalStyle()
public java.lang.String getRowStyle(int rowIndex)
rowIndex
- the index of the row
public java.lang.String getBackgroundColorStyle()
public java.lang.String getAlignment()
public LyHeader.Align getHeaderAlignment()
public void setImage(java.lang.String key)
LyGraphicalRow
setImage
in interface LyGraphicalRow
setImage
in interface LySetImageInterface
key
- New value of image.public void setTooltip(java.lang.String tooltip)
LyGraphicalRow
setTooltip
in interface LyGraphicalRow
tooltip
- New value of tooltip.public void setOpen(boolean open)
LyGraphicalRow
setOpen
in interface LyGraphicalRow
open
- Boolean indicating if attribute open is set or unset.public void setHidden(boolean hidden)
LyGraphicalRow
setHidden
in interface LyGraphicalRow
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.public void setBorderHeight(int height)
LyGraphicalRow
setBorderHeight
in interface LyGraphicalRow
height
- New value of borderHeight.public void setBorderColor(java.lang.String color)
LyGraphicalRow
setBorderColor
in interface LyGraphicalRow
color
- New value of borderColor.public void setLabel(java.lang.String label)
LyGraphicalRow
setLabel
in interface LyGraphicalRow
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setIndex(java.lang.String index)
LyGraphicalRow
setIndex
in interface LyGraphicalRow
index
- New value of index.leon.view.setinterface.LyGraphicalRow#setIndex(java.lang.String)
public void addComponent(LyComponent component, int pos)
LyGraphicalRow
addComponent
in interface LyGraphicalRow
component
- The components to add to components list.pos
- Position where the sub-component is inserted.public void removeComponent(LyComponent components)
LyGraphicalRow
removeComponent
in interface LyGraphicalRow
components
- The components to remove to components list.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |