LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyRelationBase

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyRelationBase
All Implemented Interfaces:
LyGetIdInterface, LyUpdateViewContentInterface
Direct Known Subclasses:
LyRelation

public abstract class LyRelationBase
extends LyFieldItem
implements LyGetIdInterface

The LyRelationBase class is a generated Java implementation that corresponds to the element RELATION of the descriptive grammar of the views (views.dtd). <RELATION> : Input Field of Relation Type An input field of Relation type allows choosing one or more values among a list of values. This list offers generally application objects belonging to a same class and is used to establish a relation between an object and one or more objects of this class. It is possible to specify whether the relation is multiple or not.

See Also:
LyFieldItem, See also tag RELATION 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
LyRelationBase()
          Default constructor.
 
Method Summary
 void addLink(LyLink link)
          Adds a sub-component link.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getArrowDownBig()
          Gets value of arrowDownBig.
 int getAutoCompletionMax()
          Gets value of autoCompletionMax.
 java.lang.String getBean()
          Gets value of bean.
 java.lang.String getDeselectAllImage()
          Gets value of deselectAllImage.
 java.lang.String getDeselectImage()
          Gets value of deselectImage.
 java.lang.String getDisabledColor()
          Gets value of disabledColor.
 java.lang.String getEnabledColor()
          Gets value of enabledColor.
 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 getInactiveSelectedColor()
          Gets value of inactiveSelectedColor.
 LyLink getLink(int i)
          Get sub-component Link of index i.
 int getLinkCount()
          Get sub-component Link count.
 java.lang.String getMoveDownImage()
          Gets value of moveDownImage.
 java.lang.String getMoveUpImage()
          Gets value of moveUpImage.
 java.lang.String getMultiSelectorSelectImage()
          Gets value of multiSelectorSelectImage.
 java.lang.String getMultiSelectorUnselectImage()
          Gets value of multiSelectorUnselectImage.
 int getNCols()
          Gets value of nCols.
 int getNRows()
          Gets value of nRows.
 java.lang.String getSelectAllImage()
          Gets value of selectAllImage.
 java.lang.String getSelectedColor()
          Gets value of selectedColor.
 java.lang.String getSelectedFontColor()
          Gets value of selectedFontColor.
 java.lang.String getSelectImage()
          Gets value of selectImage.
 LyRelation getTemplate()
          Gets value of template.
 void insertLink(LyLink link, int pos)
          Inserts a sub-component link at given position.
 boolean isDefaultArrowDownBig()
          Checks whether the arrowDownBig attribute is valuated to the default value.
 boolean isDefaultDeselectAllImage()
          Checks whether the deselectAllImage attribute is valuated to the default value.
 boolean isDefaultDeselectImage()
          Checks whether the deselectImage attribute is valuated to the default value.
 boolean isDefaultDisabledColor()
          Checks whether the disabledColor attribute is valuated to the default value.
 boolean isDefaultEnabledColor()
          Checks whether the enabledColor 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 isDefaultInactiveSelectedColor()
          Checks whether the inactiveSelectedColor attribute is valuated to the default value.
 boolean isDefaultMoveDownImage()
          Checks whether the moveDownImage attribute is valuated to the default value.
 boolean isDefaultMoveUpImage()
          Checks whether the moveUpImage attribute is valuated to the default value.
 boolean isDefaultMultiSelectorSelectImage()
          Checks whether the multiSelectorSelectImage attribute is valuated to the default value.
 boolean isDefaultMultiSelectorUnselectImage()
          Checks whether the multiSelectorUnselectImage attribute is valuated to the default value.
 boolean isDefaultSelectAllImage()
          Checks whether the selectAllImage 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 isDefaultSelectImage()
          Checks whether the selectImage attribute is valuated to the default value.
 boolean isMultiple()
          Checks if value of attribute multiple is set.
 boolean isOrdered()
          Checks if value of attribute ordered is set.
 void removeLink(LyLink link)
          Removes a sub-component link.
 void setArrowDownBig(java.lang.String arrowDownBig)
          Initializes attribute arrowDownBig to the given value.
 void setAutoCompletionMax(int autoCompletionMax)
          Initializes attribute autoCompletionMax to the given value.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setDeselectAllImage(java.lang.String deselectAllImage)
          Initializes attribute deselectAllImage to the given value.
 void setDeselectImage(java.lang.String deselectImage)
          Initializes attribute deselectImage to the given value.
 void setDisabledColor(java.lang.String disabledColor)
          Initializes attribute disabledColor to the given value.
 void setEnabledColor(java.lang.String enabledColor)
          Initializes attribute enabledColor 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 setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setInactiveSelectedColor(java.lang.String inactiveSelectedColor)
          Initializes attribute inactiveSelectedColor to the given value.
 void setMoveDownImage(java.lang.String moveDownImage)
          Initializes attribute moveDownImage to the given value.
 void setMoveUpImage(java.lang.String moveUpImage)
          Initializes attribute moveUpImage to the given value.
 void setMultiple(boolean multiple)
          Initializes attribute multiple to the given value.
 void setMultiSelectorSelectImage(java.lang.String multiSelectorSelectImage)
          Initializes attribute multiSelectorSelectImage to the given value.
 void setMultiSelectorUnselectImage(java.lang.String multiSelectorUnselectImage)
          Initializes attribute multiSelectorUnselectImage to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setNRows(int nRows)
          Initializes attribute nRows to the given value.
 void setOrdered(boolean ordered)
          Initializes attribute ordered to the given value.
 void setSelectAllImage(java.lang.String selectAllImage)
          Initializes attribute selectAllImage to the given value.
 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 setSelectImage(java.lang.String selectImage)
          Initializes attribute selectImage to the given value.
 void setTemplate(LyRelation template)
          Initializes attribute template 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.LyFieldItem
