|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.LyComponent
leon.view.LyFieldItem
leon.view.LyFile
public class LyFile
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 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyFile()
Method Detail |
---|
public static final LyFile.Type getType(java.lang.String token)
token
- Token string
public static final LyFile.Border getBorder(java.lang.String token)
token
- Token string
public LyComponent cloneComponent()
cloneComponent
in class LyComponent
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in class LyComponent
public LyFile getTemplate()
public java.lang.String getLabel()
getLabel
in interface LyGetLabelInterface
public LyFile.Type getType()
public java.lang.String getBean()
getBean
in class LyFieldItem
public java.lang.String getAttachmentDirectory()
public java.lang.String getAttachmentHandler()
public java.lang.String getDirectory()
public java.lang.String getFilter()
public int getNCols()
public int getNRows()
public LyFile.Border getBorder()
public java.lang.String getImage()
public boolean isDefaultImage()
public java.lang.String getFont()
public boolean isDefaultFont()
public java.lang.String getEnabledColor()
public boolean isDefaultEnabledColor()
public java.lang.String getDisabledColor()
public boolean isDefaultDisabledColor()
public java.lang.String getFontColor()
public boolean isDefaultFontColor()
public void setId(java.lang.String id)
id
- New value of id.public void setTemplate(LyFile template)
template
- New value of template.public void setLabel(java.lang.String label)
setLabel
in interface LySetLabelInterface
setLabel
in class LyFieldItem
label
- New value of label.public void setType(LyFile.Type type)
type
- New value of type.
java.lang.IllegalArgumentException
- if type parameter is null.public void setBean(java.lang.String bean)
setBean
in class LyFieldItem
bean
- New value of bean.public void setAttachmentDirectory(java.lang.String attachmentDirectory)
attachmentDirectory
- New value of attachmentDirectory.public void setAttachmentHandler(java.lang.String attachmentHandler)
attachmentHandler
- New value of attachmentHandler.public void setDirectory(java.lang.String directory)
directory
- New value of directory.public void setFilter(java.lang.String filter)
filter
- New value of filter.public void setNCols(int nCols)
nCols
- New value of nCols.public void setNRows(int nRows)
nRows
- New value of nRows.public void setBorder(LyFile.Border border)
border
- New value of border.
java.lang.IllegalArgumentException
- if border parameter is null.public void setImage(java.lang.String image)
image
- New value of image.public void setFont(java.lang.String font)
font
- New value of font.public void setEnabledColor(java.lang.String enabledColor)
enabledColor
- New value of enabledColor.public void setDisabledColor(java.lang.String disabledColor)
disabledColor
- New value of disabledColor.public void setFontColor(java.lang.String fontColor)
fontColor
- New value of fontColor.public void writeXml(java.io.PrintWriter pw, boolean debug)
writeXml
in class LyComponent
pw
- the printWriter on which the XML is written.debug
- true if debug mode (full dump).
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |