|
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.LyLink
public class LyLink
The LyLink class is a generated Java implementation that corresponds to the element LINK of the descriptive grammar of the views (views.dtd). <LINK> : Link A link represents a possible value in an input field of Relation type.
See also tag LINK 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 | |
---|---|
LyLink(java.lang.String id,
java.lang.String label)
Constructor with all required attributes. |
Method Summary | |
---|---|
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getImage()
Gets value of image. |
java.lang.String |
getLabel()
Gets value of label. |
java.lang.String |
getShortLabel()
Gets value of shortLabel. |
LyLink |
getTemplate()
Gets value of template. |
boolean |
isDefaultImage()
Checks whether the image attribute is valuated to the default value. |
boolean |
isSelected()
Checks if value of attribute selected is set. |
void |
setImage(java.lang.String image)
Initializes attribute image to the given value. |
void |
setLabel(java.lang.String label)
Initializes attribute label to the given value. |
void |
setSelected(boolean selected)
Sets attribute selected to the given value. |
void |
setShortLabel(java.lang.String shortLabel)
Initializes attribute shortLabel to the given value. |
void |
setTemplate(LyLink 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyLink(java.lang.String id, java.lang.String label)
id
- Identifier associated to the link.label
- Label of the link.Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyLink getTemplate()
public java.lang.String getShortLabel()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public boolean isSelected()
public java.lang.String getImage()
public boolean isDefaultImage()
public void setTemplate(LyLink template)
template
- New value of template.public void setShortLabel(java.lang.String shortLabel)
shortLabel
- New value of shortLabel.public void setLabel(java.lang.String label)
label
- New value of label.
java.lang.IllegalArgumentException
- if label is null.public void setSelected(boolean selected)
setSelected
in interface LySetSelectedInterface
selected
- Boolean indicating if attribute selected is set or unset.public void setImage(java.lang.String image)
image
- New value of image.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 |