public class FileUploader extends MustInputField
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
additionalTagFragments |
protected java.lang.String |
className |
protected java.lang.String |
contextPath |
protected FileBuffer |
fileBuffer |
protected java.lang.String |
fileNameWithoutExtension |
protected java.lang.String |
fromCurrentDirToWebapps |
protected boolean |
required |
protected java.lang.String |
saveDirectory |
protected java.lang.String |
subdirectoryName |
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
FileUploader(java.lang.String saveDirectory) |
FileUploader(java.lang.String saveDirectory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the markupable.
|
void |
fetchYourValueFromRequest(GeneralizedRequest request)
Causes the component to read user input by calling request.getParameter and
update the internal mirrored value.
|
java.lang.String |
getCreationTag()
Returns the tag sequence that's needed to show this object in the user
interface.
|
java.lang.String |
getInvalidityReason() |
boolean |
isValid() |
void |
setFileNameWithoutExtension(java.lang.String newFileNameWithoutExtension) |
void |
setRequired(boolean required) |
void |
setSubdirectoryName(java.lang.String subdirectoryName) |
void |
writeFile() |
getName, setComment, setFocus, setPlaceHolder, setToolTipText, toString
protected java.lang.String fromCurrentDirToWebapps
protected java.lang.String subdirectoryName
protected java.lang.String fileNameWithoutExtension
protected java.lang.String className
protected java.lang.String additionalTagFragments
protected boolean required
protected java.lang.String contextPath
protected java.lang.String saveDirectory
protected FileBuffer fileBuffer
public FileUploader(java.lang.String saveDirectory)
public FileUploader(java.lang.String saveDirectory, java.lang.String name)
public void setSubdirectoryName(java.lang.String subdirectoryName)
public void setFileNameWithoutExtension(java.lang.String newFileNameWithoutExtension)
public void setRequired(boolean required)
Storable.setRequired(boolean)
public java.lang.String getCreationTag()
public void fetchYourValueFromRequest(GeneralizedRequest request)
ValueFetcher
fetchYourValueFromRequest
in interface ValueFetcher
fetchYourValueFromRequest
in class MustInputField
request
- the current requestpublic boolean isValid()
Storable.isValid()
public java.lang.String getInvalidityReason()
public void writeFile()
public void destroy()
Markupable
destroy
in interface Markupable
destroy
in class MustInputField
Markupable.destroy()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de