|
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.LyChoiceBase
public abstract class LyChoiceBase
The LyChoiceBase class is a generated Java implementation that corresponds to the element CHOICE of the descriptive grammar of the views (views.dtd). <CHOICE> : Input Field of Choice Type An input field of Choice type allows displaying a graphical component containing a set of check boxes. It allows choosing one or more values among a discrete list of values. It is possible to specify whether the choice is multiple or not and whether the boxes should be arranged horizontally or vertically.
LyFieldItem
,
See also tag CHOICE of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyChoiceBase.Fill
Possible values for attribute 'fill'. |
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 | |
---|---|
LyChoiceBase()
Default constructor. |
Method Summary | |
---|---|
void |
addOption(LyOption option)
Adds a sub-component option. |
LyComponent |
cloneComponent()
Method for cloning a component. |
java.lang.String |
getBean()
Gets value of bean. |
java.lang.String |
getColor()
Gets value of color. |
LyChoiceBase.Fill |
getFill()
Gets value of fill. |
static LyChoiceBase.Fill |
getFill(java.lang.String token)
Utility method to get fill value from a string. |
java.lang.String |
getFont()
Gets value of font. |
java.lang.String |
getFontColor()
Gets value of fontColor. |
java.lang.String |
getId()
Gets value of id. |
int |
getMaxSpan()
Gets value of maxSpan. |
int |
getNCols()
Gets value of nCols. |
int |
getNRows()
Gets value of nRows. |
LyOption |
getOption(int i)
Get sub-component Option of index i. |
int |
getOptionCount()
Get sub-component Option count. |
LyChoice |
getTemplate()
Gets value of template. |
void |
insertOption(LyOption option,
int pos)
Inserts a sub-component option at given position. |
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 |
isMultiple()
Checks if value of attribute multiple is set. |
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 |
setFill(LyChoiceBase.Fill fill)
Initializes attribute fill 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 |
setId(java.lang.String id)
Initializes attribute id to the given value. |
void |
setMaxSpan(int maxSpan)
Initializes attribute maxSpan to the given value. |
void |
setMultiple(boolean multiple)
Initializes attribute multiple 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(LyChoice 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 LyChoiceBase()
Method Detail |
---|
public static final LyChoiceBase.Fill getFill(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 LyChoice getTemplate()
public boolean isMultiple()
public LyChoiceBase.Fill getFill()
public int getMaxSpan()
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 int getNRows()
public LyOption getOption(int i)
i
- the index of the Option to get.
public int getOptionCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyChoice template)
template
- New value of template.public void setMultiple(boolean multiple)
multiple
- Boolean indicating if attribute multiple is set or unset.public void setFill(LyChoiceBase.Fill fill)
fill
- New value of fill.
java.lang.IllegalArgumentException
- if fill parameter is null.public void setMaxSpan(int maxSpan)
maxSpan
- New value of maxSpan.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 setNRows(int nRows)
nRows
- New value of nRows.public void addOption(LyOption option)
option
- The option to add to options list.public void insertOption(LyOption option, int pos)
option
- The option to add to options list.pos
- Position where the sub-component is inserted.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 |