LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.row
Class LyJQRow

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.row.LyJQRow
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalRow, LyViewComponent, LyFreeInterface, LySetColorInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface, LyWebComponent

public class LyJQRow
extends LyJQInternalView
implements LyGraphicalRow

Ly table Row jQuery internal view


Field Summary
 
Fields inherited from class leon.view.web.LyWebObject
__VERSION, WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalRow
__VERSION
 
Constructor Summary
LyJQRow(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.
 int getDepthInTable()
          Gets the depth of current row in the table.
 java.util.List<LyRow> getIndexedRowList(LyRows rows)
           
 java.lang.String getJavascriptStrId()
           
 java.lang.String getJSId()
           
 int getNbChild(LyCell cell)
           
 java.lang.String getReloadScript()
          this method is to be implemented by internal views to get the reload script for the page element
 int getRowIndex()
          get Row Index for a given cell
 int getRowSpan()
          get Row Span for a given cell
 boolean hasComponents(boolean testToolbar)
          Indicates if current row contains at least one component (field, editable cell or toolbar).
 void removeComponent(LyComponent component)
          Removes a sub-component components.
 void setBorderColor(java.lang.String borderColor)
          Updates attribute borderColor to the given value.
 void setBorderHeight(int borderHeight)
          Updates attribute borderHeight to the given value.
 void setColor(java.lang.String color)
          Updates attribute color to the given value.
 void setHidden(boolean hidden)
          Updates attribute hidden to the given value.
 void setImage(java.lang.String image)
          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.
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
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
 

Constructor Detail

LyJQRow

public LyJQRow(LyRow row)
Class constructor of a Row object for the Struts target. Calls the super implementation

Parameters:
row - the generic Row defined for every type of view targets.
Method Detail

setOpen

public void setOpen(boolean open)
Description copied from interface: LyGraphicalRow
Updates attribute open to the given value.

Specified by:
setOpen in interface LyGraphicalRow
Parameters:
open - Boolean indicating if attribute open is set or unset.
See Also:
LyGraphicalRow.setOpen(boolean)

setImage

public void setImage(java.lang.String image)
Description copied from interface: LyGraphicalRow
Updates attribute image to the given value.

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

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LyGraphicalRow
Updates attribute label to the given value.

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

setIndex

public void setIndex(java.lang.String index)
Description copied from interface: LyGraphicalRow
Updates attribute index to the given value.

Specified by:
setIndex in interface LyGraphicalRow
Parameters:
index - New value of index.
See Also:
leon.view.setinterface.LyGraphicalRow#setIndex(java.lang.String)

setTooltip

public void setTooltip(java.lang.String tooltip)
Description copied from interface: LyGraphicalRow
Updates attribute tooltip to the given value.

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

getJavascriptStrId

public java.lang.String getJavascriptStrId()
Overrides:
getJavascriptStrId in class LyJQInternalView
Returns:
formatted id for javacript responses

setHidden

public void setHidden(boolean hidden)
Description copied from interface: LyGraphicalRow
Updates attribute hidden to the given value.

Specified by:
setHidden in interface LyGraphicalRow
Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.
See Also:
LyGraphicalRow.setHidden(boolean)

setBorderHeight

public void setBorderHeight(int borderHeight)
Description copied from interface: LyGraphicalRow
Updates attribute borderHeight to the given value.

Specified by:
setBorderHeight in interface LyGraphicalRow
Parameters:
borderHeight - New value of borderHeight.
See Also:
LyGraphicalRow.setBorderHeight(int)

setBorderColor

public void setBorderColor(java.lang.String borderColor)
Description copied from interface: LyGraphicalRow
Updates attribute borderColor to the given value.

Specified by:
setBorderColor in interface LyGraphicalRow
Parameters:
borderColor - New value of borderColor.
See Also:
LyGraphicalRow.setBorderColor(java.lang.String)

addComponent

public void addComponent(LyComponent component,
                         int pos)
Description copied from interface: LyGraphicalRow
Inserts a sub-component components at given position.

Specified by:
addComponent in interface LyGraphicalRow
Parameters:
component - The components to add to components list.
pos - Position where the sub-component is inserted.
See Also:
LyGraphicalRow.addComponent(leon.view.LyComponent, int)

removeComponent

public void removeComponent(LyComponent component)
Description copied from interface: LyGraphicalRow
Removes a sub-component components.

Specified by:
removeComponent in interface LyGraphicalRow
Parameters:
component - The components to remove to components list.
See Also:
LyGraphicalRow.removeComponent(leon.view.LyComponent)

getDepthInTable

public int getDepthInTable()
Gets the depth of current row in the table.

Returns:
the depth of current row in the table if hierarchical, 0 otherwise.

getRowSpan

public int getRowSpan()
get Row Span for a given cell

Returns:

getNbChild

public int getNbChild(LyCell cell)

getRowIndex

public int getRowIndex()
get Row Index for a given cell

Returns:

getIndexedRowList

public java.util.List<LyRow> getIndexedRowList(LyRows rows)

hasComponents

public boolean hasComponents(boolean testToolbar)
Indicates if current row contains at least one component (field, editable cell or toolbar).

Parameters:
testToolbar - indicates if we must test the presence of a toolbar
Returns:
true if contains at least one component, false otherwise

getJSId

public java.lang.String getJSId()

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

getReloadScript

public java.lang.String getReloadScript()
Description copied from class: LyJQInternalView
this method is to be implemented by internal views to get the reload script for the page element

Specified by:
getReloadScript in class LyJQInternalView
Returns:
reload component script

setColor

public void setColor(java.lang.String color)
Description copied from interface: LyGraphicalRow
Updates attribute color to the given value.

Specified by:
setColor in interface LyGraphicalRow
Specified by:
setColor in interface LySetColorInterface
Parameters:
color - New value of color.

(c) January 2013 - W4 S.A.

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