LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyNumber

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyNumberBase
              extended by leon.view.LyNumber
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LyUpdateViewContentInterface

public class LyNumber
extends LyNumberBase

The LyNumber class is a generated Java implementation that corresponds to the element NUMBER of the descriptive grammar of the views (views.dtd). <NUMBER> : Input Field of Number Type An input field of Number type allows displaying a graphical component allowing to input or to consult a number value. It does not comprise any element. It is possible to specify the minimum and the maximum value, the incrementation step, the number of decimals and the unit.

See Also:
See also tag NUMBER of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static boolean SHOW_ARROWS
          Indicates if we use arrows for number inputs.
 
Fields inherited from class leon.view.LyNumberBase
__VERSION
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyNumber()
          Default constructor.
 
Method Summary
 int getMaxChars()
          Get number of chars for LyNumber input.
 boolean isShowArrows()
          Checks if value of attribute showArrows is set.
 void showArrows(boolean showArrows)
          Initializes attribute showArrows to the given value.
 
Methods inherited from class leon.view.LyNumberBase
cloneComponent, getArrowDown, getArrowUp, getBean, getDecimals, getDisabledColor, getEnabledColor, getFont, getFontColor, getFormat, getId, getLabel, getNCols, getPitch, getTemplate, getUnit, getVMax, getVMin, isArrows, isDefaultArrowDown, isDefaultArrowUp, isDefaultDisabledColor, isDefaultEnabledColor, isDefaultFont, isDefaultFontColor, isModulo, setArrowDown, setArrows, setArrowUp, setBean, setDecimals, setDisabledColor, setEnabledColor, setFont, setFontColor, setFormat, setId, setLabel, setModulo, setNCols, setPitch, setTemplate, setUnit, setVMax, setVMin, writeXml
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBeanComponent, setBeanDatas, setFieldValue, 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

SHOW_ARROWS

public static boolean SHOW_ARROWS
Indicates if we use arrows for number inputs.

Constructor Detail

LyNumber

public LyNumber()
Default constructor.

Method Detail

showArrows

public void showArrows(boolean showArrows)
Initializes attribute showArrows to the given value.

Parameters:
showArrows - Boolean indicating if attribute showArrows is set or unset.

isShowArrows

public boolean isShowArrows()
Checks if value of attribute showArrows is set.

Returns:
true if showArrows is set, false otherwise.

getMaxChars

public int getMaxChars()
Get number of chars for LyNumber input.

Returns:
number of chars for LyNumber input

(c) January 2013 - W4 S.A.

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