LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyCell

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyCell
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetColorInterface, LySetEditableInterface, LySetImageInterface, LySetLabelInterface, LySetSelectedInterface

public class LyCell
extends LyComponent
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LySetEditableInterface, LySetSelectedInterface, LySetImageInterface, LySetColorInterface

The LyCell class is a generated Java implementation that corresponds to the element CELL of the descriptive grammar of the views (views.dtd). <CELL> : Cell A cell may contain sub-cells to allow the construction of complex tables.

See Also:
See also tag CELL of grammar leon_views.dtd.

Nested Class Summary
static class LyCell.Type
          Possible values for attribute 'type'.
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyCell()
          Default constructor.
 
Method Summary
 void addCell(LyCell cell)
          Adds a sub-component cell.
 LyComponent cloneComponent()
          Method for cloning a component.
 LyHeader.Align getAlign()
          Gets value of align.
 java.lang.String getBottomBorderColor()
          Gets value of bottomBorderColor.
 java.lang.String getBottomLeftImage()
          Gets value of bottomLeftImage.
 java.lang.String getBottomRightImage()
          Gets value of bottomRightImage.
 LyCell getCell(int i)
          Get sub-component Cell of index i.
 int getCellCount()
          Get sub-component Cell count.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getHLink()
          Gets value of hLink.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImage()
          Gets value of image.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getLeftBorderColor()
          Gets value of leftBorderColor.
 java.lang.String getObjectId()
          Gets value of objectId.
 java.lang.String getRightBorderColor()
          Gets value of rightBorderColor.
 LyCell getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 java.lang.String getTopBorderColor()
          Gets value of topBorderColor.
 java.lang.String getTopLeftImage()
          Gets value of topLeftImage.
 java.lang.String getTopRightImage()
          Gets value of topRightImage.
 LyCell.Type getType()
          Gets value of type.
