LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyTable

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyTable
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyGetLabelInterface, LyPdfInterface, LySetControllerInterface, LySetEnabledInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyTable
extends LyPanel
implements LyGetIdInterface, LyGetLabelInterface, LyGetControllerInterface, LySetControllerInterface, LySetEnabledInterface, LyGetConstraintInterface

The LyTable class is a generated Java implementation that corresponds to the element TABLE of the descriptive grammar of the views (views.dtd). <TABLE> : Table A table allows displaying a set of rows and columns containing a set of cells. It can contain a header providing information about the content of the cells of the table. It is possible to define its selection modes (simple, extended, multiple or none) and finally to indicate if horizontal and/or vertical separation lines should be drawn.

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

Nested Class Summary
static class LyTable.SelectionMode
          Possible values for attribute 'selectionMode'.
 
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
LyTable(java.lang.String id)
          Constructor with all required attributes.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getController()
          Gets value of controller.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 LyFooters getFooters()
          Get sub-component Footers.
 java.lang.String getGridColor()
          Gets value of gridColor.
 LyHeaders getHeaders()
          Get sub-component Headers.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getLabel()
          Gets value of label.
 int getNRows()
          Gets value of nRows.
 LyRows getRows()
          Get sub-component Rows.
 java.lang.String getSelectedColor()
          Gets value of selectedColor.
 java.lang.String getSelectedFontColor()
          Gets value of selectedFontColor.
 LyTable.SelectionMode getSelectionMode()
          Gets value of selectionMode.
