|
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.LyIcon
public class LyIcon
The LyIcon class is a generated Java implementation that corresponds to the element ICON of the descriptive grammar of the views (views.dtd). <ICON> : Icon An icon allows defining an image to which a text can be associated.
See also tag ICON of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyIcon.Border
Possible values for attribute 'border'. |
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 | |
---|---|
LyIcon(java.lang.String label,
java.lang.String image)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getBean()
Gets value of bean. |
LyIcon.Border |
getBorder()
Gets value of border. |
static LyIcon.Border |
getBorder(java.lang.String token)
Utility method to get border value from a string. |
LyConstraint |
getConstraint()
Get sub-component Constraint. |
int |
getHeight()
Gets value of height. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
LyIcon |
getTemplate()
Gets value of template. |
int |
getWidth()
Gets value of width. |
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 |
setBorder(LyIcon.Border border)
Initializes attribute border to the given value. |
void |
setConstraint(LyConstraint constraint)
Sets sub-component constraint. |
void |
setHeight(int height)
Initializes attribute height 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)
Initializes attribute label to the given value. |
void |
setTemplate(LyIcon template)
Initializes attribute template to the given value. |
void |
setWidth(int width)
Initializes attribute width 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 LyIcon(java.lang.String label, java.lang.String image)
label
- Text to display with the imageimage
- ImageMethod Detail |
---|
public static final LyIcon.Border getBorder(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 LyIcon getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public java.lang.String getImage()
public boolean isDefaultImage()
public int getWidth()
public int getHeight()
public LyIcon.Border getBorder()
public java.lang.String getBean()
getBean
in class LyFieldItem
public LyConstraint getConstraint()
getConstraint
in interface LyGetConstraintInterface
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyIcon template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in class LyFieldItem
label
- New value of label.
java.lang.IllegalArgumentException
- if label is null.public void setImage(java.lang.String image)
setImage
in interface LySetImageInterface
image
- New value of image.
java.lang.IllegalArgumentException
- if image is null.public void setWidth(int width)
width
- New value of width.public void setHeight(int height)
height
- New value of height.public void setBorder(LyIcon.Border border)
border
- New value of border.
java.lang.IllegalArgumentException
- if border parameter is null.public void setBean(java.lang.String bean)
setBean
in class LyFieldItem
bean
- New value of bean.public void setConstraint(LyConstraint constraint)
constraint
- New value of constraintpublic 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 |