leon.view
Class LyChoice
java.lang.Object
leon.view.LyComponent
leon.view.LyFieldItem
leon.view.LyChoiceBase
leon.view.LyChoice
- All Implemented Interfaces:
- LyGetIdInterface, LyUpdateViewContentInterface
public class LyChoice
- extends LyChoiceBase
The LyChoice class implements generic behavior for the CHOICE components as described in
views.dtd regardless of the requested target (win, swing, html...). It represents a choice.
- See Also:
LyComponent
Field Summary |
static java.lang.String |
__VERSION
|
Constructor Summary |
LyChoice()
Constructor with all required attributes. |
Methods inherited from class leon.view.LyChoiceBase |
addOption, cloneComponent, getBean, getColor, getFill, getFill, getFont, getFontColor, getId, getMaxSpan, getNCols, getNRows, getOption, getOptionCount, getTemplate, insertOption, isDefaultColor, isDefaultFont, isDefaultFontColor, isMultiple, setBean, setColor, setFill, setFont, setFontColor, setId, setMaxSpan, setMultiple, setNCols, setNRows, setTemplate, writeXml |
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 leon.view.LyComponent |
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyChoice
public LyChoice()
- Constructor with all required attributes.
enableOption
public void enableOption(LyOption option,
boolean enable)
enableOption
public void enableOption(int i,
boolean enable)
checkOption
public void checkOption(LyOption option,
boolean check)
checkOption
public void checkOption(int i,
boolean check)
getPosition
public int getPosition(LyOption option)
- Retrieves position of the given option.
getOption
public LyOption getOption(java.lang.String id)
- Retrieves an option from its id.
removeOption
public void removeOption(LyOption option)
- Removes given option from choice.
- Parameters:
option
- Option to be removed.
Website: W4 S.A., contact us: support@w4global.com