addBeanData, buildBean, free, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBeanComponent, setBeanDatas, setFieldValue, setLabel, 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

LyRelationBase

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

Returns:
value of template.

isMultiple

public boolean isMultiple()
Checks if value of attribute multiple is set.

Returns:
true if multiple is set, false otherwise.

isOrdered

public boolean isOrdered()
Checks if value of attribute ordered is set.

Returns:
true if ordered is set, false otherwise.

getBean

public java.lang.String getBean()
Gets value of bean.

Overrides:
getBean in class LyFieldItem
Returns:
value of bean.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getNRows

public int getNRows()
Gets value of nRows.

Returns:
value of nRows.

getAutoCompletionMax

public int getAutoCompletionMax()
Gets value of autoCompletionMax.

Returns:
value of autoCompletionMax.

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.

getEnabledColor

public java.lang.String getEnabledColor()
Gets value of enabledColor.

Returns:
value of enabledColor.

isDefaultEnabledColor

public boolean isDefaultEnabledColor()
Checks whether the enabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDisabledColor

public java.lang.String getDisabledColor()
Gets value of disabledColor.

Returns:
value of disabledColor.

isDefaultDisabledColor

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

getSelectImage

public java.lang.String getSelectImage()
Gets value of selectImage.

Returns:
value of selectImage.

isDefaultSelectImage

public boolean isDefaultSelectImage()
Checks whether the selectImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDeselectImage

public java.lang.String getDeselectImage()
Gets value of deselectImage.

Returns:
value of deselectImage.

isDefaultDeselectImage

public boolean isDefaultDeselectImage()
Checks whether the deselectImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectAllImage

public java.lang.String getSelectAllImage()
Gets value of selectAllImage.

Returns:
value of selectAllImage.

isDefaultSelectAllImage

public boolean isDefaultSelectAllImage()
Checks whether the selectAllImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDeselectAllImage

public java.lang.String getDeselectAllImage()
Gets value of deselectAllImage.

Returns:
value of deselectAllImage.

isDefaultDeselectAllImage

public boolean isDefaultDeselectAllImage()
Checks whether the deselectAllImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getMoveDownImage

public java.lang.String getMoveDownImage()
Gets value of moveDownImage.

Returns:
value of moveDownImage.

isDefaultMoveDownImage

public boolean isDefaultMoveDownImage()
Checks whether the moveDownImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getMoveUpImage

public java.lang.String getMoveUpImage()
Gets value of moveUpImage.

Returns:
value of moveUpImage.

isDefaultMoveUpImage

public boolean isDefaultMoveUpImage()
Checks whether the moveUpImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getArrowDownBig

public java.lang.String getArrowDownBig()
Gets value of arrowDownBig.

Returns:
value of arrowDownBig.

isDefaultArrowDownBig

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

getInactiveSelectedColor

public java.lang.String getInactiveSelectedColor()
Gets value of inactiveSelectedColor.

Returns:
value of inactiveSelectedColor.

isDefaultInactiveSelectedColor

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

getMultiSelectorSelectImage

public java.lang.String getMultiSelectorSelectImage()
Gets value of multiSelectorSelectImage.

Returns:
value of multiSelectorSelectImage.

isDefaultMultiSelectorSelectImage

