LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyRowBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyRowBase
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetColorInterface, LySetHiddenInterface, LySetImageInterface, LySetLabelInterface
Direct Known Subclasses:
LyRow

public abstract class LyRowBase
extends LyComponent
implements LyGetIdInterface, LySetImageInterface, LyGetLabelInterface, LySetLabelInterface, LySetHiddenInterface, LySetColorInterface

The LyRowBase class is a generated Java implementation that corresponds to the element ROW of the descriptive grammar of the views (views.dtd). <ROW> : Table 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.

See Also:
LyComponent, See also tag ROW of grammar leon_views.dtd.

Nested Class Summary
 
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
LyRowBase()
          Default constructor.
 
Method Summary
 void addCell(LyCell cell)
          Adds a sub-component cell.
 void addFormField(LyFormField formField)
          Adds a sub-component formField.
 void addToolBar(LyToolBar toolBar)
          Adds a sub-component toolBar.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBorderColor()
          Gets value of borderColor.
 int getBorderHeight()
          Gets value of borderHeight.
 java.lang.String getColor()
          Gets value of color.
 LyComponent getComponent(int i)
          Get sub-component Component of index i.
 int getComponentCount()
          Get sub-component Component count.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImage()
          Gets value of image.
 java.lang.String getIndex()
          Gets value of index.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getOverview()
          Gets value of overview.
 LyRows getRows()
          Get sub-component Rows.
 LyRow getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 void insertCell(LyCell cell, int pos)
          Inserts a sub-component cell at given position.
 void insertFormField(LyFormField formField, int pos)
          Inserts a sub-component formField at given position.
 void insertToolBar(LyToolBar toolBar, int pos)
          Inserts a sub-component toolBar at given position.
 boolean isDefaultBorderColor()
          Checks whether the borderColor 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 isHidden()
          Checks if value of attribute hidden is set.
 boolean isOpen()
          Checks if value of attribute open is set.
 boolean isSelected()
          Checks if value of attribute selected is set.
 boolean isSensitive()
          Checks if value of attribute sensitive is set.
 void removeCell(LyCell cell)
          Removes a sub-component cell.
 void removeFormField(LyFormField formField)
          Removes a sub-component formField.
 void removeToolBar(LyToolBar toolBar)
          Removes a sub-component toolBar.
 void setBorderColor(java.lang.String borderColor)
          Sets attribute borderColor to the given value.
 void setBorderHeight(int borderHeight)
          Sets attribute borderHeight to the given value.
 void setColor(java.lang.String color)
          Sets attribute color 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 setHidden(boolean hidden)
          Sets attribute hidden 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 setIndex(java.lang.String index)
          Sets attribute index to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setOpen(boolean open)
          Sets attribute open to the given value.
 void setOverview(java.lang.String overview)
          Initializes attribute overview to the given value.
 void setRows(LyRows rows)
          Sets sub-component rows.
 void setSelected(boolean selected)
          Initializes attribute selected to the given value.
 void setSensitive(boolean sensitive)
          Initializes attribute sensitive to the given value.
 void setTemplate(LyRow template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Sets attribute tooltip 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

LyRowBase

public LyRowBase()
Default constructor.

Method Detail

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 LyRow getTemplate()
Gets value of template.

Returns:
value of template.

isSelected

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

Returns:
true if selected is set, false otherwise.

isSensitive

public boolean isSensitive()
Checks if value of attribute sensitive is set.

Returns:
true if sensitive is set, false otherwise.

isOpen

public boolean isOpen()
Checks if value of attribute open is set.

Returns:
true if open is set, false otherwise.

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.

getLabel

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

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

getIndex

public java.lang.String getIndex()
Gets value of index.

Returns:
value of index.

getTooltip

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

Returns:
value of tooltip.

getOverview

public java.lang.String getOverview()
Gets value of overview.

Returns:
value of overview.

isHidden

public boolean isHidden()
Checks if value of attribute hidden is set.

Returns:
true if hidden is set, false otherwise.

getBorderHeight

public int getBorderHeight()
Gets value of borderHeight.

Returns:
value of borderHeight.

getBorderColor

public java.lang.String getBorderColor()
Gets value of borderColor.

Returns:
value of borderColor.

isDefaultBorderColor

public boolean isDefaultBorderColor()
Checks whether the borderColor 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.

getComponent

public LyComponent getComponent(int i)
Get sub-component Component of index i.

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

getComponentCount

public int getComponentCount()
Get sub-component Component count.

Returns:
sub-component Component count.

getRows

public LyRows getRows()
Get sub-component Rows.

Returns:
sub-component Rows.

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(LyRow template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setSelected

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

Parameters:
selected - Boolean indicating if attribute selected is set or unset.

setSensitive

public void setSensitive(boolean sensitive)
Initializes attribute sensitive to the given value.

Parameters:
sensitive - Boolean indicating if attribute sensitive is set or unset.

setOpen

public void setOpen(boolean open)
Sets attribute open to the given value.

Parameters:
open - Boolean indicating if attribute open is set or unset.

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.

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.

setIndex

public void setIndex(java.lang.String index)
Sets attribute index to the given value.

Parameters:
index - New value of index.

setTooltip

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

Parameters:
tooltip - New value of tooltip.

setOverview

public void setOverview(java.lang.String overview)
Initializes attribute overview to the given value.

Parameters:
overview - New value of overview.

setHidden

public void setHidden(boolean hidden)
Sets attribute hidden to the given value.

Specified by:
setHidden in interface LySetHiddenInterface
Parameters:
hidden - Boolean indicating if attribute hidden is set or unset.

setBorderHeight

public void setBorderHeight(int borderHeight)
Sets attribute borderHeight to the given value.

Parameters:
borderHeight - New value of borderHeight.

setBorderColor

public void setBorderColor(java.lang.String borderColor)
Sets attribute borderColor to the given value.

Parameters:
borderColor - New value of borderColor.

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.

addCell

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

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

insertCell

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

Parameters:
cell - The cell to add to components 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 components list.
Throws:
java.lang.IllegalStateException - if components list is empty.
java.lang.IllegalArgumentException - if components list doesn't contain cell.

addFormField

public void addFormField(LyFormField formField)
Adds a sub-component formField.

Parameters:
formField - The formField to add to components list.

insertFormField

public void insertFormField(LyFormField formField,
                            int pos)
Inserts a sub-component formField at given position.

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

removeFormField

public void removeFormField(LyFormField formField)
Removes a sub-component formField.

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

addToolBar

public void addToolBar(LyToolBar toolBar)
Adds a sub-component toolBar.

Parameters:
toolBar - The toolBar to add to components list.

insertToolBar

public void insertToolBar(LyToolBar toolBar,
                          int pos)
Inserts a sub-component toolBar at given position.

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

removeToolBar

public void removeToolBar(LyToolBar toolBar)
Removes a sub-component toolBar.

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

setRows

public void setRows(LyRows rows)
Sets sub-component rows.

Parameters:
rows - New value of rows

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