public class DataFileUploader extends FileUploader implements Storable
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTORY_DIVIDED |
static int |
FILENAME_DIVIDED |
additionalTagFragments, className, contextPath, fileBuffer, fileNameWithoutExtension, fromCurrentDirToWebapps, required, saveDirectory, subdirectoryName
comment, focus, name, placeholder, toolTipText
Constructor and Description |
---|
DataFileUploader(java.lang.String saveDirectory,
DataObject assignedDataObject)
Constructor for DataFileUploader.
|
DataFileUploader(java.lang.String saveDirectory,
java.lang.String name,
DataObject assignedDataObject)
Constructor for DataFileUploader.
|
Modifier and Type | Method and Description |
---|---|
int |
getDivideType() |
boolean |
isFilled()
Returns true if the component has a value.
|
boolean |
isModified()
Returns true if the component's value differs from its initial value.
|
boolean |
isRequirementUnfulfilled()
Returns true if the component's value is mandatory but not filled.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
saveValue()
Stores the component's value.
|
void |
setDivideType(int divideType) |
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
destroy, fetchYourValueFromRequest, getCreationTag, getInvalidityReason, isValid, setFileNameWithoutExtension, setSubdirectoryName, writeFile
getName, setComment, setFocus, setPlaceHolder, setToolTipText, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
destroy, getCreationTag, setComment, setToolTipText
public static final int FILENAME_DIVIDED
public static final int DIRECTORY_DIVIDED
public DataFileUploader(java.lang.String saveDirectory, DataObject assignedDataObject)
saveDirectory
- public DataFileUploader(java.lang.String saveDirectory, java.lang.String name, DataObject assignedDataObject)
saveDirectory
- name
- public int getDivideType()
public void setDivideType(int divideType)
public void loadValue()
Storable
public void setRequired(boolean required)
Storable
setRequired
in interface Storable
setRequired
in class FileUploader
required
- whether this inuput is mandatory or not.Storable.setRequired(boolean)
public boolean isFilled()
Storable
public boolean isModified()
Storable
isModified
in interface Storable
public boolean isRequirementUnfulfilled()
Storable
isRequirementUnfulfilled
in interface Storable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de