|
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.LyLabel
public class LyLabel
The LyLabel class is a generated Java implementation that corresponds to the element LABEL of the descriptive grammar of the views (views.dtd). <LABEL> : Input Field of Label Type An input field of label type allows displaying a simple, non-editable label inside a form. It is used in the consultation forms to show different types of fields (date, number, choice, etc.). It can be made up of one or several lines. It does not comprise any element.
See also tag LABEL of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyLabel.HAlign
Possible values for attribute 'hAlign'. |
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 | |
---|---|
LyLabel()
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 |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
LyLabel.HAlign |
getHAlign()
Gets value of hAlign. |
static LyLabel.HAlign |
getHAlign(java.lang.String token)
Utility method to get hAlign value from a string. |
java.lang.String |
getHighlightColor()
Gets value of highlightColor. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
int |
getNCols()
Gets value of nCols. |
int |
getNRows()
Gets value of nRows. |
LyLabel |
getTemplate()
Gets value of template. |
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 |
isDefaultHighlightColor()
Checks whether the highlightColor attribute is valuated to the default value. |
boolean |
isDefaultImage()
Checks whether the image attribute is valuated to the default 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)
Sets attribute font to the given value. |
void |
setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value. |
void |
setHAlign(LyLabel.HAlign hAlign)
Initializes attribute hAlign to the given value. |
void |
setHighlightColor(java.lang.String highlightColor)
Initializes attribute highlightColor to the given value. |
void |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setImage(java.lang.String image)
Sets attribute image to the given value. |
void |
setLabel(java.lang.String label)
Sets attribute label 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 |
setTemplate(LyLabel 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, 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 LyLabel()
Method Detail |
---|
public static final LyLabel.HAlign getHAlign(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 LyLabel getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getImage()
public boolean isDefaultImage()
public LyLabel.HAlign getHAlign()
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 java.lang.String getHighlightColor()
public boolean isDefaultHighlightColor()
public int getNCols()
public int getNRows()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyLabel template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
setLabel
in class LyFieldItem
label
- New value of label.public void setImage(java.lang.String image)
setImage
in interface LySetImageInterface
image
- New value of image.public void setHAlign(LyLabel.HAlign hAlign)
hAlign
- New value of hAlign.
java.lang.IllegalArgumentException
- if hAlign 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)
setFont
in interface LySetFontInterface
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 setHighlightColor(java.lang.String highlightColor)
highlightColor
- New value of highlightColor.public void setNCols(int nCols)
nCols
- New value of nCols.public void setNRows(int nRows)
nRows
- New value of nRows.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 |