LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsFile

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsFieldItem
              extended by 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.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsFile(LyFile file)
          Constructor.
 
Method Summary
 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
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Field Detail

__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.

Constructor Detail

LyStrutsFile

public LyStrutsFile(LyFile file)
Constructor.

Parameters:
file - the file component
Method Detail

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

(c) January 2013 - W4 S.A.

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