|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsNumber
public class LyStrutsNumber
This class implements the Number object (as described in the dtd) for web viewer.
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.
LyNumber
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.view.web.LyWebObject |
---|
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID |
Constructor Summary | |
---|---|
LyStrutsNumber(LyNumber number)
Class constructor of a Number object for the struts target. |
Method Summary | |
---|---|
java.lang.String |
getDisplayableLabel(java.lang.String label,
char decimalSeparator)
Gets the displayable label for this number. |
void |
initialize()
Initialization method. |
void |
setContent()
Sets the content of the number component. |
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)
(non-Javadoc). |
void |
setPitch(double pitch)
Updates attribute pitch to the given value. |
void |
setVMax(double vMax)
Sets the maximum value. |
void |
setVMin(double vMin)
Updates attribute vMin to the given value. |
void |
writeHtml(LyWebPageWriter pw)
Write HTML description corresponding to this component. |
Methods inherited from class leon.view.web.struts.LyStrutsFieldItem |
---|
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getFormName, getHtmlForm, getId, isEditable, isNetscape, isOptional, needCheck |
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 |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyStrutsNumber(LyNumber number)
number
- the generic Number defined for every type of view targets.Method Detail |
---|
public void initialize()
public void setLabel(java.lang.String label)
LyStrutsFieldItem
setLabel
in interface LyGraphicalNumber
setLabel
in interface LySetLabelInterface
setLabel
in class LyStrutsFieldItem
label
- new labelLySetLabelInterface.setLabel(java.lang.String)
public void setContent()
public void writeHtml(LyWebPageWriter pw)
LyWebComponent
writeHtml
in interface LyWebComponent
pw
- the page writerpublic java.lang.String getDisplayableLabel(java.lang.String label, char decimalSeparator)
label
- the initial labeldecimalSeparator
- the decimal separator to be used
public void setFormat(java.lang.String format)
LyGraphicalNumber
setFormat
in interface LyGraphicalNumber
setFormat
in interface LySetNumberInterface
format
- New value of format.public void setVMin(double vMin)
LyGraphicalNumber
setVMin
in interface LyGraphicalNumber
setVMin
in interface LySetNumberInterface
vMin
- New value of vMin.public void setVMax(double vMax)
setVMax
in interface LyGraphicalNumber
setVMax
in interface LySetNumberInterface
vMax
- New value of maximum.public void setPitch(double pitch)
LyGraphicalNumber
setPitch
in interface LyGraphicalNumber
setPitch
in interface LySetNumberInterface
pitch
- New value of pitch.public void setDecimals(int decimals)
LyGraphicalNumber
setDecimals
in interface LyGraphicalNumber
setDecimals
in interface LySetNumberInterface
decimals
- New value of decimals.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |