leon.view.web.struts
Class LyStrutsLabel
java.lang.Object
leon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsLabel
- All Implemented Interfaces:
- LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalLabel, LyViewComponent, LyFreeInterface, LySetFontInterface, LySetImageInterface, LySetLabelInterface, LyWebComponent
public class LyStrutsLabel
- extends LyStrutsFieldItem
- implements LyGraphicalLabel
This class implements the Label object (as described in the dtd) for web viewer.
LABEL: Input Field of Label Type
An input field of label type allows to display a simple, non-editable label inside a form. It is
used in the consultation forms to show different types of fields (date, number, choice,...). It
can be made up of one or several lines. It does not comprise any element.
- See Also:
LyLabel
Field Summary |
static java.lang.String |
__VERSION
|
Constructor Summary |
LyStrutsLabel(LyLabel label)
Class constructor of a Label object for the struts target. |
Method Summary |
void |
setFont(java.lang.String font)
Updates attribute font to the given value. |
void |
setImage(java.lang.String key)
Updates attribute image to the given value. |
void |
setLabel(java.lang.String label)
(non-Javadoc). |
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 |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyStrutsLabel
public LyStrutsLabel(LyLabel label)
- Class constructor of a Label object for the struts target.
- Parameters:
label
- the generic Label defined for every type of view targets.
setLabel
public void setLabel(java.lang.String label)
- Description copied from class:
LyStrutsFieldItem
- (non-Javadoc).
- Specified by:
setLabel
in interface LyGraphicalLabel
- Specified by:
setLabel
in interface LySetLabelInterface
- Overrides:
setLabel
in class LyStrutsFieldItem
- Parameters:
label
- new label- See Also:
LySetLabelInterface.setLabel(java.lang.String)
writeHtml
public void writeHtml(LyWebPageWriter pw)
- Description copied from interface:
LyWebComponent
- Write HTML description corresponding to this component.
- Specified by:
writeHtml
in interface LyWebComponent
- Parameters:
pw
- the page writer
setFont
public void setFont(java.lang.String font)
- Description copied from interface:
LyGraphicalLabel
- Updates attribute font to the given value.
- Specified by:
setFont
in interface LyGraphicalLabel
- Specified by:
setFont
in interface LySetFontInterface
- Parameters:
font
- New value of font.
setImage
public void setImage(java.lang.String key)
- Description copied from interface:
LyGraphicalLabel
- Updates attribute image to the given value.
- Specified by:
setImage
in interface LyGraphicalLabel
- Specified by:
setImage
in interface LySetImageInterface
- Parameters:
key
- New value of image.
Website: W4 S.A., contact us: support@w4global.com