|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFormFileUpload
This input field defines a form field for file upload
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
acceptedTypes()
Retrieve a list of accepted types |
void |
addAcceptedType(java.lang.String typePart)
Add a type or part of one (for MIME e.g. text/htm, text/*). |
java.lang.String |
getButtonText()
Retrieve the text for the button |
int |
getMaxFileSize()
Retrieve the maximum size of the file |
boolean |
hasTypeRestriction()
Check if the file upload is restricted to any types |
void |
setButtonText(java.lang.String text)
Set the button text |
void |
setMaxFileSize(int size)
Set the maximum file size |
| Methods inherited from interface ch.sahits.model.gui.IFormInput |
|---|
getNoCols, getNoRows, getSize, setNoCols, setNoRows, setSize |
| Methods inherited from interface ch.sahits.model.gui.IFormInputElement |
|---|
getDefaultValue, isEnabled, isVisible, setDefaultValue, setEnable, setVisible |
| Methods inherited from interface ch.sahits.model.gui.IFormElement |
|---|
getId, getName, getTooltip, setId, setName, setTooltip |
| Method Detail |
|---|
void addAcceptedType(java.lang.String typePart)
typePart - typejava.util.List<java.lang.String> acceptedTypes()
boolean hasTypeRestriction()
int getMaxFileSize()
void setMaxFileSize(int size)
size - of the file in bytesvoid setButtonText(java.lang.String text)
text - for the buttonjava.lang.String getButtonText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||