static LyTable.SelectionMode getSelectionMode(java.lang.String token)
          Utility method to get selectionMode value from a string.
 LyTable getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 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 isDefaultGridColor()
          Checks whether the gridColor attribute is valuated to the default value.
 boolean isDefaultSelectedColor()
          Checks whether the selectedColor attribute is valuated to the default value.
 boolean isDefaultSelectedFontColor()
          Checks whether the selectedFontColor attribute is valuated to the default value.
 boolean isEnabled()
          Checks if value of attribute enabled is set.
 boolean isHLines()
          Checks if value of attribute hLines is set.
 boolean isIsContext()
          Checks if value of attribute isContext is set.
 boolean isVLines()
          Checks if value of attribute vLines is set.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setController(java.lang.String controller)
          Initializes attribute controller to the given value.
 void setEnabled(boolean enabled)
          Sets attribute enabled 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 setFooters(LyFooters footers)
          Sets sub-component footers.
 void setGridColor(java.lang.String gridColor)
          Initializes attribute gridColor to the given value.
 void setHeaders(LyHeaders headers)
          Sets sub-component headers.
 void setHLines(boolean hLines)
          Initializes attribute hLines to the given value.
 void setIsContext(boolean isContext)
          Initializes attribute isContext to the given value.
 void setLabel(java.lang.String label)
          Initializes attribute label to the given value.
 void setNRows(int nRows)
          Sets attribute nRows to the given value.
 void setRows(LyRows rows)
          Sets sub-component rows.
 void setSelectedColor(java.lang.String selectedColor)
          Initializes attribute selectedColor to the given value.
 void setSelectedFontColor(java.lang.String selectedFontColor)
          Initializes attribute selectedFontColor to the given value.
 void setSelectionMode(LyTable.SelectionMode selectionMode)
          Initializes attribute selectionMode to the given value.
 void setTemplate(LyTable template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Initializes attribute tooltip to the given value.
 void setVLines(boolean vLines)
          Initializes attribute vLines 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.LyPanel
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, 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

LyTable

public LyTable(java.lang.String id)
Constructor with all required attributes.

Parameters:
id - Identifier of the table.
Method Detail

getSelectionMode

public static final LyTable.SelectionMode getSelectionMode(java.lang.String token)
Utility method to get selectionMode value from a string.

Parameters:
token - Token string
Returns:
SelectionMode 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 LyTable 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.

getController

public java.lang.String getController()
Gets value of controller.

Specified by:
getController in interface LyGetControllerInterface
Returns:
value of controller.

getSelectionMode

public LyTable.SelectionMode getSelectionMode()
Gets value of selectionMode.

Returns:
value of selectionMode.

isHLines

public boolean isHLines()
Checks if value of attribute hLines is set.

Returns:
true if hLines is set, false otherwise.

isVLines

public boolean isVLines()
Checks if value of attribute vLines is set.

Returns:
true if vLines is set, false otherwise.

isIsContext

public boolean isIsContext()
Checks if value of attribute isContext is set.

Returns:
true if isContext is set, false otherwise.

isEnabled

public boolean isEnabled()
Checks if value of attribute enabled is set.

Returns:
true if enabled is set, false otherwise.

getNRows

public int getNRows()
Gets value of nRows.

Returns:
value of nRows.

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.

getGridColor

public java.lang.String getGridColor()
Gets value of gridColor.

Returns:
value of gridColor.

isDefaultGridColor

public boolean isDefaultGridColor()
Checks whether the gridColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectedColor

public java.lang.String getSelectedColor()
Gets value of selectedColor.

Returns:
value of selectedColor.

isDefaultSelectedColor

public boolean isDefaultSelectedColor()
Checks whether the selectedColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectedFontColor

public java.lang.String getSelectedFontColor()
Gets value of selectedFontColor.

Returns:
value of selectedFontColor.

isDefaultSelectedFontColor

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

getHeaders

public LyHeaders getHeaders()
Get sub-component Headers.

Returns:
sub-component Headers.

getRows

public LyRows getRows()
Get sub-component Rows.

Returns:
sub-component Rows.

getFooters

public LyFooters getFooters()
Get sub-component Footers.

Returns:
sub-component Footers.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setTemplate

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

Parameters:
template - New value of template.

setLabel

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

Overrides:
setLabel in class LyFieldItem
Parameters:
label - New value of label.

setController

public void setController(java.lang.String controller)
Initializes attribute controller to the given value.

Specified by:
setController in interface LySetControllerInterface
Parameters:
controller - New value of controller.
See Also:
LySetControllerInterface.setController(java.lang.String)

setSelectionMode

public void setSelectionMode(LyTable.SelectionMode selectionMode)
Initializes attribute selectionMode to the given value.

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

setHLines

public void setHLines(boolean hLines)
Initializes attribute hLines to the given value.

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

setVLines

public void setVLines(boolean vLines)
Initializes attribute vLines to the given value.

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

setIsContext

public void setIsContext(boolean isContext)
Initializes attribute isContext to the given value.

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

setEnabled

public void setEnabled(boolean enabled)
Sets attribute enabled to the given value.

Specified by:
setEnabled in interface LySetEnabledInterface
Parameters:
enabled - Boolean indicating if attribute enabled is set or unset.

setNRows

public void setNRows(int nRows)
Sets attribute nRows to the given value.

Parameters:
nRows - New value of nRows.

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

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.

setGridColor

public void setGridColor(java.lang.String gridColor)
Initializes attribute gridColor to the given value.

Parameters:
gridColor - New value of gridColor.

setSelectedColor

public void setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value.

Parameters:
selectedColor - New value of selectedColor.

setSelectedFontColor

public void setSelectedFontColor(java.lang.String selectedFontColor)
Initializes attribute selectedFontColor to the given value.

Parameters:
selectedFontColor - New value of selectedFontColor.

setTooltip

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

Parameters:
tooltip - New value of tooltip.

setHeaders

public void setHeaders(LyHeaders headers)
Sets sub-component headers.

Parameters:
headers - New value of headers

setRows

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

Parameters:
rows - New value of rows

setFooters

public void setFooters(LyFooters footers)
Sets sub-component footers.

Parameters:
footers - New value of footers

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

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