LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsCell

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsCell
All Implemented Interfaces:
LyGraphicalCell, LyGraphicalComponent, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetEditableInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface, LyWebComponent

public class LyStrutsCell
extends LyWebObject
implements LyGraphicalCell

This class implements the Cell object (as described in the dtd) for Struts viewer.

CELL: Cell
A cell may contain sub-cells to allow the construction of complex tables.

See Also:
LyCell

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsCell(LyCell cell)
          Class constructor of a Cell object for the struts target.
 
Method Summary
 void addCell(LyCell cell, int pos)
          (non-Javadoc).
 int[] getCellPosition()
          Returns the position of current cell in its parent table.
 void refresh()
          Overriden to call the refresh method on the parent row.
 void removeCell(LyCell cell)
          (non-Javadoc).
 void setBottomBorderColor(java.lang.String bottomBorderColor)
          (non-Javadoc).
 void setBottomLeftImage(java.lang.String bottomLeftImage)
          (non-Javadoc).
 void setBottomRightImage(java.lang.String bottomRightImage)
          (non-Javadoc).
 void setColor(java.lang.String color)
          (non-Javadoc).
 void setEditable(boolean editable)
          (non-Javadoc)
 void setFont(java.lang.String font)
          (non-Javadoc).
 void setImage(java.lang.String key)
          (non-Javadoc).
 void setLabel(java.lang.String label)
          (non-Javadoc).
 void setLeftBorderColor(java.lang.String leftBorderColor)
          (non-Javadoc).
 void setObjectId(java.lang.String objectId)
          (non-Javadoc).
 void setRightBorderColor(java.lang.String rightBorderColor)
          (non-Javadoc).
 void setSelected(boolean selected)
          (non-Javadoc)
 void setTooltip(java.lang.String tooltip)
          (non-Javadoc).
 void setTopBorderColor(java.lang.String topBorderColor)
          (non-Javadoc).
 void setTopLeftImage(java.lang.String topLeftImage)
          (non-Javadoc).
 void setTopRightImage(java.lang.String topRightImage)
          (non-Javadoc).
 void writeCellContent(LyWebPageWriter pw, int columnIndex)
          Write HTML content of this cell.
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 void writeHtml(LyWebPageWriter pw, int rowIndex, int columnIndex, int rowspanValue, java.lang.String extraContent)
          Write HTML description corresponding to this cell.
 
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, 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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsCell

public LyStrutsCell(LyCell cell)
Class constructor of a Cell object for the struts target.

Parameters:
cell - the generic Cell defined for every type of view targets.
Method Detail

setLabel

public void setLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setLabel in interface LyGraphicalCell
Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.
See Also:
LySetLabelInterface.setLabel(java.lang.String)

setObjectId

public void setObjectId(java.lang.String objectId)
(non-Javadoc).

Specified by:
setObjectId in interface LyGraphicalCell
Parameters:
objectId - New value of objectId.
See Also:
LyGraphicalCell.setObjectId(java.lang.String)

setImage

public void setImage(java.lang.String key)
(non-Javadoc).

Specified by:
setImage in interface LyGraphicalCell
Specified by:
setImage in interface LySetImageInterface
Parameters:
key - New value of image.
See Also:
LySetImageInterface.setImage(java.lang.String)

setEditable

public void setEditable(boolean editable)
(non-Javadoc)

Specified by:
setEditable in interface LyGraphicalCell
Specified by:
setEditable in interface LySetEditableInterface
Parameters:
editable - Boolean indicating if attribute editable is set or unset.
See Also:
LyGraphicalCell.setEditable(boolean)

setSelected

public void setSelected(boolean selected)
(non-Javadoc)

Specified by:
setSelected in interface LyGraphicalCell
Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.
See Also:
LyGraphicalCell.setSelected(boolean)

getCellPosition

public int[] getCellPosition()
Returns the position of current cell in its parent table.

Returns:
an array containing row index and column index of current cell.

writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

writeHtml

public void writeHtml(LyWebPageWriter pw,
                      int rowIndex,
                      int columnIndex,
                      int rowspanValue,
                      java.lang.String extraContent)
Write HTML description corresponding to this cell.

