LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form.field.file
Class LyJQFile

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.file.LyJQFile
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalFile, LyViewComponent, LyFreeInterface, LySetLabelInterface, LyWebComponent

public class LyJQFile
extends LyJQFieldItem
implements LyGraphicalFile

LyFile JQuery internal view


Field Summary
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.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.LyGraphicalFile
__VERSION
 
Constructor Summary
LyJQFile(LyFile file)
          constructor
 
Method Summary
 boolean generateCheckbox()
          check if file requires checkbox
 java.lang.String getAttachmentDirectory()
           
 java.lang.String getFileId()
           
 java.lang.String getImagePath()
           
 java.lang.String getNoFileLabel()
          Return the label used to indicate that no file was selected.
 java.lang.String getPrevious()
           
 java.lang.String getSelectLabel()
          Return the label used to indicate that a file must be selected.
 int getWidth()
          Returns the width of the input component.
 boolean isDirectory()
           
 boolean isFile()
           
 void setLabel(java.lang.String label)
          (non-Javadoc)
 boolean useCustomizedFilecomponent()
          Indicates whether file component must be customized in web browser.
 
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
 

Field Detail

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

LyJQFile

public LyJQFile(LyFile file)
constructor

Parameters:
file -
Method Detail

isDirectory

public boolean isDirectory()
Returns:
is directory

generateCheckbox

public boolean generateCheckbox()
check if file requires checkbox


getPrevious

public java.lang.String getPrevious()
Returns:
previous value

getNoFileLabel

public java.lang.String getNoFileLabel()
Return the label used to indicate that no file was selected.


getSelectLabel

public java.lang.String getSelectLabel()
Return the label used to indicate that a file must be selected.


getWidth

public int getWidth()
Returns the width of the input 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 LyJQFieldItem
Parameters:
label - new label
See Also:
LyJQFieldItem.setLabel(java.lang.String)

useCustomizedFilecomponent

public boolean useCustomizedFilecomponent()
Indicates whether file component must be customized in web browser. Customization is not used with IE since there are security issues with IE file selector: use standard file selector

Returns:
true if a customized file selector must be used, false otherwise

getAttachmentDirectory

public java.lang.String getAttachmentDirectory()

getImagePath

public java.lang.String getImagePath()

getFileId

public java.lang.String getFileId()
Returns:
field id

isFile

public boolean isFile()

(c) January 2013 - W4 S.A.

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