LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form.field.number
Class LyJQNumber

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.fieldItem.LyJQFieldItem
                  extended by leon.view.web.jquery.component.form.field.number.LyJQNumber
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalNumber, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetNumberInterface, LyWebComponent

public class LyJQNumber
extends LyJQFieldItem
implements LyGraphicalNumber

LyNumber JQuery internal view


Field Summary
 
Fields inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
__VERSION
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalNumber
__VERSION
 
Constructor Summary
LyJQNumber(LyNumber number)
          Class constructor of a Number object for the struts target.
 
Method Summary
 int getDecimals()
          get number decimals
 char getDecimalSep()
          get decimal separator
 java.lang.String getDisplayableLabel(java.lang.String label)
          Gets the displayable label for this number.
 java.lang.String getLabelDecrease(LyNumber number)
          Get decrease spinner lable
 java.lang.String getLabelIncrease(LyNumber number)
          get increase spinner label
 double getMax()
          get max value
 int getMaxChars(LyNumber number)
          get max chars
 double getMin()
          get min value
 boolean isNumber()
           
 void setDecimals(int decimals)
          Updates attribute decimals to the given value.
 void setFormat(java.lang.String format)
          Updates attribute format to the given value.
 void setLabel(java.lang.String label)
          Sets the label of the component.
 void setPitch(double pitch)
          Updates attribute pitch to the given value.
 void setVMax(double vMax)
          Updates attribute vMax to the given value.
 void setVMin(double vMin)
          Updates attribute vMin to the given value.
 
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getReloadScript, getTarget, isEditable, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, writeHtml
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Constructor Detail

LyJQNumber

public LyJQNumber(LyNumber number)
Class constructor of a Number object for the struts target.

Parameters:
number - the generic Number defined for every type of view targets.
Method Detail

getDecimals

public int getDecimals()
get number decimals

Returns:
nb decimals

getMin

public double getMin()
get min value

Returns:
minvalue

getMax

public double getMax()
get max value

Returns:
max

getDisplayableLabel

public java.lang.String getDisplayableLabel(java.lang.String label)
Gets the displayable label for this number.

Parameters:
label - the initial label
decimalSeparator - the decimal separator to be used
Returns:
the displayable label for this number

getMaxChars

public int getMaxChars(LyNumber number)
get max chars


getDecimalSep

public char getDecimalSep()
get decimal separator

Returns:

getLabelIncrease

public java.lang.String getLabelIncrease(LyNumber number)
get increase spinner label

Parameters:
number -
Returns:
label

getLabelDecrease

public java.lang.String getLabelDecrease(LyNumber number)
Get decrease spinner lable

Parameters:
number -
Returns:
label

setDecimals

public void setDecimals(int decimals)
Description copied from interface: LyGraphicalNumber
Updates attribute decimals to the given value.

Specified by:
setDecimals in interface LyGraphicalNumber
Specified by:
setDecimals in interface LySetNumberInterface
Parameters:
decimals - New value of decimals.

setFormat

public void setFormat(java.lang.String format)
Description copied from interface: LyGraphicalNumber
Updates attribute format to the given value.

Specified by:
setFormat in interface LyGraphicalNumber
Specified by:
setFormat in interface LySetNumberInterface
Parameters:
format - New value of format.

setPitch

public void setPitch(double pitch)
Description copied from interface: LyGraphicalNumber
Updates attribute pitch to the given value.

Specified by:
setPitch in interface LyGraphicalNumber
Specified by:
setPitch in interface LySetNumberInterface
Parameters:
pitch - New value of pitch.

setVMax

public void setVMax(double vMax)
Description copied from interface: LyGraphicalNumber
Updates attribute vMax to the given value.

Specified by:
setVMax in interface LyGraphicalNumber
Specified by:
setVMax in interface LySetNumberInterface
Parameters:
vMax - New value of vMax.

setVMin

public void setVMin(double vMin)
Description copied from interface: LyGraphicalNumber
Updates attribute vMin to the given value.

Specified by:
setVMin in interface LyGraphicalNumber
Specified by:
setVMin in interface LySetNumberInterface
Parameters:
vMin - New value of vMin.

isNumber

public boolean isNumber()

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LySetLabelInterface
Sets the label of the component.

Specified by:
setLabel in interface LyGraphicalNumber
Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyJQFieldItem
Parameters:
label - new label

(c) January 2013 - W4 S.A.

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