leon.view.web.struts
Class LyStrutsFile
java.lang.Object
leon.view.graphic.LyGraphicalObject
leon.view.web.LyWebObject
leon.view.web.struts.LyStrutsFieldItem
leon.view.web.struts.LyStrutsFile
- All Implemented Interfaces:
- LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalFile, LyViewComponent, LyFreeInterface, LySetLabelInterface, LyWebComponent
public class LyStrutsFile
- extends LyStrutsFieldItem
- implements LyGraphicalFile
This class implements the File object (as described in the dtd) for web viewer.
FILE: Input Field of File Type
An input field of File type allows to display a graphical component allowing to select a file.
The type of file can be specified (text, image, audio, video). According to the form in which
this field is present, the graphical component allows to choose the location of the file and/or
to view the access path to the file.
Field Summary |
static java.lang.String |
__VERSION
|
static boolean |
DISPLAY_PREVIOUS_FILE_NAME
Indicates whether the name or full path of previously selected file must be displayed. |
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
DISPLAY_PREVIOUS_FILE_NAME
public static boolean DISPLAY_PREVIOUS_FILE_NAME
- Indicates whether the name or full path of previously selected file must be displayed.
LyStrutsFile
public LyStrutsFile(LyFile file)
- Constructor.
- Parameters:
file
- the file component
setLabel
public void setLabel(java.lang.String label)
- (non-Javadoc).
- Specified by:
setLabel
in interface LyGraphicalFile
- 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
Website: W4 S.A., contact us: support@w4global.com