|
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.LyList
public class LyList
The LyList class is a generated Java implementation that corresponds to the element LIST of the descriptive grammar of the views (views.dtd). <LIST> : Input Field of List Type An input field of List type allows choosing one or more values among a discrete list of values. It is possible to specify if the selection is multiple or not as well as the height of the list.
See also tag LIST of grammar leon_views.dtd.
Nested Class Summary | |
---|---|
static class |
LyList.SelectionMode
Possible values for attribute 'selectionMode'. |
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 | |
---|---|
LyList()
Default constructor. |
Method Summary | |
---|---|
void |
addListOption(LyListOption listOption)
Adds a sub-component listOption. |
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. |
java.lang.String |
getId()
Gets value of id. |
java.lang.String |
getInactiveSelectColor()
Gets value of inactiveSelectColor. |
java.lang.String |
getInactiveSelectFontColor()
Gets value of inactiveSelectFontColor. |
LyListOption |
getListOption(int i)
Get sub-component ListOption of index i. |
int |
getListOptionCount()
Get sub-component ListOption count. |
int |
getNCols()
Gets value of nCols. |
int |
getNRows()
Gets value of nRows. |
java.lang.String |
getSelectedColor()
Gets value of selectedColor. |
java.lang.String |
getSelectedFontColor()
Gets value of selectedFontColor. |
LyList.SelectionMode |
getSelectionMode()
Gets value of selectionMode. |
static LyList.SelectionMode |
getSelectionMode(java.lang.String token)
Utility method to get selectionMode value from a string. |
LyList |
getTemplate()
Gets value of template. |
java.lang.String |
getTipColor()
Gets value of tipColor. |
java.lang.String |
getTipFont()
Gets value of tipFont. |
java.lang.String |
getTipFontColor()
Gets value of tipFontColor. |
void |
insertListOption(LyListOption listOption,
int pos)
Inserts a sub-component listOption 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 |
isDefaultInactiveSelectColor()
Checks whether the inactiveSelectColor attribute is valuated to the default value. |
boolean |
isDefaultInactiveSelectFontColor()
Checks whether the inactiveSelectFontColor attribute is valuated to the default value. |
boolean |
isDefaultSelectedColor()
Checks whether the selectedColor attribute is valuated to the default value. |
boolean |
isDefaultSelectedFontColor()
Checks whether the selectedFontColor attribute is valuated to the default value. |
boolean |
isDefaultTipColor()
Checks whether the tipColor attribute is valuated to the default value. |
boolean |
isDefaultTipFont()
Checks whether the tipFont attribute is valuated to the default value. |
boolean |
isDefaultTipFontColor()
Checks whether the tipFontColor attribute is valuated to the default value. |
void |
removeListOption(LyListOption listOption)
Removes a sub-component listOption. |
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)
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 |
setInactiveSelectColor(java.lang.String inactiveSelectColor)
Initializes attribute inactiveSelectColor to the given value. |
void |
setInactiveSelectFontColor(java.lang.String inactiveSelectFontColor)
Initializes attribute inactiveSelectFontColor 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 |
setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value. |
void |
setSelectedFontColor(java.lang.String selectedFontColor)
Initializes attribute selectedFontColor to the given value. |
void |
setSelectionMode(LyList.SelectionMode selectionMode)
Initializes attribute selectionMode to the given value. |
void |
setTemplate(LyList template)
Initializes attribute template to the given value. |
void |
setTipColor(java.lang.String tipColor)
Initializes attribute tipColor to the given value. |
void |
setTipFont(java.lang.String tipFont)
Initializes attribute tipFont to the given value. |
void |
setTipFontColor(java.lang.String tipFontColor)
Initializes attribute tipFontColor 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 LyList()
Method Detail |
---|
public static final LyList.SelectionMode getSelectionMode(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 LyList getTemplate()
public LyList.SelectionMode getSelectionMode()
public int getNCols()
public int getNRows()
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 getTipFont()
public boolean isDefaultTipFont()
public java.lang.String getTipColor()
public boolean isDefaultTipColor()
public java.lang.String getTipFontColor()
public boolean isDefaultTipFontColor()
public java.lang.String getSelectedColor()
public boolean isDefaultSelectedColor()
public java.lang.String getInactiveSelectColor()
public boolean isDefaultInactiveSelectColor()
public java.lang.String getSelectedFontColor()
public boolean isDefaultSelectedFontColor()
public java.lang.String getInactiveSelectFontColor()
public boolean isDefaultInactiveSelectFontColor()
public LyListOption getListOption(int i)
i
- the index of the ListOption to get.
public int getListOptionCount()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyList template)
template
- New value of template.public void setSelectionMode(LyList.SelectionMode selectionMode)
selectionMode
- New value of selectionMode.
java.lang.IllegalArgumentException
- if selectionMode parameter is null.public void setNCols(int nCols)
nCols
- New value of nCols.public void setNRows(int nRows)
nRows
- New value of nRows.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 setTipFont(java.lang.String tipFont)
tipFont
- New value of tipFont.public void setTipColor(java.lang.String tipColor)
tipColor
- New value of tipColor.public void setTipFontColor(java.lang.String tipFontColor)
tipFontColor
- New value of tipFontColor.public void setSelectedColor(java.lang.String selectedColor)
selectedColor
- New value of selectedColor.public void setInactiveSelectColor(java.lang.String inactiveSelectColor)
inactiveSelectColor
- New value of inactiveSelectColor.public void setSelectedFontColor(java.lang.String selectedFontColor)
selectedFontColor
- New value of selectedFontColor.public void setInactiveSelectFontColor(java.lang.String inactiveSelectFontColor)
inactiveSelectFontColor
- New value of inactiveSelectFontColor.public void addListOption(LyListOption listOption)
listOption
- The listOption to add to listOptions list.public void insertListOption(LyListOption listOption, int pos)
listOption
- The listOption to add to listOptions list.pos
- Position where the sub-component is inserted.public void removeListOption(LyListOption listOption)
listOption
- The listOption to remove to listOptions list.
java.lang.IllegalStateException
- if listOptions list is empty.
java.lang.IllegalArgumentException
- if listOptions list doesn't contain listOption.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 |