public class InputFile extends Input
Input.Type| Constructor and Description |
|---|
InputFile() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Specifies the content type of uploaded file.
|
long |
getFileSize()
Specifies the file size of uploaded file.
|
java.lang.Integer |
getSize()
Specifies the width of an input field
|
java.io.File |
getStoreLocation()
Specifies the store location of uploaded file.
|
Input.Type |
getType()
Specifies the type of an input element.
|
InputFile |
setContentType(java.lang.String contentType)
Set content type of uploaded file
|
InputFile |
setFileSize(long fileSize)
Set size of uploaded file in bytes
|
InputFile |
setSize(java.lang.Integer size)
Set "size" property and if element was draw call script at browser.
|
InputFile |
setStoreLocation(java.io.File storeLocation)
Set file handle to uploaded file
|
assignValue, getName, getPlaceholder, getValue, isDisabled, isReadOnly, setDisabled, setName, setPlaceholder, setReadOnly, setValueadd, addAllDropTargets, addDropTarget, addStyleClass, alert, assignText, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, findElement, findEventOptions, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getContenteditableValue, getDir, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyle, getStyleClass, getStyles, getTabIndex, getText, getTitle, getTypeEvents, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isListening, listenerOff, listenerOn, print, prompt, remove, remove, removeDropTarget, removeEventOptions, removeParent, removeStyle, removeStyleClass, removeStyles, replace, replaceStyleClass, setChangeChildrenSet, setContenteditable, setDir, setDrawn, setEventOptions, setLang, setParent, setStyle, setStyleClass, setStyles, setTabIndex, setText, setTitlepublic Input.Type getType()
Inputpublic java.lang.String getContentType()
public java.io.File getStoreLocation()
public long getFileSize()
public InputFile setContentType(java.lang.String contentType)
contentType - the contentType to setpublic InputFile setStoreLocation(java.io.File storeLocation)
storeLocation - the storeLocation to setpublic InputFile setFileSize(long fileSize)
fileSize - the fileSize to setpublic java.lang.Integer getSize()
public InputFile setSize(java.lang.Integer size)
size - the size to set. If is null call removeAttribute of element at
browser. If not null call set "size" property of element at
browser.