Parameters:
pw - the page writer
rowIndex - the cell rox index
columnIndex - the cell column index
rowspanValue - the cell row span value
extraContent - extra content to write in the cell

writeCellContent

public void writeCellContent(LyWebPageWriter pw,
                             int columnIndex)
Write HTML content of this cell.

Parameters:
pw - the page writer
columnIndex - the cell column index

setColor

public void setColor(java.lang.String color)
(non-Javadoc).

Specified by:
setColor in interface LyGraphicalCell
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.
See Also:
LySetColorInterface.setColor(java.lang.String)

setFont

public void setFont(java.lang.String font)
(non-Javadoc).

See Also:
LySetFontInterface.setFont(java.lang.String)

addCell

public void addCell(LyCell cell,
                    int pos)
(non-Javadoc).

Specified by:
addCell in interface LyGraphicalCell
Parameters:
cell - The cells to add to cells list.
pos - Position where the sub-component is inserted.
See Also:
LyGraphicalCell.addCell(leon.view.LyCell, int)

removeCell

public void removeCell(LyCell cell)
(non-Javadoc).

Specified by:
removeCell in interface LyGraphicalCell
Parameters:
cell - The cells to remove to cells list.
See Also:
LyGraphicalCell.removeCell(leon.view.LyCell)

setTooltip

public void setTooltip(java.lang.String tooltip)
(non-Javadoc).

Specified by:
setTooltip in interface LyGraphicalCell
Parameters:
tooltip - New value of tooltip.
See Also:
LyGraphicalCell.setTooltip(java.lang.String)

setBottomBorderColor

public void setBottomBorderColor(java.lang.String bottomBorderColor)
(non-Javadoc).

Specified by:
setBottomBorderColor in interface LyGraphicalCell
Parameters:
bottomBorderColor - New value of bottomBorderColor.
See Also:
LyGraphicalCell.setBottomBorderColor(java.lang.String)

setLeftBorderColor

public void setLeftBorderColor(java.lang.String leftBorderColor)
(non-Javadoc).

Specified by:
setLeftBorderColor in interface LyGraphicalCell
Parameters:
leftBorderColor - New value of leftBorderColor.
See Also:
LyGraphicalCell.setLeftBorderColor(java.lang.String)

setRightBorderColor

public void setRightBorderColor(java.lang.String rightBorderColor)
(non-Javadoc).

Specified by:
setRightBorderColor in interface LyGraphicalCell
Parameters:
rightBorderColor - New value of rightBorderColor.
See Also:
LyGraphicalCell.setRightBorderColor(java.lang.String)

setTopBorderColor

public void setTopBorderColor(java.lang.String topBorderColor)
(non-Javadoc).

Specified by:
setTopBorderColor in interface LyGraphicalCell
Parameters:
topBorderColor - New value of topBorderColor.
See Also:
LyGraphicalCell.setTopBorderColor(java.lang.String)

setBottomLeftImage

public void setBottomLeftImage(java.lang.String bottomLeftImage)
(non-Javadoc).

Specified by:
setBottomLeftImage in interface LyGraphicalCell
Parameters:
bottomLeftImage - New value of bottomLeftImage.
See Also:
LyGraphicalCell.setBottomLeftImage(java.lang.String)

setBottomRightImage

public void setBottomRightImage(java.lang.String bottomRightImage)
(non-Javadoc).

Specified by:
setBottomRightImage in interface LyGraphicalCell
Parameters:
bottomRightImage - New value of bottomRightImage.
See Also:
LyGraphicalCell.setBottomRightImage(java.lang.String)

setTopLeftImage

public void setTopLeftImage(java.lang.String topLeftImage)
(non-Javadoc).

Specified by:
setTopLeftImage in interface LyGraphicalCell
Parameters:
topLeftImage - New value of topLeftImage.
See Also:
LyGraphicalCell.setTopLeftImage(java.lang.String)

setTopRightImage

public void setTopRightImage(java.lang.String topRightImage)
(non-Javadoc).

Specified by:
setTopRightImage in interface LyGraphicalCell
Parameters:
topRightImage - New value of topRightImage.
See Also:
LyGraphicalCell.setTopRightImage(java.lang.String)

refresh

public void refresh()
Overriden to call the refresh method on the parent row.

Overrides:
refresh in class LyWebObject

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com