LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyFile

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyFile
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface, LyUpdateViewContentInterface

public class LyFile
extends LyFieldItem
implements LyGetIdInterface, LyGetLabelInterface, LySetLabelInterface

The LyFile class is a generated Java implementation that corresponds to the element FILE of the descriptive grammar of the views (views.dtd). <FILE> : Input Field of File Type An input field of File type allows displaying a graphical component that allows selecting 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.

See Also:
See also tag FILE of grammar leon_views.dtd.

Nested Class Summary
static class LyFile.Border
          Possible values for attribute 'border'.
static class LyFile.Type
          Possible values for attribute 'type'.
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyFile()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getAttachmentDirectory()
          Gets value of attachmentDirectory.
 java.lang.String getAttachmentHandler()
          Gets value of attachmentHandler.
 java.lang.String getBean()
          Gets value of bean.
 LyFile.Border getBorder()
          Gets value of border.
static LyFile.Border getBorder(java.lang.String token)
          Utility method to get border value from a string.
 java.lang.String getDirectory()
          Gets value of directory.
 java.lang.String getDisabledColor()
          Gets value of disabledColor.
 java.lang.String getEnabledColor()
          Gets value of enabledColor.
 java.lang.String getFilter()
          Gets value of filter.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImage()
          Gets value of image.
 java.lang.String getLabel()
          Gets value of label.
 int getNCols()
          Gets value of nCols.
 int getNRows()
          Gets value of nRows.
 LyFile getTemplate()
          Gets value of template.
 LyFile.Type getType()
          Gets value of type.
static LyFile.Type getType(java.lang.String token)
          Utility method to get type value from a string.
 boolean isDefaultDisabledColor()
          Checks whether the disabledColor attribute is valuated to the default value.
 boolean isDefaultEnabledColor()
          Checks whether the enabledColor attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultImage()
          Checks whether the image attribute is valuated to the default value.
 void setAttachmentDirectory(java.lang.String attachmentDirectory)
          Initializes attribute attachmentDirectory to the given value.
 void setAttachmentHandler(java.lang.String attachmentHandler)
          Initializes attribute attachmentHandler to the given value.
 void setBean(java.lang.String bean)
          Initializes attribute bean to the given value.
 void setBorder(LyFile.Border border)
          Initializes attribute border to the given value.
 void setDirectory(java.lang.String directory)
          Initializes attribute directory to the given value.
 void setDisabledColor(java.lang.String disabledColor)
          Initializes attribute disabledColor to the given value.
 void setEnabledColor(java.lang.String enabledColor)
          Initializes attribute enabledColor to the given value.
 void setFilter(java.lang.String filter)
          Initializes attribute filter to the given value.
 void setFont(java.lang.String font)
          Initializes attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setImage(java.lang.String image)
          Initializes attribute image to the given value.
 void setLabel(java.lang.String label)
          Sets attribute label to the given value.
 void setNCols(int nCols)
          Initializes attribute nCols to the given value.
 void setNRows(int nRows)
          Initializes attribute nRows to the given value.
 void setTemplate(LyFile template)
          Initializes attribute template to the given value.
 void setType(LyFile.Type type)
          Initializes attribute type to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBeanComponent, setBeanDatas, setFieldValue, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFile

public LyFile()
Default constructor.

Method Detail

getType

public static final LyFile.Type getType(java.lang.String token)
Utility method to get type value from a string.

Parameters:
token - Token string
Returns:
Type value corresponding to this token

getBorder

public static final LyFile.Border getBorder(java.lang.String token)
Utility method to get border value from a string.

Parameters:
token - Token string
Returns:
Border value corresponding to this token

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyFile getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getType

public LyFile.Type getType()
Gets value of type.

Returns:
value of type.

getBean

public java.lang.String getBean()
Gets value of bean.

Overrides:
getBean in class LyFieldItem
Returns:
value of bean.

getAttachmentDirectory

public java.lang.String getAttachmentDirectory()
Gets value of attachmentDirectory.

Returns:
value of attachmentDirectory.

getAttachmentHandler

public java.lang.String getAttachmentHandler()
Gets value of attachmentHandler.

Returns:
value of attachmentHandler.

getDirectory

public java.lang.String getDirectory()
Gets value of directory.

Returns:
value of directory.

getFilter

public java.lang.String getFilter()
Gets value of filter.

Returns:
value of filter.

getNCols

public int getNCols()
Gets value of nCols.

Returns:
value of nCols.

getNRows

public int getNRows()
Gets value of nRows.

Returns:
value of nRows.

getBorder

public LyFile.Border getBorder()
Gets value of border.

Returns:
value of border.

getImage

public java.lang.String getImage()
Gets value of image.

Returns:
value of image.

isDefaultImage

public boolean isDefaultImage()
Checks whether the image attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getEnabledColor

public java.lang.String getEnabledColor()
Gets value of enabledColor.

Returns:
value of enabledColor.

isDefaultEnabledColor

public boolean isDefaultEnabledColor()
Checks whether the enabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getDisabledColor

public java.lang.String getDisabledColor()
Gets value of disabledColor.

Returns:
value of disabledColor.

isDefaultDisabledColor

public boolean isDefaultDisabledColor()
Checks whether the disabledColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyFile template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Sets attribute label to the given value.

Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyFieldItem
Parameters:
label - New value of label.

setType

public void setType(LyFile.Type type)
Initializes attribute type to the given value.

Parameters:
type - New value of type.
Throws:
java.lang.IllegalArgumentException - if type parameter is null.

setBean

public void setBean(java.lang.String bean)
Initializes attribute bean to the given value.

Overrides:
setBean in class LyFieldItem
Parameters:
bean - New value of bean.

setAttachmentDirectory

public void setAttachmentDirectory(java.lang.String attachmentDirectory)
Initializes attribute attachmentDirectory to the given value.

Parameters:
attachmentDirectory - New value of attachmentDirectory.

setAttachmentHandler

public void setAttachmentHandler(java.lang.String attachmentHandler)
Initializes attribute attachmentHandler to the given value.

Parameters:
attachmentHandler - New value of attachmentHandler.

setDirectory

public void setDirectory(java.lang.String directory)
Initializes attribute directory to the given value.

Parameters:
directory - New value of directory.

setFilter

public void setFilter(java.lang.String filter)
Initializes attribute filter to the given value.

Parameters:
filter - New value of filter.

setNCols

public void setNCols(int nCols)
Initializes attribute nCols to the given value.

Parameters:
nCols - New value of nCols.

setNRows

public void setNRows(int nRows)
Initializes attribute nRows to the given value.

Parameters:
nRows - New value of nRows.

setBorder

public void setBorder(LyFile.Border border)
Initializes attribute border to the given value.

Parameters:
border - New value of border.
Throws:
java.lang.IllegalArgumentException - if border parameter is null.

setImage

public void setImage(java.lang.String image)
Initializes attribute image to the given value.

Parameters:
image - New value of image.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setEnabledColor

public void setEnabledColor(java.lang.String enabledColor)
Initializes attribute enabledColor to the given value.

Parameters:
enabledColor - New value of enabledColor.

setDisabledColor

public void setDisabledColor(java.lang.String disabledColor)
Initializes attribute disabledColor to the given value.

Parameters:
disabledColor - New value of disabledColor.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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