public boolean isDefaultMultiSelectorSelectImage()
Checks whether the multiSelectorSelectImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getMultiSelectorUnselectImage

public java.lang.String getMultiSelectorUnselectImage()
Gets value of multiSelectorUnselectImage.

Returns:
value of multiSelectorUnselectImage.

isDefaultMultiSelectorUnselectImage

public boolean isDefaultMultiSelectorUnselectImage()
Checks whether the multiSelectorUnselectImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLink

public LyLink getLink(int i)
Get sub-component Link of index i.

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

getLinkCount

public int getLinkCount()
Get sub-component Link count.

Returns:
sub-component Link 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(LyRelation template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setMultiple

public void setMultiple(boolean multiple)
Initializes attribute multiple to the given value.

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

setOrdered

public void setOrdered(boolean ordered)
Initializes attribute ordered to the given value.

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

setBean

public void setBean(java.lang.String bean)
Initializes attribute bean to the given value.

Overrides:
setBean in class LyFieldItem
Parameters:
bean - New value of bean.

setNCols

public void setNCols(int nCols)
Initializes attribute nCols to the given value.

Parameters:
nCols - New value of nCols.

setNRows

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

Parameters:
nRows - New value of nRows.

setAutoCompletionMax

public void setAutoCompletionMax(int autoCompletionMax)
Initializes attribute autoCompletionMax to the given value.

Parameters:
autoCompletionMax - New value of autoCompletionMax.

setFont

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

Parameters:
font - New value of font.

setEnabledColor

public void setEnabledColor(java.lang.String enabledColor)
Initializes attribute enabledColor to the given value.

Parameters:
enabledColor - New value of enabledColor.

setDisabledColor

public void setDisabledColor(java.lang.String disabledColor)
Initializes attribute disabledColor to the given value.

Parameters:
disabledColor - New value of disabledColor.

setFontColor

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

Parameters:
fontColor - New value of fontColor.

setSelectImage

public void setSelectImage(java.lang.String selectImage)
Initializes attribute selectImage to the given value.

Parameters:
selectImage - New value of selectImage.

setDeselectImage

public void setDeselectImage(java.lang.String deselectImage)
Initializes attribute deselectImage to the given value.

Parameters:
deselectImage - New value of deselectImage.

setSelectAllImage

public void setSelectAllImage(java.lang.String selectAllImage)
Initializes attribute selectAllImage to the given value.

Parameters:
selectAllImage - New value of selectAllImage.

setDeselectAllImage

public void setDeselectAllImage(java.lang.String deselectAllImage)
Initializes attribute deselectAllImage to the given value.

Parameters:
deselectAllImage - New value of deselectAllImage.

setMoveDownImage

public void setMoveDownImage(java.lang.String moveDownImage)
Initializes attribute moveDownImage to the given value.

Parameters:
moveDownImage - New value of moveDownImage.

setMoveUpImage

public void setMoveUpImage(java.lang.String moveUpImage)
Initializes attribute moveUpImage to the given value.

Parameters:
moveUpImage - New value of moveUpImage.

setArrowDownBig

public void setArrowDownBig(java.lang.String arrowDownBig)
Initializes attribute arrowDownBig to the given value.

Parameters:
arrowDownBig - New value of arrowDownBig.

setSelectedColor

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

Parameters:
selectedColor - New value of selectedColor.

setInactiveSelectedColor

public void setInactiveSelectedColor(java.lang.String inactiveSelectedColor)
Initializes attribute inactiveSelectedColor to the given value.

Parameters:
inactiveSelectedColor - New value of inactiveSelectedColor.

setSelectedFontColor

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

Parameters:
selectedFontColor - New value of selectedFontColor.

setMultiSelectorSelectImage

public void setMultiSelectorSelectImage(java.lang.String multiSelectorSelectImage)
Initializes attribute multiSelectorSelectImage to the given value.

Parameters:
multiSelectorSelectImage - New value of multiSelectorSelectImage.

setMultiSelectorUnselectImage

public void setMultiSelectorUnselectImage(java.lang.String multiSelectorUnselectImage)
Initializes attribute multiSelectorUnselectImage to the given value.

Parameters:
multiSelectorUnselectImage - New value of multiSelectorUnselectImage.

addLink

public void addLink(LyLink link)
Adds a sub-component link.

Parameters:
link - The link to add to links list.

insertLink

public void insertLink(LyLink link,
                       int pos)
Inserts a sub-component link at given position.

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

removeLink

public void removeLink(LyLink link)
Removes a sub-component link.

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

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