LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyChoice

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyChoiceBase
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyChoiceBase
LyChoiceBase.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
LyChoice()
          Constructor with all required attributes.
 
Method Summary
 void checkOption(int i, boolean check)
           
 void checkOption(LyOption option, boolean check)
           
 void enableOption(int i, boolean enable)
           
 void enableOption(LyOption option, boolean enable)
           
 LyOption getOption(java.lang.String id)
          Retrieves an option from its id.
 int getPosition(LyOption option)
          Retrieves position of the given option.
 void removeOption(LyOption option)
          Removes given option from choice.
 
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
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyChoice

public LyChoice()
Constructor with all required attributes.

Method Detail

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.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com