LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyBoolean

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyBoolean
All Implemented Interfaces:
LyGetIdInterface, LySetStatusInterface, LyUpdateViewContentInterface

public class LyBoolean
extends LyFieldItem
implements LyGetIdInterface, LySetStatusInterface

The LyBoolean class is a generated Java implementation that corresponds to the element BOOLEAN of the descriptive grammar of the views (views.dtd). <BOOLEAN> : Input Field of Boolean Type An input field of boolean type allows displaying a graphical component with a three state checkbox : not specified (empty), true (checked with a green sign), false (with a red cross). It is possible to specify a label for each of these states and to make a negation of the boolean value.

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

Nested Class Summary
static class LyBoolean.Status
          Possible values for attribute 'status'.
 
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
LyBoolean()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getBackgroundImage()
          Gets value of backgroundImage.
 java.lang.String getBean()
          Gets value of bean.
 java.lang.String getColor()
          Gets value of color.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getHooverImage()
          Gets value of hooverImage.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImageChecked()
          Gets value of imageChecked.
 java.lang.String getImageEmpty()
          Gets value of imageEmpty.
 java.lang.String getImageUnchecked()
          Gets value of imageUnchecked.
 java.lang.String getLabelChecked()
          Gets value of labelChecked.
 java.lang.String getLabelEmpty()
          Gets value of labelEmpty.
 java.lang.String getLabelUnchecked()
          Gets value of labelUnchecked.
 int getNCols()
          Gets value of nCols.
 LyBoolean.Status getStatus()
          Gets value of status.
static LyBoolean.Status getStatus(java.lang.String token)
          Utility method to get status value from a string.
 LyBoolean getTemplate()
          Gets value of template.
 boolean isDefaultBackgroundImage()
          Checks whether the backgroundImage 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 isDefaultHooverImage()
          Checks whether the hooverImage attribute is valuated to the default value.
 boolean isDefaultImageChecked()
          Checks whether the imageChecked attribute is valuated to the default value.
 boolean isDefaultImageEmpty()
          Checks whether the imageEmpty attribute is valuated to the default value.
 boolean isDefaultImageUnchecked()
          Checks whether the imageUnchecked attribute is valuated to the default value.
 boolean isNot()
          Checks if value of attribute not is set.
 void setBackgroundImage(java.lang.String backgroundImage)
          Initializes attribute backgroundImage to the given value.
 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 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 setHooverImage(java.lang.String hooverImage)
          Initializes attribute hooverImage to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setImageChecked(java.lang.String imageChecked)
          Initializes attribute imageChecked to the given value.
 void setImageEmpty(java.lang.String imageEmpty)
          Initializes attribute imageEmpty to the given value.
 void setImageUnchecked(java.lang.String imageUnchecked)
          Initializes attribute imageUnchecked to the given value.
 void setLabelChecked(java.lang.String labelChecked)
          Initializes attribute labelChecked to the given value.
 void setLabelEmpty(java.lang.String labelEmpty)
          Initializes attribute labelEmpty to the given value.
 void setLabelUnchecked(java.lang.String labelUnchecked)
          Initializes attribute labelUnchecked to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setNot(boolean not)
          Initializes attribute not to the given value.
 void setStatus(LyBoolean.Status status)
          Sets attribute status to the given value.
 void setTemplate(LyBoolean 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

LyBoolean

public LyBoolean()
Default constructor.

Method Detail

getStatus

public static final LyBoolean.Status getStatus(java.lang.String token)
Utility method to get status value from a string.

Parameters:
token - Token string
Returns:
Status 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 LyBoolean getTemplate()
Gets value of template.

Returns:
value of template.

getLabelChecked

public java.lang.String getLabelChecked()
Gets value of labelChecked.

Returns:
value of labelChecked.

getImageChecked

public java.lang.String getImageChecked()
Gets value of imageChecked.

Returns:
value of imageChecked.

isDefaultImageChecked

public boolean isDefaultImageChecked()
Checks whether the imageChecked attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLabelUnchecked

public java.lang.String getLabelUnchecked()
Gets value of labelUnchecked.

Returns:
value of labelUnchecked.

getImageUnchecked

public java.lang.String getImageUnchecked()
Gets value of imageUnchecked.

Returns:
value of imageUnchecked.

isDefaultImageUnchecked

public boolean isDefaultImageUnchecked()
Checks whether the imageUnchecked attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getLabelEmpty

public java.lang.String getLabelEmpty()
Gets value of labelEmpty.

Returns:
value of labelEmpty.

getImageEmpty

public java.lang.String getImageEmpty()
Gets value of imageEmpty.

Returns:
value of imageEmpty.

isDefaultImageEmpty

public boolean isDefaultImageEmpty()
Checks whether the imageEmpty attribute is valuated to the default value.

Returns:
True if default, false otherwise.

isNot

public boolean isNot()
Checks if value of attribute not is set.

Returns:
true if not is set, false otherwise.

getStatus

public LyBoolean.Status getStatus()
Gets value of status.

Returns:
value of status.

getBean

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

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

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.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getBackgroundImage

public java.lang.String getBackgroundImage()
Gets value of backgroundImage.

Returns:
value of backgroundImage.

isDefaultBackgroundImage

public boolean isDefaultBackgroundImage()
Checks whether the backgroundImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getHooverImage

public java.lang.String getHooverImage()
Gets value of hooverImage.

Returns:
value of hooverImage.

isDefaultHooverImage

public boolean isDefaultHooverImage()
Checks whether the hooverImage attribute is valuated to the default value.

Returns:
True if default, false otherwise.

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

Parameters:
template - New value of template.

setLabelChecked

public void setLabelChecked(java.lang.String labelChecked)
Initializes attribute labelChecked to the given value.

Parameters:
labelChecked - New value of labelChecked.

setImageChecked

public void setImageChecked(java.lang.String imageChecked)
Initializes attribute imageChecked to the given value.

Parameters:
imageChecked - New value of imageChecked.

setLabelUnchecked

public void setLabelUnchecked(java.lang.String labelUnchecked)
Initializes attribute labelUnchecked to the given value.

Parameters:
labelUnchecked - New value of labelUnchecked.

setImageUnchecked

public void setImageUnchecked(java.lang.String imageUnchecked)
Initializes attribute imageUnchecked to the given value.

Parameters:
imageUnchecked - New value of imageUnchecked.

setLabelEmpty

public void setLabelEmpty(java.lang.String labelEmpty)
Initializes attribute labelEmpty to the given value.

Parameters:
labelEmpty - New value of labelEmpty.

setImageEmpty

public void setImageEmpty(java.lang.String imageEmpty)
Initializes attribute imageEmpty to the given value.

Parameters:
imageEmpty - New value of imageEmpty.

setNot

public void setNot(boolean not)
Initializes attribute not to the given value.

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

setStatus

public void setStatus(LyBoolean.Status status)
Sets attribute status to the given value.

Specified by:
setStatus in interface LySetStatusInterface
Parameters:
status - New value of status.
Throws:
java.lang.IllegalArgumentException - if status parameter is null.

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.

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.

setNCols

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

Parameters:
nCols - New value of nCols.

setBackgroundImage

public void setBackgroundImage(java.lang.String backgroundImage)
Initializes attribute backgroundImage to the given value.

Parameters:
backgroundImage - New value of backgroundImage.

setHooverImage

public void setHooverImage(java.lang.String hooverImage)
Initializes attribute hooverImage to the given value.

Parameters:
hooverImage - New value of hooverImage.

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