static LyCell.Type getType(java.lang.String token)
          Utility method to get type value from a string.
 void insertCell(LyCell cell, int pos)
          Inserts a sub-component cell at given position.
 boolean isDefaultBottomBorderColor()
          Checks whether the bottomBorderColor attribute is valuated to the default value.
 boolean isDefaultBottomLeftImage()
          Checks whether the bottomLeftImage attribute is valuated to the default value.
 boolean isDefaultBottomRightImage()
          Checks whether the bottomRightImage attribute is valuated to the default value.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultImage()
          Checks whether the image attribute is valuated to the default value.
 boolean isDefaultLeftBorderColor()
          Checks whether the leftBorderColor attribute is valuated to the default value.
 boolean isDefaultRightBorderColor()
          Checks whether the rightBorderColor attribute is valuated to the default value.
 boolean isDefaultTopBorderColor()
          Checks whether the topBorderColor attribute is valuated to the default value.
 boolean isDefaultTopLeftImage()
          Checks whether the topLeftImage attribute is valuated to the default value.
 boolean isDefaultTopRightImage()
          Checks whether the topRightImage attribute is valuated to the default value.
 boolean isEditable()
          Checks if value of attribute editable is set.
 boolean isSelected()
          Checks if value of attribute selected is set.
 void removeCell(LyCell cell)
          Removes a sub-component cell.
 void setAlign(LyHeader.Align align)
          Initializes attribute align to the given value.
 void setBottomBorderColor(java.lang.String bottomBorderColor)
          Sets attribute bottomBorderColor to the given value.
 void setBottomLeftImage(java.lang.String bottomLeftImage)
          Sets attribute bottomLeftImage to the given value.
 void setBottomRightImage(java.lang.String bottomRightImage)
          Sets attribute bottomRightImage to the given value.
 void setColor(java.lang.String color)
          Sets attribute color to the given value.
 void setEditable(boolean editable)
          Sets attribute editable to the given value.
 void setFont(java.lang.String font)
          Initializes attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setHLink(java.lang.String hLink)
          Initializes attribute hLink to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setImage(java.lang.String image)
          Sets attribute image to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setLeftBorderColor(java.lang.String leftBorderColor)
          Sets attribute leftBorderColor to the given value.
 void setObjectId(java.lang.String objectId)
          Sets attribute objectId to the given value.
 void setRightBorderColor(java.lang.String rightBorderColor)
          Sets attribute rightBorderColor to the given value.
 void setSelected(boolean selected)
          Sets attribute selected to the given value.
 void setTemplate(LyCell template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Sets attribute tooltip to the given value.
 void setTopBorderColor(java.lang.String topBorderColor)
          Sets attribute topBorderColor to the given value.
 void setTopLeftImage(java.lang.String topLeftImage)
          Sets attribute topLeftImage to the given value.
 void setTopRightImage(java.lang.String topRightImage)
          Sets attribute topRightImage to the given value.
 void setType(LyCell.Type type)
          Initializes attribute type to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LyCell

public LyCell()
Default constructor.

Method Detail

getType

public static final LyCell.Type getType(java.lang.String token)
Utility method to get type value from a string.

Parameters:
token - Token string
Returns:
Type value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyCell getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getObjectId

public java.lang.String getObjectId()
Gets value of objectId.

Returns:
value of objectId.

getHLink

public java.lang.String getHLink()
Gets value of hLink.

Returns:
value of hLink.

isEditable

public boolean isEditable()
Checks if value of attribute editable is set.

Returns:
true if editable is set, false otherwise.

isSelected

public boolean isSelected()
Checks if value of attribute selected is set.

Returns:
true if selected is set, false otherwise.

getAlign

public LyHeader.Align getAlign()
Gets value of align.

Returns:
value of align.

getImage

public java.lang.String getImage()
Gets value of image.

Returns:
value of image.

isDefaultImage

public boolean isDefaultImage()
Checks whether the image attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getTooltip

public java.lang.String getTooltip()
Gets value of tooltip.

Returns:
value of tooltip.

getTopBorderColor

public java.lang.String getTopBorderColor()
Gets value of topBorderColor.

Returns:
value of topBorderColor.

isDefaultTopBorderColor

public boolean isDefaultTopBorderColor()
Checks whether the topBorderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getBottomBorderColor

public java.lang.String getBottomBorderColor()
Gets value of bottomBorderColor.

Returns:
value of bottomBorderColor.

isDefaultBottomBorderColor

public boolean isDefaultBottomBorderColor()
Checks whether the bottomBorderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLeftBorderColor

public java.lang.String getLeftBorderColor()
Gets value of leftBorderColor.

Returns:
value of leftBorderColor.

isDefaultLeftBorderColor

public boolean isDefaultLeftBorderColor()
Checks whether the leftBorderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getRightBorderColor

public java.lang.String getRightBorderColor()
Gets value of rightBorderColor.

Returns:
value of rightBorderColor.

isDefaultRightBorderColor

public boolean isDefaultRightBorderColor()
Checks whether the rightBorderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getTopLeftImage

public java.lang.String getTopLeftImage()
Gets value of topLeftImage.

Returns:
value of topLeftImage.

isDefaultTopLeftImage

public boolean isDefaultTopLeftImage()
Checks whether the topLeftImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getTopRightImage

public java.lang.String getTopRightImage()
Gets value of topRightImage.

Returns:
value of topRightImage.

isDefaultTopRightImage

public boolean isDefaultTopRightImage()
Checks whether the topRightImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getBottomLeftImage

public java.lang.String getBottomLeftImage()
Gets value of bottomLeftImage.

Returns:
value of bottomLeftImage.

isDefaultBottomLeftImage

public boolean isDefaultBottomLeftImage()
Checks whether the bottomLeftImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getBottomRightImage

public java.lang.String getBottomRightImage()
Gets value of bottomRightImage.

Returns:
value of bottomRightImage.

isDefaultBottomRightImage

public boolean isDefaultBottomRightImage()
Checks whether the bottomRightImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getType

public LyCell.Type getType()
Gets value of type.

Returns:
value of type.

getCell

public LyCell getCell(int i)
Get sub-component Cell of index i.

Parameters:
i - the index of the Cell to get.
Returns:
sub-component Cell of index i.

getCellCount

public int getCellCount()
Get sub-component Cell count.

Returns:
sub-component Cell count.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyCell template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Sets attribute label to the given value.

Specified by:
setLabel in interface LySetLabelInterface
Parameters:
label - New value of label.

setObjectId

public void setObjectId(java.lang.String objectId)
Sets attribute objectId to the given value.

Parameters:
objectId - New value of objectId.

setHLink

public void setHLink(java.lang.String hLink)
Initializes attribute hLink to the given value.

Parameters:
hLink - New value of hLink.

setEditable

public void setEditable(boolean editable)
Sets attribute editable to the given value.

Specified by:
setEditable in interface LySetEditableInterface
Parameters:
editable - Boolean indicating if attribute editable is set or unset.

setSelected

public void setSelected(boolean selected)
Sets attribute selected to the given value.

Specified by:
setSelected in interface LySetSelectedInterface
Parameters:
selected - Boolean indicating if attribute selected is set or unset.

setAlign

public void setAlign(LyHeader.Align align)
Initializes attribute align to the given value.

Parameters:
align - New value of align.
Throws:
java.lang.IllegalArgumentException - if align parameter is null.

setImage

public void setImage(java.lang.String image)
Sets attribute image to the given value.

Specified by:
setImage in interface LySetImageInterface
Parameters:
image - New value of image.

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets attribute tooltip to the given value.

Parameters:
tooltip - New value of tooltip.

setTopBorderColor

public void setTopBorderColor(java.lang.String topBorderColor)
Sets attribute topBorderColor to the given value.

Parameters:
topBorderColor - New value of topBorderColor.

setBottomBorderColor

public void setBottomBorderColor(java.lang.String bottomBorderColor)
Sets attribute bottomBorderColor to the given value.

Parameters:
bottomBorderColor - New value of bottomBorderColor.

setLeftBorderColor

public void setLeftBorderColor(java.lang.String leftBorderColor)
Sets attribute leftBorderColor to the given value.

Parameters:
leftBorderColor - New value of leftBorderColor.

setRightBorderColor

public void setRightBorderColor(java.lang.String rightBorderColor)
Sets attribute rightBorderColor to the given value.

Parameters:
rightBorderColor - New value of rightBorderColor.

setTopLeftImage

public void setTopLeftImage(java.lang.String topLeftImage)
Sets attribute topLeftImage to the given value.

Parameters:
topLeftImage - New value of topLeftImage.

setTopRightImage

public void setTopRightImage(java.lang.String topRightImage)
Sets attribute topRightImage to the given value.

Parameters:
topRightImage - New value of topRightImage.

setBottomLeftImage

public void setBottomLeftImage(java.lang.String bottomLeftImage)
Sets attribute bottomLeftImage to the given value.

Parameters:
bottomLeftImage - New value of bottomLeftImage.

setBottomRightImage

public void setBottomRightImage(java.lang.String bottomRightImage)
Sets attribute bottomRightImage to the given value.

Parameters:
bottomRightImage - New value of bottomRightImage.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setColor

public void setColor(java.lang.String color)
Sets attribute color to the given value.

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

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setType

public void setType(LyCell.Type type)
Initializes attribute type to the given value.

Parameters:
type - New value of type.
Throws:
java.lang.IllegalArgumentException - if type parameter is null.

addCell

public void addCell(LyCell cell)
Adds a sub-component cell.

Parameters:
cell - The cell to add to cells list.

insertCell

public void insertCell(LyCell cell,
                       int pos)
Inserts a sub-component cell at given position.

Parameters:
cell - The cell to add to cells list.
pos - Position where the sub-component is inserted.

removeCell

public void removeCell(LyCell cell)
Removes a sub-component cell.

Parameters:
cell - The cell to remove to cells list.
Throws:
java.lang.IllegalStateException - if cells list is empty.
java.lang.IllegalArgumentException - if cells list doesn't contain cell.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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