LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyEntry

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyEntry
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetImageInterface, LySetValidityInterface

public class LyEntry
extends LyComponent
implements LyGetIdInterface, LyGetLabelInterface, LySetValidityInterface, LySetImageInterface

The LyEntry class is a generated Java implementation that corresponds to the element ENTRY of the descriptive grammar of the views (views.dtd). <ENTRY> : Dictionary Entry An entry represents a node or a leaf of a dictionary. An entry may contain several sub-entries.

See Also:
See also tag ENTRY 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
LyEntry(java.lang.String id, java.lang.String label)
          Constructor with all required attributes.
 
Method Summary
 void addEntry(LyEntry entry)
          Adds a sub-component entry.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getEmptyCheckboxImage()
          Gets value of emptyCheckboxImage.
 LyEntry getEntry(int i)
          Get sub-component Entry of index i.
 int getEntryCount()
          Get sub-component Entry 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 getInactiveSelectedBackgroundColor()
          Gets value of inactiveSelectedBackgroundColor.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getSelectedBackgroundColor()
          Gets value of selectedBackgroundColor.
 java.lang.String getSelectedCheckboxImage()
          Gets value of selectedCheckboxImage.
 java.lang.String getSelectedFontColor()
          Gets value of selectedFontColor.
 LyEntry getTemplate()
          Gets value of template.
 LyTreeNode.Validity getValidity()
          Gets value of validity.
 void insertEntry(LyEntry entry, int pos)
          Inserts a sub-component entry at given position.
 boolean isChecked()
          Checks if value of attribute checked is set.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultEmptyCheckboxImage()
          Checks whether the emptyCheckboxImage 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 isDefaultInactiveSelectedBackgroundColor()
          Checks whether the inactiveSelectedBackgroundColor attribute is valuated to the default value.
 boolean isDefaultSelectedBackgroundColor()
          Checks whether the selectedBackgroundColor attribute is valuated to the default value.
 boolean isDefaultSelectedCheckboxImage()
          Checks whether the selectedCheckboxImage attribute is valuated to the default value.
 boolean isDefaultSelectedFontColor()
          Checks whether the selectedFontColor attribute is valuated to the default value.
 boolean isOpen()
          Checks if value of attribute open is set.
 void setChecked(boolean checked)
          Sets attribute checked to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setEmptyCheckboxImage(java.lang.String emptyCheckboxImage)
          Initializes attribute emptyCheckboxImage 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 setImage(java.lang.String image)
          Sets attribute image to the given value.
 void setInactiveSelectedBackgroundColor(java.lang.String inactiveSelectedBackgroundColor)
          Initializes attribute inactiveSelectedBackgroundColor to the given value.
 void setLabel(java.lang.String label)
          Initializes attribute label to the given value.
 void setOpen(boolean open)
          Sets attribute open to the given value.
 void setSelectedBackgroundColor(java.lang.String selectedBackgroundColor)
          Initializes attribute selectedBackgroundColor to the given value.
 void setSelectedCheckboxImage(java.lang.String selectedCheckboxImage)
          Initializes attribute selectedCheckboxImage to the given value.
 void setSelectedFontColor(java.lang.String selectedFontColor)
          Initializes attribute selectedFontColor to the given value.
 void setTemplate(LyEntry template)
          Initializes attribute template to the given value.
 void setValidity(LyTreeNode.Validity validity)
          Sets attribute validity 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

LyEntry

public LyEntry(java.lang.String id,
               java.lang.String label)
Constructor with all required attributes.

Parameters:
id - Identifier of the entry. It represents the internal value of the application associated to the entry.
label - Label of the entry.
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 LyEntry 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.

isChecked

public boolean isChecked()
Checks if value of attribute checked is set.

Returns:
true if checked is set, false otherwise.

isOpen

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

Returns:
true if open is set, false otherwise.

getValidity

public LyTreeNode.Validity getValidity()
Gets value of validity.

Returns:
value of validity.

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.

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.

getSelectedBackgroundColor

public java.lang.String getSelectedBackgroundColor()
Gets value of selectedBackgroundColor.

Returns:
value of selectedBackgroundColor.

isDefaultSelectedBackgroundColor

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

getInactiveSelectedBackgroundColor

public java.lang.String getInactiveSelectedBackgroundColor()
Gets value of inactiveSelectedBackgroundColor.

Returns:
value of inactiveSelectedBackgroundColor.

isDefaultInactiveSelectedBackgroundColor

public boolean isDefaultInactiveSelectedBackgroundColor()
Checks whether the inactiveSelectedBackgroundColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getEmptyCheckboxImage

public java.lang.String getEmptyCheckboxImage()
Gets value of emptyCheckboxImage.

Returns:
value of emptyCheckboxImage.

isDefaultEmptyCheckboxImage

public boolean isDefaultEmptyCheckboxImage()
Checks whether the emptyCheckboxImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectedCheckboxImage

public java.lang.String getSelectedCheckboxImage()
Gets value of selectedCheckboxImage.

Returns:
value of selectedCheckboxImage.

isDefaultSelectedCheckboxImage

public boolean isDefaultSelectedCheckboxImage()
Checks whether the selectedCheckboxImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getEntry

public LyEntry getEntry(int i)
Get sub-component Entry of index i.

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

getEntryCount

public int getEntryCount()
Get sub-component Entry count.

Returns:
sub-component Entry count.

setTemplate

public void setTemplate(LyEntry 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.

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

setChecked

public void setChecked(boolean checked)
Sets attribute checked to the given value.

Parameters:
checked - Boolean indicating if attribute checked 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.

setValidity

public void setValidity(LyTreeNode.Validity validity)
Sets attribute validity to the given value.

Specified by:
setValidity in interface LySetValidityInterface
Parameters:
validity - New value of validity.
Throws:
java.lang.IllegalArgumentException - if validity 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.

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.

setSelectedBackgroundColor

public void setSelectedBackgroundColor(java.lang.String selectedBackgroundColor)
Initializes attribute selectedBackgroundColor to the given value.

Parameters:
selectedBackgroundColor - New value of selectedBackgroundColor.

setSelectedFontColor

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

Parameters:
selectedFontColor - New value of selectedFontColor.

setInactiveSelectedBackgroundColor

public void setInactiveSelectedBackgroundColor(java.lang.String inactiveSelectedBackgroundColor)
Initializes attribute inactiveSelectedBackgroundColor to the given value.

Parameters:
inactiveSelectedBackgroundColor - New value of inactiveSelectedBackgroundColor.

setEmptyCheckboxImage

public void setEmptyCheckboxImage(java.lang.String emptyCheckboxImage)
Initializes attribute emptyCheckboxImage to the given value.

Parameters:
emptyCheckboxImage - New value of emptyCheckboxImage.

setSelectedCheckboxImage

public void setSelectedCheckboxImage(java.lang.String selectedCheckboxImage)
Initializes attribute selectedCheckboxImage to the given value.

Parameters:
selectedCheckboxImage - New value of selectedCheckboxImage.

addEntry

public void addEntry(LyEntry entry)
Adds a sub-component entry.

Parameters:
entry - The entry to add to entries list.

insertEntry

public void insertEntry(LyEntry entry,
                        int pos)
Inserts a sub-component entry at given position.

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

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