LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyNumberBase

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

public abstract class LyNumberBase
extends LyFieldItem
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface

The LyNumberBase 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:
LyFieldItem, 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 java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyNumberBase()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getArrowDown()
          Gets value of arrowDown.
 java.lang.String getArrowUp()
          Gets value of arrowUp.
 java.lang.String getBean()
          Gets value of bean.
 int getDecimals()
          Gets value of decimals.
 java.lang.String getDisabledColor()
          Gets value of disabledColor.
 java.lang.String getEnabledColor()
          Gets value of enabledColor.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getFormat()
          Gets value of format.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getLabel()
          Gets value of label.
 int getNCols()
          Gets value of nCols.
 double getPitch()
          Gets value of pitch.
 LyNumber getTemplate()
          Gets value of template.
 java.lang.String getUnit()
          Gets value of unit.
 double getVMax()
          Gets value of vMax.
 double getVMin()
          Gets value of vMin.
 boolean isArrows()
          Checks if value of attribute arrows is set.
 boolean isDefaultArrowDown()
          Checks whether the arrowDown attribute is valuated to the default value.
 boolean isDefaultArrowUp()
          Checks whether the arrowUp attribute is valuated to the default value.
 boolean isDefaultDisabledColor()
          Checks whether the disabledColor attribute is valuated to the default value.
 boolean isDefaultEnabledColor()
          Checks whether the enabledColor 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 isModulo()
          Checks if value of attribute modulo is set.
 void setArrowDown(java.lang.String arrowDown)
          Initializes attribute arrowDown to the given value.
 void setArrows(boolean arrows)
          Initializes attribute arrows to the given value.
 void setArrowUp(java.lang.String arrowUp)
          Initializes attribute arrowUp to the given value.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setDecimals(int decimals)
          Sets attribute decimals to the given value.
 void setDisabledColor(java.lang.String disabledColor)
          Initializes attribute disabledColor to the given value.
 void setEnabledColor(java.lang.String enabledColor)
          Initializes attribute enabledColor 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 setFormat(java.lang.String format)
          Sets attribute format to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setModulo(boolean modulo)
          Initializes attribute modulo to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setPitch(double pitch)
          Sets attribute pitch to the given value.
 void setTemplate(LyNumber template)
          Initializes attribute template to the given value.
 void setUnit(java.lang.String unit)
          Initializes attribute unit to the given value.
 void setVMax(double vMax)
          Sets attribute vMax to the given value.
 void setVMin(double vMin)
          Sets attribute vMin 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, 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

LyNumberBase

public LyNumberBase()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyNumber getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getFormat

public java.lang.String getFormat()
Gets value of format.

Returns:
value of format.

getVMin

public double getVMin()
Gets value of vMin.

Returns:
value of vMin.

getVMax

public double getVMax()
Gets value of vMax.

Returns:
value of vMax.

getPitch

public double getPitch()
Gets value of pitch.

Returns:
value of pitch.

getDecimals

public int getDecimals()
Gets value of decimals.

Returns:
value of decimals.

isModulo

public boolean isModulo()
Checks if value of attribute modulo is set.

Returns:
true if modulo is set, false otherwise.

getUnit

public java.lang.String getUnit()
Gets value of unit.

Returns:
value of unit.

getBean

public java.lang.String getBean()
Gets value of bean.

Overrides:
getBean in class LyFieldItem
Returns:
value of bean.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getEnabledColor

public java.lang.String getEnabledColor()
Gets value of enabledColor.

Returns:
value of enabledColor.

isDefaultEnabledColor

public boolean isDefaultEnabledColor()
Checks whether the enabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDisabledColor

public java.lang.String getDisabledColor()
Gets value of disabledColor.

Returns:
value of disabledColor.

isDefaultDisabledColor

public boolean isDefaultDisabledColor()
Checks whether the disabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

isArrows

public boolean isArrows()
Checks if value of attribute arrows is set.

Returns:
true if arrows is set, false otherwise.

getArrowUp

public java.lang.String getArrowUp()
Gets value of arrowUp.

Returns:
value of arrowUp.

isDefaultArrowUp

public boolean isDefaultArrowUp()
Checks whether the arrowUp attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getArrowDown

public java.lang.String getArrowDown()
Gets value of arrowDown.

Returns:
value of arrowDown.

isDefaultArrowDown

public boolean isDefaultArrowDown()
Checks whether the arrowDown attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyNumber template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Sets attribute label to the given value.

Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyFieldItem
Parameters:
label - New value of label.

setFormat

public void setFormat(java.lang.String format)
Sets attribute format to the given value.

Parameters:
format - New value of format.

setVMin

public void setVMin(double vMin)
Sets attribute vMin to the given value.

Parameters:
vMin - New value of vMin.

setVMax

public void setVMax(double vMax)
Sets attribute vMax to the given value.

Parameters:
vMax - New value of vMax.

setPitch

public void setPitch(double pitch)
Sets attribute pitch to the given value.

Parameters:
pitch - New value of pitch.

setDecimals

public void setDecimals(int decimals)
Sets attribute decimals to the given value.

Parameters:
decimals - New value of decimals.

setModulo

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

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

setUnit

public void setUnit(java.lang.String unit)
Initializes attribute unit to the given value.

Parameters:
unit - New value of unit.

setBean

public void setBean(java.lang.String bean)
Initializes attribute bean to the given value.

Overrides:
setBean in class LyFieldItem
Parameters:
bean - New value of bean.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setEnabledColor

public void setEnabledColor(java.lang.String enabledColor)
Initializes attribute enabledColor to the given value.

Parameters:
enabledColor - New value of enabledColor.

setDisabledColor

public void setDisabledColor(java.lang.String disabledColor)
Initializes attribute disabledColor to the given value.

Parameters:
disabledColor - New value of disabledColor.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setArrows

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

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

setArrowUp

public void setArrowUp(java.lang.String arrowUp)
Initializes attribute arrowUp to the given value.

Parameters:
arrowUp - New value of arrowUp.

setArrowDown

public void setArrowDown(java.lang.String arrowDown)
Initializes attribute arrowDown to the given value.

Parameters:
arrowDown - New value of arrowDown.

setNCols

public void setNCols(int nCols)
Initializes attribute nCols to the given value.

Parameters:
nCols - New value of nCols.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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