|
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.LyOption
public class LyOption
The LyOption class is a generated Java implementation that corresponds to the element OPTION of the descriptive grammar of the views (views.dtd). <OPTION> : Option An option represents a possible value in an input field of Choice type. It can be represented by a check box (case of a multiple choice) or else by a radio button (case of a simple choice).
See also tag OPTION 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 | |
---|---|
LyOption(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 |
getColor()
Gets value of color. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
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 |
getOverview()
Gets value of overview. |
LyOption |
getTemplate()
Gets value of template. |
boolean |
isChecked()
Checks if value of attribute checked is set. |
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 |
isDefaultImage()
Checks whether the image attribute is valuated to the default value. |
boolean |
isEnabled()
Checks if value of attribute enabled is set. |
void |
setChecked(boolean checked)
Sets attribute checked to the given value. |
void |
setColor(java.lang.String color)
Initializes attribute color to the given value. |
void |
setEnabled(boolean enabled)
Sets attribute enabled 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 |
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 |
setOverview(java.lang.String overview)
Initializes attribute overview to the given value. |
void |
setTemplate(LyOption 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 LyOption(java.lang.String id, java.lang.String label)
id
- Identifier associated to the option.label
- Label of the option.Method Detail |
---|
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyOption getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public boolean isChecked()
public boolean isEnabled()
public java.lang.String getOverview()
public java.lang.String getImage()
public boolean isDefaultImage()
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 void setTemplate(LyOption template)
template
- New value of template.public void setLabel(java.lang.String label)
label
- New value of label.
java.lang.IllegalArgumentException
- if label is null.public void setChecked(boolean checked)
checked
- Boolean indicating if attribute checked is set or unset.public void setEnabled(boolean enabled)
setEnabled
in interface LySetEnabledInterface
enabled
- Boolean indicating if attribute enabled is set or unset.public void setOverview(java.lang.String overview)
overview
- New value of overview.public void setImage(java.lang.String image)
image
- New value of image.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 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 |