|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyFieldItem
leon.view.LyBoolean
public class LyBoolean
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 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyBoolean()
Method Detail |
---|
public static final LyBoolean.Status getStatus(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyBoolean getTemplate()
public java.lang.String getLabelChecked()
public java.lang.String getImageChecked()
public boolean isDefaultImageChecked()
public java.lang.String getLabelUnchecked()
public java.lang.String getImageUnchecked()
public boolean isDefaultImageUnchecked()
public java.lang.String getLabelEmpty()
public java.lang.String getImageEmpty()
public boolean isDefaultImageEmpty()
public boolean isNot()
public LyBoolean.Status getStatus()
public java.lang.String getBean()
getBean
in class LyFieldItem
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getColor()
public boolean isDefaultColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public int getNCols()
public java.lang.String getBackgroundImage()
public boolean isDefaultBackgroundImage()
public java.lang.String getHooverImage()
public boolean isDefaultHooverImage()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyBoolean template)
template
- New value of template.public void setLabelChecked(java.lang.String labelChecked)
labelChecked
- New value of labelChecked.public void setImageChecked(java.lang.String imageChecked)
imageChecked
- New value of imageChecked.public void setLabelUnchecked(java.lang.String labelUnchecked)
labelUnchecked
- New value of labelUnchecked.public void setImageUnchecked(java.lang.String imageUnchecked)
imageUnchecked
- New value of imageUnchecked.public void setLabelEmpty(java.lang.String labelEmpty)
labelEmpty
- New value of labelEmpty.public void setImageEmpty(java.lang.String imageEmpty)
imageEmpty
- New value of imageEmpty.public void setNot(boolean not)
not
- Boolean indicating if attribute not is set or unset.public void setStatus(LyBoolean.Status status)
setStatus
in interface LySetStatusInterface
status
- New value of status.
java.lang.IllegalArgumentException
- if status parameter is null.public void setBean(java.lang.String bean)
setBean
in class LyFieldItem
bean
- New value of bean.public void setFont(java.lang.String font)
font
- New value of font.public void setColor(java.lang.String color)
color
- New value of color.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void setNCols(int nCols)
nCols
- New value of nCols.public void setBackgroundImage(java.lang.String backgroundImage)
backgroundImage
- New value of backgroundImage.public void setHooverImage(java.lang.String hooverImage)
hooverImage
- New value of hooverImage.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |