LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyDictionaryBase

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

public abstract class LyDictionaryBase
extends LyFieldItem
implements LyGetIdInterface

The LyDictionaryBase class is a generated Java implementation that corresponds to the element DICTIONARY of the descriptive grammar of the views (views.dtd). <DICTIONARY> : Input Field of Dictionary Type An input field of dictionary type allows displaying a graphical component containing a combo with a tree.

See Also:
LyFieldItem, See also tag DICTIONARY of grammar leon_views.dtd.

Nested Class Summary
static class LyDictionaryBase.SelectionType
          Possible values for attribute 'selectionType'.
 
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
LyDictionaryBase()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBean()
          Gets value of bean.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getDisabledColor()
          Gets value of disabledColor.
 java.lang.String getEnabledColor()
          Gets value of enabledColor.
 LyEntry getEntry()
          Get sub-component Entry.
 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 getImageSelector()
          Gets value of imageSelector.
 int getNCols()
          Gets value of nCols.
 int getNRows()
          Gets value of nRows.
 LyDictionaryBase.SelectionType getSelectionType()
          Gets value of selectionType.
static LyDictionaryBase.SelectionType getSelectionType(java.lang.String token)
          Utility method to get selectionType value from a string.
 LyDictionary getTemplate()
          Gets value of template.
 boolean isDefaultColor()
          Checks whether the color 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 isDefaultImageSelector()
          Checks whether the imageSelector attribute is valuated to the default value.
 boolean isMultiple()
          Checks if value of attribute multiple is set.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color 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 setEntry(LyEntry entry)
          Sets sub-component entry.
 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 setImageSelector(java.lang.String imageSelector)
          Initializes attribute imageSelector to the given value.
 void setMultiple(boolean multiple)
          Initializes attribute multiple 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 setSelectionType(LyDictionaryBase.SelectionType selectionType)
          Initializes attribute selectionType to the given value.
 void setTemplate(LyDictionary 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

LyDictionaryBase

public LyDictionaryBase()
Default constructor.

Method Detail

getSelectionType

public static final LyDictionaryBase.SelectionType getSelectionType(java.lang.String token)
Utility method to get selectionType value from a string.

Parameters:
token - Token string
Returns:
SelectionType 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 LyDictionary 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.

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.

getSelectionType

public LyDictionaryBase.SelectionType getSelectionType()
Gets value of selectionType.

Returns:
value of selectionType.

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.

getImageSelector

public java.lang.String getImageSelector()
Gets value of imageSelector.

Returns:
value of imageSelector.

isDefaultImageSelector

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

getEntry

public LyEntry getEntry()
Get sub-component Entry.

Returns:
sub-component Entry.

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(LyDictionary 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.

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.

setSelectionType

public void setSelectionType(LyDictionaryBase.SelectionType selectionType)
Initializes attribute selectionType to the given value.

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

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.

setImageSelector

public void setImageSelector(java.lang.String imageSelector)
Initializes attribute imageSelector to the given value.

Parameters:
imageSelector - New value of imageSelector.

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.

setEntry

public void setEntry(LyEntry entry)
Sets sub-component entry.

Parameters:
entry - New value of entry

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